chmod ,chown ,chgrp------------
hello sir, We are not able to implement the commands chown,chmod ,chgrp.May be we are not aware of these properly.Kindly help us.
We are giving an example-----
The users test1 , test2, test3 are under group( named group1) .
The users test4 , test5 ,test6 are under group ( named group2).
Now with chmod command if we give
# chmod -R 770 test2
Then it means the group ( to which user test2 belongs to) will also have all permissions . So if we login as test1 ,we should access all the files of test2 user.But in the home directory of user test1 ,these files are not there.
Similarily if we issue the command
# chmod -R 777 test2
Then the group2 members should also access the files of user test2.But it is not happening.
------------
now we will consider chown command.
if we have one file named abc under test2 user then if we issue the command
# chown test1 /home/test2/abc
then the user test1 should be the owner of file abc.And this file should not be there under home directory of user test2.But it is not happening.
-------------------------
Now we will consider the command chgrp. If we issue the command
# chgrp group2 /home/test2/abc
Now the group2 members should have the access to file abc.But still this file is under the test2 .
we tried seeing some documents but we could not find it in detail.
|