Regarding User permissions
Hi,
I have created two users and assigned to two different groups and created common directory for both groups, finally when am trying to crate a file from one user to its own directory, am getting access denied error message.
The following steps, I have tried for to get a solution.
first-- echo 'umask 002' >> /etc/skel/.bashrc
useradd
1) useradd joshua
2) useradd alex
groups
3) groupadd hr
4) groupadd web
assigned users to group
5) usermod -G joshua hr
6) usermod -G alex web
created directory and changed the group ownership.
7) mkdir -p /depts/{hr,web}
chgrp hr /depts/hr
chgrp web /depts/web
Given permission for access
8) chmod 770 /depts/*
9) chmod g+s /depts/*
Once finished, if i tried to create a one file through the following command, am getting the Permission denied message.
[root@stationX]# su - joshua
[root@stationX]# touch /depts/hr/test
Please provide some solution for to create a file in that directory..
Could you please let me know where I missed commands to get a solution.
Thanks in advance
By
Senthil
|