LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ntfs automatic mount & root permissions (https://www.linuxquestions.org/questions/linux-newbie-8/ntfs-automatic-mount-and-root-permissions-197841/)

NWS 06-26-2004 12:29 AM

ntfs automatic mount & root permissions
 
i've just configured an xp/redhat dual boot system on my home pc, and i'm having some newbie problems.

one of which is that i can only read my ntfs drive if i'm logged in as root user. if i login as myself (NWS), then i can't get to the folder because i don't have the "permissions". I've edited my fstab to look like:

------------------------------------------
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/usr /usr ext3 defaults 1 2
/dev/hda9 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hdb1 /mnt/xp ntfs ro, umask=000 0 0
--------------------------------------------

The ntfs drive that i want to see is hdb1 on the last line. I've also tried using the lines gid=NWS and uid=NWS, but neither of those options work. Other umask options like the ones described on the ntfs project page do not work either.

Can anyone help?

lacerto 06-26-2004 03:01 AM

Try
mount -t nfs yourmachine:/yourshare /mnt/yourshare type nfs (rw,addr=192.168.1.*)
or in fstab
yourmachine:/yourshare on /mnt/yourshare type nfs (rw,addr=192.168.1.*)

Remember that the user must have read/write permissions to the mount point

lacerto 06-26-2004 03:05 AM

Sorry...I totally misread your post - I thought were talking about NFS, not NTFS!

Just make sure the mount point is readable by the user.

Xodiak 06-26-2004 04:12 AM

I think it must be the umask option which controls permissions.
http://linux-ntfs.sourceforge.net/info/ntfs.html#4.9
I usually set it to umask=0222

scuzzman 06-26-2004 07:41 AM

Quote:

Originally posted by NWS:

one of which is that i can only read my ntfs drive
actually this is quite fortunate, as chances are, your linux kernel doesn't support NTFS writing. You'll kill your hard-drive doing this.

NWS 06-26-2004 11:52 AM

scuzz,

What I mean is that I can only access my ntfs drive if I'm logged in as the root user. None of my other users can get to it, and I want them to be able to. My kernel supports NTFS read cuz I used the NTFS project page to download and install read support for the ntfs drive.

NWS 06-26-2004 11:53 AM

lacerto,

How do I make sure the mount point is readable by the user?

NWS 06-26-2004 11:54 AM

i've tried the umask=0222 option and it still doesn't work

amit101 07-21-2004 02:44 AM

try the following option in fstab .. it works for me :)

ro,auto,user,exec,umask=0222


All times are GMT -5. The time now is 08:42 PM.