user cant read ntfs mount. umask ineffective

Place to discuss Slackware
Post Reply
ollie
n00b
n00b
Posts: 2
Joined: Tue Nov 30, 2004 6:06 am

user cant read ntfs mount. umask ineffective

Post by ollie » Mon Dec 27, 2004 4:19 am

hey, i want to be able to read my windows partitions. i can do it as root but i need user access. now here is my fstab entry

Code: Select all

/dev/sda1        /mnt/sda1     ntfs        noauto,user,umask=222               0   0
i had it on ro but i took it out incase it was conflicting with the umask.
a ls returns

Code: Select all

dr--r----x   1 root root 24576 2004-12-23 13:12 sda1
so ofcourse

Code: Select all

ollie@Miranda:/mnt/sda1$ ls
ls: .: Permission denied
what am i doing wrong?
and why does umask use backwards octal permissions?

ollie
n00b
n00b
Posts: 2
Joined: Tue Nov 30, 2004 6:06 am

Post by ollie » Mon Dec 27, 2004 5:04 am

fixed

umask=0222


anyone explain what the zero is for? i would find out but i have to go. i guess i will do some experimentation when i get back

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Mon Dec 27, 2004 9:38 am

There are actually 4 octals in UNIX/Linux permissions. You usually only work with the last 3 and if you only use the last 3 with the chmod command it knows to just ignore the 1st octal. In addition to being able to set rwx permissions for owner/group/other (the last 3 octals) you can set the SUID, SGID, and sticky bits which is controlled in the 1st octal. Unlike the "chmod" command the "mount" command requires all 4 octals in the "umask" param.

worker201
guru
guru
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Post by worker201 » Wed Dec 29, 2004 4:51 am

This method is way cooler:
http://www.userlocal.com/tips/fatmounting.php

vfat specific, but highly adaptable. Also works on non-Slack distros.

Post Reply