Red Hat Bugzilla – Bug 431867
public_content_rw_t does not work on samba shares
Last modified: 2008-02-07 12:18:13 EST
Description of problem:
setting public_content_rw_t on a samba share does not allow writing with smbclient.
Version-Release number of selected component (if applicable):
create a samba share
make it wirteable
adjust file permissons
adjust selinux context to public_content_rw_t
call smbclient //server/share
try > mkdir test
change selinux context to samba_share_t
try again -> success
public_content_rw_t should be writeable
You need to turn on the smbd boolean.
setsebool -P allow_smbd_anon_write 1
This means i should allow annonymous writes?
I dont write annonymously. I connect as student with password.
$ smbclient -U student //station8/share
Sorry to have been too unspecific.
I can attach my whole config, if you like.
No this boolean just allows smbd to write to files labeled public_content_rw_t.
From SELinux point of view this is anonymous. (public_content_t) was originally
So you are not allowing anonymous writes from an Samba point of view, just
SELinux view of the world.
man samba_selinux has more description or