i share folder called 'files' user1 , user2 in linux account. there way set authorizations read write or execute these 2 users , keep secure other users? knowledge, possible usergroup whole.
thank you
if linux has "modern" filesystem (ext3/ext4,... )you can achieve posix acls:
enable acls fs. --> required ext3 , ext4 on kernels older 2.6.38. other fs acl-support have them automatically activated.
mount -o remount,acl / tune2fs -o acl /dev/<partition>give
user1access folderfiles: (r/w/x)setfacl -m user:user1:rwx /home/philipovic/filesgive
user2access folderfiles: (r/w/x)setfacl -m user:user2:rwx /home/philipovic/files
if linux not support acls have create group:
- create group
- add desired users group
chgrpdirectory group, , give permissionschmod:chgrp groupname /home/philipovic/files chmod g+rwx /home/philipovic/files
Comments
Post a Comment