LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount permissions (https://www.linuxquestions.org/questions/linux-newbie-8/mount-permissions-154650/)

RTT 03-07-2004 01:38 PM

mount permissions
 
I'm trying to enable a user, 'rtt', to read from a mount point. When i mount the partition as root (# mount /mnt/mp3), and then try and 'cd' to the folder ($ cd /mnt/mp3) as 'rtt', i get permission denied.

I can't think why this is? :confused:

my /etc/fstab file looks like this:

Code:

/dev/hda4        swap        swap        defaults        0    0
/dev/hda3        /          reiserfs    defaults        1    1
/dev/cdrom      /mnt/cdrom  iso9660    noauto,user,rw 0    0
/dev/hda5        /mnt/mp3    ntfs        auto,user,rw    0    0
devpts          /dev/pts    devpts      gid=5,mode=620  0    0
proc            /proc      proc        defaults        0    0

TIA.

Andrew Benton 03-07-2004 02:45 PM

Edited to remove nonesense

RTT 03-07-2004 04:06 PM

You misunderstand. I can 'cd' in as root and read/write files as i please. i need to be able to do this as a normal user, because i dont want to have to run things as root to be able to read files from there. :)

Andrew Benton 03-07-2004 06:42 PM

Sorry I wasn't paying attention. I've never tried to write to an NTFS partition as there are warnings about it not being safe in the kernel help pages, but if it works for you then fair enough. For what it's worth, this line mounts my windows partition at boot
/dev/hda1 /mnt/windows ntfs ,ro,umask=0 0 0
and any normal user can read from it. Why not try
/dev/hda5 /mnt/mp3 ntfs ,rw,umask=0 0 0
Or variations.

DrOzz 03-07-2004 07:14 PM

well i hope you don't have alot of data on that drive if you do try ...
your a brave little soldier to do so ;)

i would wait until it becomes more stable to write to that partition ..

or read about the below and try if you wish :
http://www.jankratochvil.net/project/captive/

RTT 03-08-2004 11:13 AM

Quote:

Originally posted by DrOzz
well i hope you don't have alot of data on that drive if you do try ...
your a brave little soldier to do so ;)

Just reading from a spare 120gig HDD i have lying around. Got a copy of everything on it elsewhere (probably 2x over!) so i'm not *too* bothered if it all goes to pot.

Quote:

Originally posted by Andrew.....
/dev/hda5 /mnt/mp3 ntfs ro,umask=0 0 0
Genuis, thanks :)


All times are GMT -5. The time now is 04:55 AM.