Acl pemission problem
Hi
I Tried out to create default permission for newly created file and folder permission by using acl,But i could not find acl permission enabled for user in the group .Any file created in folder /sysadmin does not hold rwx for the group user user1 & user2 I followed the below link to http://knackforge.com/blog/vannia/se...y-debianubuntu Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
I tried to login as user1 to folder /sysadmin .But it deliver permission denied Quote:
Quote:
|
Is the filesystem mounted with "-o acl" option?
|
Hi Little Master,
If your running EXT2/3 Filesystem you will need to enable ACLS and remount; do this by editing /etc/fstab Quote:
basically change defaults to rw,acl. This will make it persistant (stays after reboot) but you can make it effective now by running; Quote:
Lets clear your current config first; Quote:
Quote:
Quote:
Now just set ACL for the group Quote:
|
Some remarks:
• You can use getfacl to check whether the intended permissions were set in the correct way. • Was the user1 already logged in? The secondary groups are set during the login. The command id will tell what’s actually set for user1. • For ext2/ext3 it’s also possible to define default mount options by tune2fs. This can include acl – and while ACLs are applied, this won’t show up in the output of mount command then. Code:
# tune2fs -l /dev/sda1 |
The default acl will be used when creating new directories and files. You need to create both a default acl and a normal acl.
I've done the same thing myself. |
I had made a entry for acl in fstab and executed mount -v -o remount / .Even i had made a soft reboot of my server .But still i could find find the acl enabled .
@gmlwall : I tried the things what you had posted above.But seems not to be working [/B] Quote:
Quote:
Quote:
when i executed mount command i could find the acl enabled for / Quote:
|
Code:
root@Little-desktop:~# less /etc/group | grep "sysadmin" sysadmin:x:1003:user1,user2 root@Little-desktop:~# setfacl -R -b /sysadmin root@Little-desktop:~# setfacl -R -m g:sysadmin:rwx /sysadmin |
All times are GMT -5. The time now is 06:40 PM. |