Thread View: tw.bbs.comp.linux
6 messages
6 total messages
Started by Mr. TANG
Sun, 18 May 1997 00:00
mount problem with vfat [help]
Author: Mr. TANG
Date: Sun, 18 May 1997 00:00
Date: Sun, 18 May 1997 00:00
33 lines
1643 bytes
1643 bytes
Hi All I try mount the Win95 partition for any user in linux, but when I setup the fstab, only the root user can write file to Win95 partition, why ???? I have try vfat and msdos type in mount command, it had same problem. # # /etc/fstab # # You should be using fstool (control-panel) to edit this! # # <device> <mountpoint> <filesystemtype> <options> <dump> <fsckorder> /dev/hdb7 / ext2 defaults 1 1 /dev/cdrom /mnt/cdrom iso9660 ro,noauto 0 0 /dev/fd0 /mnt/floppy ext2 defaults,noauto 0 0 /dev/hdb5 /mnt/hd vfat defaults 0 0 none /proc ignore 0 0 0 thank's -- �����y�H Leo TANG :) you can send me a E-mail in following address :) mailto:mktan4@cfs02.cc.monash.edu.au mailto:mktan4@nellads.cc.monash.edu.au mailto:mktan4@silas.cc.monash.edu.au mailto:mtan1@bedrock.eng.monash.edu.au mailto:mktan@yoyo.cc.monash.edu.au
Re: mount problem with vfat [help]
Author: Mark Heath
Date: Mon, 19 May 1997 00:00
Date: Mon, 19 May 1997 00:00
11 lines
1003 bytes
1003 bytes
Mr. TANG (mktan4@cfs02.cc.monash.edu.au) wrote: try this: : /dev/hdb5 /mnt/hd vfat defaults,umask=000 0 0 -- -- mark heath | signature SPAMMED to avoid base 64 TWFpbCBhZGRyZXNzIG5vdCBpbmNsdWRlZCwgWW91IGp1c3QgbmV2ZXIga25vdyB3aGF0IHRoZXNl IEJPVFMgYXJlIApjYXBhYmxlIG9mLgo=
mount problem with vfat [help]
Author: Tony Langdon
Date: Mon, 19 May 1997 00:00
Date: Mon, 19 May 1997 00:00
27 lines
1812 bytes
1812 bytes
It's 18 May 97 09:42, We'll return to mktan4@cfs02.cc.monash.edu.au and All's discussion of mount problem with vfat [help] mk> I try mount the Win95 partition for any user in linux, but when I mk> setup the fstab, only the root user can write file to Win95 partition, mk> why ???? I have try vfat and msdos type in mount command, it had same mk> problem. It's because (1) Vfat (and FAT for that matter) don't understand permissions, so the system assigns the whole partition the same owner and permissions, which usually owner being root, with permissions 755. There is a way to change this (I can't remember the details, since I only use ext2fs myself), but try reading the mount manpage or some Linux docs. Be very careful of giving your Win95 partitions 777 permissions! :-) ... maybe we're transmitting on Starfleet subspace relay? -- | Fidonet: Tony Langdon 3:632/367.2 | Internet: tlang@freeway.DIALix.oz.au | | Freeway Internet Gateway, Melbourne, Australia. For information about | our services and conditions of use, e-mail: | info@freeway.DIALix.oz.au, to receive a copy of the FAQ.
Re: mount problem with vfat [help]
Author: Manfred Bartz
Date: Wed, 21 May 1997 00:00
Date: Wed, 21 May 1997 00:00
50 lines
2695 bytes
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 ---
Re: mount problem with vfat [help]
Author: Manfred Bartz
Date: Wed, 21 May 1997 00:00
Date: Wed, 21 May 1997 00:00
53 lines
2713 bytes
2713 bytes
"Mr. TANG" <mktan4@cfs02.cc.monash.edu.au> writes:
> I try mount the Win95 partition for any user in linux, but when I setup
> the fstab, only the root user can write file to Win95 partition, why
> ???? I have try vfat and msdos type in mount command, it had same
> problem.
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.
Here is my fstab:
# device mount-dir fs-type options fs-freq fs-pass
# user,exec,dev,suid
#--------------+----------+--------+-----------------------+--------+-------
/dev/hdb1 / ext2 defaults 1 1
/dev/hdb4 /hdb4 ext2 user,noauto,ro 1 2
/dev/hda4 /hda4 ext2 defaults 1 3
/dev/hda1 /dosc vfat user,noauto,rw,suid
/dev/hda2 /dosd vfat user,noauto,rw,suid
none /proc proc defaults 0 0
/dev/hda3 none swap sw 0 0
/dev/fd0 /fd0 ext2 user,noauto 0 0
/dev/fd0 /dosa vfat user,noauto 0 0
/dev/hdc /cdrom auto user,noauto,ro,exec 0 0
#--------------+----------+--------+-----------------------+--------+-------
any user can simply mount by:
mount /dosc
Note that I can mount the floppy as a DOS floppy by:
mount /dosa
and as a ext2 (Linux) floppy by:
mount /fd0
All this is covered in the manpage for ``fstab''.
I use a test editor to change ``fstab''.
Challenge: Try doing this with the Redhat tools. Is that possible? Anyone?
--
Manfred Bartz <mbartz@werple.net.au>
--- LINUX, live free or die ---
Re: mount problem with vfat [help]
Author: Mark Heath
Date: Wed, 21 May 1997 00:00
Date: Wed, 21 May 1997 00:00
11 lines
1027 bytes
1027 bytes
Tony Langdon (tlang@freeway.DIALix.oz.au) wrote: : Be very careful of giving your Win95 partitions 777 permissions! :-) Why? Its only Windows 95, no real loss if that operating system is corrupted by a careless user :-) -- -- mark heath Netspace Online Systems. http://www.netspace.net.au/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads