LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-02-2003, 10:23 AM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
what am I missing?


here is a line from my /etc/fstab

/dev/hda7 /mnt/vfat vfat umask=000,noauto,user 1 0

on my vfat patition with umask set at 000 I get these results. I am using an equation to demonstrate.
xxx(original permis.)-000(umask)=777(new permis) in that example xxx would equal 777. In reality the permission with out umask is 744. The math does not work. What am I missing?

here is an excerpt from the man pages

"The umask is used by open(2) to set initial file permis-
sions on a newly-created file. Specifically, permissions
in the umask are turned off from the mode argument to
open(2) (so, for example, the common umask default value
of 022 results in new files being created with permissions
0666 & ~022 = 0644 = rw-r--r-- in the usual case where the
mode is specified as 0666)."

in their example mode is set at 666(is that for files?) isn't 777 used for directorys?.
 
Old 11-02-2003, 11:18 AM   #2
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
Um, just from raw inticnt, it says NEWLY CREATED FILESYSTEM, and it seems that you are mounting an existing filesystem at startup, so, the permissions should for vfat should be that everyone can read it, that's what vfat/fat32/fat16/fat filesystems are, open for everyone. So, just set it up normally, and see if that works first.
 
  


Reply


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
Am I missing something? mapesju Linux - Software 0 08-28-2004 03:44 AM
Am I missing something? brent1a Linux - Networking 12 08-14-2004 04:10 AM
Missing HD RJDavison Fedora 1 05-21-2004 11:04 AM
Just don't know what I'm missing here... hpnadig Linux - Software 2 03-15-2004 07:36 AM
Missing gd.h gmartin Slackware 3 02-11-2004 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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