LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-26-2004, 05:09 AM   #1
Moebius
Member
 
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Rep: Reputation: 30
permission for normal users to read my NTFS HDs.


Even though the drives themselves are read only, how to I add permission for normal user to read the drive? It seems to be mounted, but when i double click it says "You do not have enough permission to read file:/mnt/hda1. or same thing for sda1.

Thanks.
 
Old 01-26-2004, 05:11 AM   #2
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
Change the drive partition settings in /etc/fstab to 'user' from 'root'
 
Old 01-26-2004, 05:15 AM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Put an appropriate umask value in the 4th field of the relevant entry in /etc/fstab - such as

umask=0222

typical options in the 4th field for an NTFS filesystem are:

umask=0222,auto,ro

Last edited by Skyline; 01-26-2004 at 05:17 AM.
 
Old 01-26-2004, 05:20 AM   #4
Moebius
Member
 
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Original Poster
Rep: Reputation: 30
OK thanks for the tips. I didn't see anywhere where it said 'root' so I don't know where to put 'user' I added the unmask=0222

Now my whole fstab looks like this:
/dev/hdc1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdc6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=udf:iso9660,ro,--,iocharset=iso8859-1 0 0
none /mnt/cdrom2 supermount dev=/dev/scd1,fs=udf:iso9660,ro,--,iocharset=iso8859-1 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0
/dev/hda1 /mnt/hda1 ntfs user,ro,dev,exec,suid,defaults,unmask=0222 0 0
/dev/sda1 /mnt/sda1 ntfs defaults,unmask=0222 0 0
none /proc proc defaults 0 0
/dev/hdc5 swap swap defaults 0 0


Is there any way i could change these permissions without restarting? If I unmount and mount /dev/sda1 /mnt/sda1 would that mount with these new permissions?
 
Old 01-26-2004, 05:22 AM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Its

umask

not

unmask

also use:

mount -a

as Root user to remount without rebooting

Quote:
/dev/hda1 /mnt/hda1 ntfs user,ro,dev,exec,suid,defaults,unmask=0222 0 0
For this line above use:

/dev/hda1 /mnt/hda1 ntfs auto,ro,umask=0222 0 0


Last edited by Skyline; 01-26-2004 at 05:24 AM.
 
Old 01-26-2004, 06:03 AM   #6
Moebius
Member
 
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Original Poster
Rep: Reputation: 30
cool. It worked when i rebooted but it didn't work when I put that command into a shell as root. I wasn't 100% clear on what I was supposed to do there so I tried

mount -a

which didn't appear to do anything but give me a help readout, I assume for some incorrect usage somewhere and

mount /dev/hda1 /mnt/hda1 ntfs user,ro,dev,exec,suid,defaults,unmask=0222 0 0

did the same thing I think. Well never the less, rebooting did the trick and now I can access those drives!

Thanks.
 
Old 01-26-2004, 06:23 AM   #7
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Quote:
Well never the less, rebooting did the trick and now I can access those drives!
Glad to be of help

remember, the mount command from the command line uses a different "syntax" to the corresponding entry in /etc/fstab - that's why using what is essentially an fstab entry for a temporary mount via ther comamnd line will cause errors etc.

Last edited by Skyline; 01-26-2004 at 06:26 AM.
 
  


Reply



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
Allowing normal users read-write access to Windows partitions Aphex_Twin2 Slackware 5 05-23-2005 09:22 AM
Normal users reading regular NTFS mount. MagusYilie Linux - Newbie 2 04-20-2005 11:07 PM
Permission for normal users Vizy Linux - General 1 03-16-2004 11:39 AM
USB Key /w ro NTFS and normal users can't read spire Linux - Newbie 3 09-20-2003 06:50 PM
How do I give users read but not delete permission suse7.1user Linux - General 2 09-03-2003 05:13 PM

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

All times are GMT -5. The time now is 03:39 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
Open Source Consulting | Domain Registration