View previous topic :: View next topic |
Author |
Message |
larand54 l33t
Joined: 20 Feb 2004 Posts: 695 Location: Sweden
|
Posted: Sun Jan 22, 2006 8:35 pm Post subject: Mounted usb-drive, only readable by root.[SOLVED] |
|
|
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 |
|
|
twenty-three n00b
Joined: 02 Dec 2005 Posts: 13 Location: Germany/Berlin
|
Posted: Sun Jan 22, 2006 10:41 pm Post subject: |
|
|
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 |
|
|
larand54 l33t
Joined: 20 Feb 2004 Posts: 695 Location: Sweden
|
Posted: Mon Jan 23, 2006 6:49 pm Post subject: |
|
|
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 |
|
|
rteichmann n00b
Joined: 02 Feb 2004 Posts: 20 Location: Germany
|
Posted: Mon Jan 23, 2006 7:58 pm Post subject: |
|
|
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 |
|
|
larand54 l33t
Joined: 20 Feb 2004 Posts: 695 Location: Sweden
|
Posted: Mon Jan 23, 2006 8:14 pm Post subject: |
|
|
Thank you, that helped. |
|
Back to top |
|
|
|