Description of problem: When selinux targeted is on all files on smb shares are owned by user/group nobody Version-Release number of selected component (if applicable): How reproducible: turn selinux on (targeted) Steps to Reproduce: 1. turn selinux on 2. create a file on smb share 3. Actual results: ownership is nobody/nobody Expected results: ownership should be that of the samba user Additional info: when selinux is turned off, file ownership is as expected
You are doing this with rawhide I trust. You need to mark the files you are sharing with samba_share_t chcon -R -t samba_share_t PATH_TO_SHARE
This is with FC3 I tried the command and this is the output s/WTLD80us.HST to system_u:object_r:samba_share_t: Invalid argument chcon: failed to change context of /home/data_cc/brec to root:object_r:samba_share_t: Invalid argument
Ok, my mistake. samba_share_t is not defined in FC3, so SELinux should not be governing anything with samba. When you say turn SELinux on, are you talking about changing it from permissive to enforcing or disabled to inforcing. If you booted a machine disabled and then want to turn on SELinux, You have to relabel. The easiest way to do that is to touch /.autorelabel reboot
Even though I got the error messages it seems to be working now I turned off via security level tool and rebooted