linux - All files put into a folder "foo" by user "a" or "b" should belong to the "bar" group and only be visible by them -
pre requisite steps:
create 2 new user accounts "a" , "b"
# useradd # useradd b
create grouping "bar". create directory "foo".
# groupadd bar # mkdir /tmp/foo
task:
all files set "foo" directory users "a" or "b" should belong "bar" grouping , visible them.
chgrp bar /tmp/foo [changes grouping ownership of foo bar due added foo belong bar]
you can set acl permissions as:
setfacl -m u:a:rwx /tmp/foo linux command-line chmod rhel chgrp
No comments:
Post a Comment