sayeo87
February 26th, 2009, 07:19 AM
On a Fedora server, I have a directory "dir_a" that I want to give users in the group "grp_a" access to. But the path to dir_a is /root/dir_a. First of all I'd like to ask is this even possible? Giving non-root user permissions to a directory that is inside /root?
So in /etc/groups I created a new group by adding the line
"grp_a:x:511:myUsername,user1,user2...."
Then as root I did
"chown -R :grp_a dir_a"
followed by
"chmod g+rwx dir_a"
Doing an ls -l showed the expected output:
"drwxrwxr-x 9 root grp_a"
But alas, when I tried to cd into the directory as a normal user by doing "cd /root/grp_a" I get a permission denied.
Can anybody spot what I'm doing wrong?
So in /etc/groups I created a new group by adding the line
"grp_a:x:511:myUsername,user1,user2...."
Then as root I did
"chown -R :grp_a dir_a"
followed by
"chmod g+rwx dir_a"
Doing an ls -l showed the expected output:
"drwxrwxr-x 9 root grp_a"
But alas, when I tried to cd into the directory as a normal user by doing "cd /root/grp_a" I get a permission denied.
Can anybody spot what I'm doing wrong?