Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem : Permission denied when mounted
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
N!cer
n00b
n00b


Joined: 20 Mar 2006
Posts: 41

PostPosted: Tue Mar 28, 2006 8:31 pm    Post subject: problem : Permission denied when mounted Reply with quote

hiiiiiiiii

how are u all

i have problem

i added user , it Permission =
ge3k@localhost ~ $ id
uid=1000(ge3k) gid=100(users) groups=10(wheel),18(audio),27(video),35(games),100(users)

ok.i login by root , then when mount usb drive = ( /dev/sda1) . i use ROX file manger . it's tell me :

Permission denied

why

until without mounted , example to login /usr or / form ROX its tell me Permission denied , also when i wnat change icon any program i dont change ,caz i dont login to /usr/sahre/icons :( it tell me Permission denied ?


helpme
Back to top
View user's profile Send private message
ectospasm
l33t
l33t


Joined: 19 Feb 2003
Posts: 711
Location: Mobile, AL, USA

PostPosted: Tue Mar 28, 2006 8:37 pm    Post subject: Reply with quote

What are the permissions on the USB drive when it's mounted? For instance, if /dev/sda1 is mounted on /mnt/usb, do this:

Code:
user@host ~ $ ls -l /mnt/usb


That will tell you the permissions of how it's mounted, and should give you a clue to why you can't read it as a regular user...
_________________
Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance!
Back to top
View user's profile Send private message
BlackSash
n00b
n00b


Joined: 13 Nov 2004
Posts: 17
Location: The Netherlands

PostPosted: Tue Mar 28, 2006 8:54 pm    Post subject: Re: problem : Permission denied when mounted Reply with quote

If I read your post correctly, you su to root, then mount the drive right? That will mount it with root permissions, which you, as a normal user, rightly cannot access.

What you should do is as follows:

su to root again: then add the following line to /etc/fstab

Code:

/dev/sda1 /mnt/[diskname] [fstype] user,rw[,...] 0 0


in the above line, replace [diskname] with the name of the directory it's to be mounted on; [fstype] with the type of filesystem that the device is formatted with, and [,...] with any special mount options you may want to set. This part is optional and can be omitted.

The important bit in the above line is user, this ensures that you, as a normal user, can mount and unmount the drive.
After that, do make sure that the permissions when mounted are okay.
_________________
I hate ATI cards!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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