Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
user cannot access files although he is the owner
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
h0mer`-
Apprentice
Apprentice


Joined: 02 Aug 2004
Posts: 215

PostPosted: Sat Apr 04, 2009 3:38 pm    Post subject: user cannot access files although he is the owner Reply with quote

Code:
ls: cannot access <directory>/<file>: Permission denied
ls: cannot access <directory>/<file>: Permission denied
total 0
-????????? ? ? ? ?            ? <file>
-????????? ? ? ? ?            ? <file>



i stripped out the actual file and directory names.
the user who is trying to get a directory listing ist the owner of the files. root access works so i guess its not a filesystem error.

any ideas?
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sat Apr 04, 2009 3:54 pm    Post subject: Reply with quote

did you add those question marks?

you need read/write (whichever you want - you can get away with just read, for example) AND EXECUTE permissions on the parent directory (. in the folder)
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
h0mer`-
Apprentice
Apprentice


Joined: 02 Aug 2004
Posts: 215

PostPosted: Sat Apr 04, 2009 4:03 pm    Post subject: Reply with quote

no i did not add the question marks.

a file listing as root shows correct permissions 644 and the user xbox:xbox as owner and group which is correct.
when i do the listing as user xbox i get the output that you see in my initial post.

i did what you said now but set the owner and group back to root:root. now user xbox can see and access the files again.

there must be a reason for this behavior, no?
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sat Apr 04, 2009 4:09 pm    Post subject: Reply with quote

h0mer`- wrote:
no i did not add the question marks.

a file listing as root shows correct permissions 644 and the user xbox:xbox as owner and group which is correct.
when i do the listing as user xbox i get the output that you see in my initial post.

i did what you said now but set the owner and group back to root:root. now user xbox can see and access the files again.

there must be a reason for this behavior, no?
what are the permissions on the folder? it's sounding like someone doesn't have execute on it.
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
h0mer`-
Apprentice
Apprentice


Joined: 02 Aug 2004
Posts: 215

PostPosted: Sat Apr 04, 2009 4:18 pm    Post subject: Reply with quote

folder is 755
Back to top
View user's profile Send private message
tgolden
n00b
n00b


Joined: 01 Apr 2009
Posts: 14

PostPosted: Sat Apr 04, 2009 10:27 pm    Post subject: Reply with quote

What are the mount options on the filesystem, and what filesystem are you using? If this is a network filesystem could there be a permissions issue on the server?
Back to top
View user's profile Send private message
h0mer`-
Apprentice
Apprentice


Joined: 02 Aug 2004
Posts: 215

PostPosted: Sun Apr 05, 2009 10:54 am    Post subject: Reply with quote

its not a network filesystem. the hdd is connected via usb and gets mounted via autofs.

its working with the new permissions which is okay for me, so this is kinda solved :)

thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum