Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-30-2003, 09:33 PM   #1
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
umask makes no sense

I have been trying to understand umask, it is confusing me. If I put this entry in my fstab I get this result

/dev/hda2 /mnt/ntfs ntfs umask=000,noauto,user 1 0
this gives me a permission of 555 for the directory /mnt/ntfs

/dev/hda2 /mnt/ntfs ntfs umask=111,noauto,user 1 0
it gives me thes results with this line, permission 0f 400. why would it not be 444

I am baseing my logic on this, wouldn't each of the ones in umask=111 minus from each of the fives(the permission with umask=000)

I am lost? any help understanding would be appreciated.

forgive me about this question. I can not seem to write anything that sounds clear and consise tonight.

Last edited by shanenin; 10-30-2003 at 09:50 PM.
Old 10-30-2003, 11:00 PM   #2
LQ Newbie
Registered: Aug 2003
Location: Australia
Distribution: Fedora Core 2
Posts: 24

Rep: Reputation: 15
I think you need four digits, i.e. 0111 The math is like ( 7 - mask ) = permissions, so that example should give you 666 permisions.

Last edited by Nightblade_oz; 10-30-2003 at 11:05 PM.
Old 10-30-2003, 11:08 PM   #3
LQ Newbie
Registered: Aug 2003
Location: Australia
Distribution: Fedora Core 2
Posts: 24

Rep: Reputation: 15
Oh, and be very careful with ntfs mounts under linux...
Old 10-31-2003, 02:58 AM   #4
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
Yes, be *very* careful, because if you try to write to an ntfs partition, it'll most likely corrupt that partition.
As for umask, IIRC it's not necessary to have four digits, you can just have three [although the last one's the sticky one].


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel: st0: Error with sense data: Current st09:00: sense key N da_kidd_er Linux - Hardware 0 12-16-2004 10:51 PM
Sound problem (makes no sense) carlosinfl Fedora 6 07-20-2004 06:40 PM
Shell makes sense, but X? How about a forum? nethbar LQ Suggestions & Feedback 12 05-11-2004 06:43 PM
I should have more sense mgbgt Member Intro 1 07-03-2003 06:56 PM
Wine Friggin Rules! But this makes no sense... Bigun Linux - General 4 10-28-2002 10:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration