LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2004, 02:38 PM   #1
RTT
Member
 
Registered: Nov 2003
Location: England
Distribution: slackware, FreeBSD
Posts: 33

Rep: Reputation: 15
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?

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.
 
Old 03-07-2004, 03:45 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Edited to remove nonesense

Last edited by Andrew Benton; 03-07-2004 at 07:36 PM.
 
Old 03-07-2004, 05:06 PM   #3
RTT
Member
 
Registered: Nov 2003
Location: England
Distribution: slackware, FreeBSD
Posts: 33

Original Poster
Rep: Reputation: 15
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.
 
Old 03-07-2004, 07:42 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
Old 03-07-2004, 08:14 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
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/
 
Old 03-08-2004, 12:13 PM   #6
RTT
Member
 
Registered: Nov 2003
Location: England
Distribution: slackware, FreeBSD
Posts: 33

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
permissions/mount improverrr Ubuntu 6 12-21-2005 07:55 PM
mount permissions KMcD Slackware 1 02-09-2004 06:48 AM
Mount Permissions Camasii Linux - General 2 12-08-2003 05:26 AM
Mount Permissions Odd_Bloke Linux - Newbie 2 08-26-2003 01:00 PM
mount permissions FNC Linux - Software 3 05-30-2001 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration