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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-26-2004, 05:09 AM
|
#1
|
Member
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216
Rep:
|
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.
|
|
|
01-26-2004, 05:11 AM
|
#2
|
Member
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840
Rep:
|
Change the drive partition settings in /etc/fstab to 'user' from 'root'
|
|
|
01-26-2004, 05:15 AM
|
#3
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
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.
|
|
|
01-26-2004, 05:20 AM
|
#4
|
Member
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216
Original Poster
Rep:
|
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?
|
|
|
01-26-2004, 05:22 AM
|
#5
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
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.
|
|
|
01-26-2004, 06:03 AM
|
#6
|
Member
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216
Original Poster
Rep:
|
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.
|
|
|
01-26-2004, 06:23 AM
|
#7
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|