🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: tw.bbs.comp.linux
Article #6

Re: mount problem with vfat [help]

#6
From: Manfred Bartz
Date: Wed, 21 May 1997 00:00
50 lines
2695 bytes
g@Elizabeth.netcraft.com.au (Geoffrey D. Bennett) writes:

> Manfred Bartz (mbartz@werple.net.au) wrote:
> : MS-VFAT does not support file permissions etc...
> 
> : You can mount a partition ``suid'' if you want to give permissions to
> : anyone who mounts the drive.
> 
> Don't you mean the 'umask' option?  suid means "Allow
> set-user-identifier or set-group-identifier bits to take effect."
> which is irrelevant since MS-VFAT does not support file permissions.

You are right.  What I wanted to achieve was that if a particular user
mounts the DOS drive, all files are owned by that user.  It turns out
that ``suid'' doesn't do anything.

> I do it like this:
> /dev/sdb1             /dos         msdos   umask=0 0 0
> 
> Or if you want to restrict access to certain users, create a group for
> them and use the gid option:
> /dev/sdb1             /dos         msdos   gid=70,umask=07 0 0

Very good.  I just took your example and implemented that.  :-)
So, the umask is the inverse of the permissions as used in chmod?

While on that topic, for the ext2-fs, I just discovered that I can
change my umask for the current session with umask -S mmm; very
useful.  UNIX (Linux) never ceases to amaze me!   :-)

> I don't see any point in using "user,noauto" for nonremovable media?

I use those partitions irregularly, unmounting them allows kerneld to
unload the VFAT and FAT support modules.  

> : All this is covered in the manpage for ``fstab''.
> 
> And 'mount'.
> 
> : I use a test editor to change ``fstab''. 
> : Challenge: Try doing this with the Redhat tools.  Is that possible?  Anyone?
> 
> Yes it is.

Surprise!  I couldn't figure it out when I tried Redhat V3.  

-- 
Manfred Bartz <mbartz@werple.net.au>
  --- LINUX, live free or die ---
Technical Details
Message-ID: <m2d8qldo9e.fsf@reddwarf.aup.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <337E3443.7737@cfs02.cc.monash.edu.au> <m2raf1e6fx.fsf@reddwarf.aup.com.au> <3382a39c.0@news.camtech.net.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: faa64,e4ae0cfc666ebf80
X-Google-Attributes: gidfaa64,public
X-Google-Thread: 103fcc,e4ae0cfc666ebf80
X-Google-Attributes: gid103fcc,public
X-Google-Thread: 102983,e4ae0cfc666ebf80
X-Google-Attributes: gid102983,public
From: Manfred Bartz <mbartz@werple.net.au>
Subject: Re: mount problem with vfat  [help]
Date: 1997/05/21
Message-ID: <m2d8qldo9e.fsf@reddwarf.aup.com.au>
X-Deja-AN: 242824456
Sender: mbartz@reddwarf.aup.com.au
References: <337E3443.7737@cfs02.cc.monash.edu.au> <m2raf1e6fx.fsf@reddwarf.aup.com.au> <3382a39c.0@news.camtech.net.au>
X-Face: `7XhJ:(7$0=La3f9Tu4$Y8v0tVk-)FpJb(fz(H}9zi&.<tC9:`s'U*Q8Pz&(*x0xAY93N6A :"ObLj?n/\Xm['+nlFm:tE8TMp*dHA3H:1Ny\orulI(nV.Q59Em:i>p/pIs*!p"BJf0#wws0[pX,/: &
Organization: Werple Internet, Melbourne
Newsgroups: tw.bbs.comp.linux,aus.computers.linux,alt.os.linux