Computing.Net > Forums > Linux > Folder Permissions

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Folder Permissions

Reply to Message Icon

Name: geolew
Date: November 9, 2006 at 19:03:08 Pacific
OS: Mandriva 2005LE
CPU/Ram: Tbird 1.33/512mb
Product: IBM Compatable
Comment:

Please bear with this newbie.

Installed 2005LE no problem.
Set group called admins
Added users to this group, george,bob,bill

as root used mkdir -m 0775 /home/public
as root used chown root.admins /home/public

In smb.conf ...
[public]
path = /home/public
username = george,bill,bob
valid users = george,bill,bob
real list = george,bill,bob
write list = george,bill,bob

checked permissions from george (XP Client)
I get drwx ---- ----

so SU chmod -R 0775 /home/public
Aha, Users now can use directory

But after an hour or so permissions go back to drwx ---- ----

How do i get permission to stay.
I should be able to do this in samba, but not sure how.

George



Sponsored Link
Ads by Google

Response Number 1
Name: scooby108
Date: January 8, 2007 at 10:31:24 Pacific
Reply:

MSEC (Mandrake Security package) is what's causing that. MSEC runs every hour and resets security settings and file permissions to a template for whatever security level you chose during setup (either 4-higher or 5-paranoid). Since that directory is /home, Mandriva is changing permission to 700 so only the owner has access. Here's how to fix it:

Create/edit this file... /etc/security/msec/perm.local
and put this line in it...
/home/public root.admin 0755

That file is to override permission settings that MSEC uses for the security level you chose. Format is "/dir/path user.group perms". You can use "current" in place of root.admins to not modify the owner and group.

--
John


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Folder Permissions

Set default folder permissions www.computing.net/answers/linux/set-default-folder-permissions/28271.html

File/Folder permissions www.computing.net/answers/linux/filefolder-permissions/15128.html

Folder permissions for a ntfs partition www.computing.net/answers/linux/folder-permissions-for-a-ntfs-partition/11407.html