LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PERMISSION DENIED - directory (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-directory-765194/)

uid0sd 10-29-2009 12:17 AM

PERMISSION DENIED - directory
 
Hello, we have a directory pretty well nested in a user's accounts' home. I've added myself to that user's group, made the directory world readable but still can't view the file that's in there. Any suggestions?

I believe it's nested under a directory that's symlink'd to another directory under the same user's home.


Thanks in advance.

simer_anand88 10-29-2009 12:39 AM

Quote:

Originally Posted by uid0sd (Post 3736141)
Hello, we have a directory pretty well nested in a user's accounts' home. I've added myself to that user's group, made the directory world readable but still can't view the file that's in there. Any suggestions?

I believe it's nested under a directory that's symlink'd to another directory under the same user's home.


Thanks in advance.

To view any directory or to enter into directory you must have execute permission on that directory.

eth1 10-29-2009 01:29 AM

Basically to traverse inside any directory you need read(r) and execute(x) bits on the directory.

If the directory is /home/user/dir, can you paste the output of the command,

Quote:

ls -ald /home/user/dir

blackhole54 10-29-2009 01:40 AM

You need execute permission on every directory in the path leading to the destination directory. While I think the read bit is not necessary on these intermediate directories, I suggest having that permission also, unless you have a specific reason not to.

Also, be aware than when a user is added to a group, that doesn't take effect for the current logins. I.e. if you add yourself to a group, you have to log out and log back in before that takes effect. If you want to see what groups your current login can access, type the groups command.


All times are GMT -5. The time now is 03:20 PM.