Originally Posted by raj_hcl1986@rediffma
I m new in linux and have a basic query. Hope i ll get my answer here.
I have made a file /depts/hr/ in root's home directory. Now changed its group ownership from 'root' to 'hr'. Also changed the file permissions of /depts/hr to 770.
Instead of providing the straight answer, I will show you the patch to enlightenment so hopefully you learn it better
I assume that depts/hr is under /root then. Right?
In that case, try these three commands, and look carefully
the ownerships and permissions for the three commands:
ls -ld /root
ls -ld /root/depts
ls -ld /root/depts/hr
All of these as root, for obvious reasons since your regular users will not be able to do so.
note that to be able to reach "hr" you need to go across all the possible locations between / and that location. If there's a wall in the middle of the road then you can't pass.