Fixing the “non appearing files” issue when sharing files with SAMBA on CentOS
May 5, 2012 1 Comment
OK, I easily lost 8 hours trying to fix this issue:
- installed SAMBA on CentOS
- correctly configured smb.conf (security=user, writable=yes)
- created a user account and declared it using smbpasswd
- made sure that this user had full read/write access to the shared folder
- made sure that the firewall was allowing SAMBA traffic
Then, from a Windows 7 PC, I used the ‘Map network drive” option, connected to my SAMBA shared drive, entered my SAMBA user name and password… and then what ?
- only read-only access to the shared drive
- only folders were visible, no files whatsoever
Do you know why ? Because SELinux is activated by default on CentOS.
To check if this is the case for you, use the ‘sestatus’ command: if you get an ‘enabled’ result, then you may want to disable it by following the procedure detailed here.