Help - Search - Members - Calendar
Full Version: Samba Share Permissions
Linuxhelp > Support > Technical Support
Hello, I hope there's someone who can help. I've installed Samba on a Mandrake 9.2 box. I've created users and computer accounts for client access. I've created directories to share and configured them in the smb.conf file. Everything works great, users can join the samba domain and access shares. But after a while - and the time varies - the folders are no longer accessible. When I look on the samba box, the permissions I had set on the folders are gone. For example, I created an Accounts folder in /home I chmod 0770 /home/Accounts to give it rwxrwx--- permissions. After some time if I ls -l the directories under /home the permissions on every folder is rwx------.

Anyone have any ideas why?

Thanks in advance

Fred Grimple
That seems very wierd ...

I would look in the crontab for root (crontab -e) ... if you don't have a crontab, look at all files in /etc/

some pc's have a /etc/crontab and directories like

I figured it out. MSEC changes the permissions by default depending on the level you choose. If you enter msec 4, the security level is raised to 4 with it's associated permssions. To set manual permissions on some folders, you have to create a perm.local file in /etc/security/msec/ In this file list the folders you want to set permissions for, along with the user and group ownership, and the permissions you need. So if sharing the public folder in home write in perm.local:
/home/public/ root.usergroup 0776

Then msec can keep doing it's thing and the public folder will not change.
I always turn off the Mandrake (or any other distro's) default firewall / security and download a good iptables firewall script ... so I would have never figured that out biggrin.gif

Thanks for posting the answer ... It will help others who search in the future!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.