LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   umask options (https://www.linuxquestions.org/questions/linux-general-1/umask-options-315485/)

morphodone 04-20-2005 06:17 PM

umask options
 
well after some reading i have a question about the umask option.

it seems that when invoking umask for ntfs mounts in fstab, there is an extra digit...

example:
/dev/sda1 /mnt/windows ntfs umask=0222 0 0

whereas all other umask options i have found are

umask=XXX

versus

umask=YXXX.

am i just crazy or is this true?

trickykid 04-20-2005 06:21 PM

It's for things like sticky bit, suid and such.. it should explain this in the chmod man page

Komakino 04-20-2005 06:27 PM

It's true, but for all I know you may well be crazy :)

I would imagine you can use four-bit umasks for other filesystems too (though I don't know). You can always just use a three-bit mask if you want to (on that two-bit ntfs filesystem :D)

morphodone 04-20-2005 09:05 PM

thanks for the replies,

it was odd to me because most of the info i see about
umask etc. refers to 3 digits only.

come to think of it, maybe i should just format that filesystem anyway.
of course then i wouldn't be able to boot into my other os :D


All times are GMT -5. The time now is 10:25 PM.