A
A
Andrei2012-05-21 11:12:54
linux
Andrei, 2012-05-21 11:12:54

Shared folders via Samba in Red Hat 5?

Good afternoon.
There is a problem with configuring shared directories via Samba in Red Hat 5.
The goal is to share a specific directory with any Windows user without entering a password.
Samba config that works on CentOS 6 without issue:

[global]
    security = share
    workgroup = WORKGROUP

[gpe]
    guest ok = yes
    guest only = yes
    path = /srv/share
    read only = no

However, the same config does not work in Red Hat 5.
Permissions on the /srv/share directory and the files inside it
drwxrwxrwx 4 root root 4096 May 10 16:28 share (аналогично и на CentOS )

Tried like this:
drwxrwxrwx 2 nobody nobody 4096 May 18 10:59 share
Doesn't help.
In the Samba logs there is only this entry:
connect to service bm initially as user nobody (uid=99, gid=99) (pid 12037)

There are no errors.
But when trying to connect in Windows, we get the message "No access, or the file is already in use."
However, if you specify /usr in Samba for shared access, then everything works fine.
Please help, I'm tired of fighting.
UPD Thank you, gotozero ! Reason included SElinux .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gotozero, 2012-05-21
@ngelik

Try disabling SELinux if enabled.
system-config-securitylevel-tui - you can check with this utility.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question