LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ntfs access denied (https://www.linuxquestions.org/questions/linux-newbie-8/ntfs-access-denied-259049/)

tenmiles 11-25-2004 12:27 AM

ntfs access denied
 
i recently installed fc3 and i have 2 ntfs partitons that i need mounted. i installed kernel-ntfs and i could access them, but i edited /etc/fstab so that they would mount on startup and it denies me permissions unless i am root. my fstab looks like this:
/dev/hdd1 /mnt/server vfat defaults,user,owner,umask=000 0 0
/dev/hdd2 /mnt/ntfs ntfs defaults,user,owner,ro 0 0
/dev/hda1 /mnt/win ntfs defaults,user,owner,ro 0 0
the first is one that works, but as you can see it is a vfat partiton. thanks

MasterC 11-25-2004 01:36 AM

Well it also works because of the umask, set that in the ntfs bits as well, also, I'd remove 'defaults' and supply your own args as you have.

Cool

triet 11-25-2004 01:25 PM

I've got the same problem
 
I've got the same problem as tenmiles. Here's my fstab entry:

/dev/hdh1 /NTFS ntfs ro,uid=leminhtriet,gid=leminhtriet,umask=0377 0 0

The partition is automounted on startup. However, i can't access it as any other user besides root. I've tried different combinations of umask but didn't help.

Any suggestions would be appreciated.
Thanks.

tenmiles 11-26-2004 12:58 AM

triet, the 3 in ur umask will take away the ability to execute and my handy dandy linux+ prep book (which i use to learn from) says that if you want to access the partiton then u need to have read and execute. all i had to do was add the umask and it worked fine.

MasterC 11-26-2004 04:01 AM

Take away that preceding 0 as well, as that's your setuid, meaning, who owns the files, we don't want to stake claim, simply give permission. Three digits should suffice.

Cool


All times are GMT -5. The time now is 06:31 AM.