Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounted usb-drive, only readable by root.[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
larand54
l33t
l33t


Joined: 20 Feb 2004
Posts: 695
Location: Sweden

PostPosted: Sun Jan 22, 2006 8:35 pm    Post subject: Mounted usb-drive, only readable by root.[SOLVED] Reply with quote

I edited fstab so that an ordinary user could mount it but it's not readable unless you change to root and that's not easy in kde whe you want to run xmms for example.

Any idea what to do if possible?


Last edited by larand54 on Mon Jan 23, 2006 8:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
twenty-three
n00b
n00b


Joined: 02 Dec 2005
Posts: 13
Location: Germany/Berlin

PostPosted: Sun Jan 22, 2006 10:41 pm    Post subject: Reply with quote

you have to chown the mountpoint, like:

Code:
chown -R user:users /mnt/usb


so you can access the drive with user rights
_________________
Saying that Java is good because it works on all OSs is like saying that anal sex is good because it works on all genders...
Back to top
View user's profile Send private message
larand54
l33t
l33t


Joined: 20 Feb 2004
Posts: 695
Location: Sweden

PostPosted: Mon Jan 23, 2006 6:49 pm    Post subject: Reply with quote

Sorry I forgot to mention that the drive is formated with NTFS and I can't modify it from linux.
So that won't help.
Back to top
View user's profile Send private message
rteichmann
n00b
n00b


Joined: 02 Feb 2004
Posts: 20
Location: Germany

PostPosted: Mon Jan 23, 2006 7:58 pm    Post subject: Reply with quote

larand54 wrote:
Sorry I forgot to mention that the drive is formated with NTFS and I can't modify it from linux.
So that won't help.

Try mounting the drive with the uid, gid and umask options set.

/etc/fstab example:
Code:
/dev/hda1               /mnt/winxp      ntfs            uid=1000,gid=100,umask=007        0 0

Change uid (user id), gid (group id) and umask (007 means uid1000 and gid100 can read, write and execute, rest can't do anything) according to your wishes. Maybe that works.
Back to top
View user's profile Send private message
larand54
l33t
l33t


Joined: 20 Feb 2004
Posts: 695
Location: Sweden

PostPosted: Mon Jan 23, 2006 8:14 pm    Post subject: Reply with quote

Thank you, that helped. :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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