LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2009, 01:17 AM   #1
uid0sd
Member
 
Registered: Aug 2006
Distribution: Mac OS X, Debian, Ubuntu
Posts: 37

Rep: Reputation: 15
Unhappy 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.
 
Old 10-29-2009, 01:39 AM   #2
simer_anand88
LQ Newbie
 
Registered: Oct 2009
Distribution: Mandriva
Posts: 25

Rep: Reputation: 15
Quote:
Originally Posted by uid0sd View Post
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.
 
Old 10-29-2009, 02:29 AM   #3
eth1
Member
 
Registered: May 2008
Posts: 97

Rep: Reputation: 20
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
 
Old 10-29-2009, 02:40 AM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why am I denied permission when I try to create a directory? toastyjsd Linux - Newbie 2 02-28-2009 07:49 PM
'permission denied' trying to mount a directory leupi Linux - Networking 19 12-04-2005 07:50 PM
root gets 'Permission denied' to directory mikemrh9 Linux - Security 2 11-18-2005 05:15 AM
permission denied to home directory ekdya Debian 3 11-08-2005 05:24 PM
permission denied when opening directory pilot1 Linux - General 1 10-23-2002 09:27 PM


All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration