On Sun, 17 Jan 1999, Pierre Habraken wrote:
#Hello,
#
#I would like to use autofs for mounting local vfat file systems residing
#on removable media such as floppies or zip disks.
#
#Once mounted the file system should be seen as owned by the user who
#attempted to access this file system, not by the super user.
#
#Without autofs, the above result is obtained by putting the option
#'suid' in /etc/fstab, like in the following entry:
#
#/dev/fd0 /mnt/floppy vfat user,noauto,suid 0 0
#
#Expecting to obtain the same result with autofs, I put the following
#entry in /etc/auto.misc:
#
#floppy -fstype=vfat,suid :/dev/fd0
#
#However, when an ordinary user executes 'ls -l /misc/floppy' all files
#and directories on the floppy are listed as owned by root, not by this
#user.
Hi ,
I dont know why you want the files in a removable media
to be owned by a user.
If you concern is to write into removable media , set proper umask
value
your /etc/auto.misc should contain
floppy -fstype=vfat,umask=000 :/dev/fd0
note that this umask read.write,execute permission for user,group.and
others.
IF yours is a single user system you can set uid=<your uid> and have rw
permissions.
If yours is a multi user system it is better to play with umask settings .
you can also specify "sync" option to immediate write
All these options are documented in manual pages.
hope that helps
regards,
senthil
#
#Apparently autofs executes mount with the real id. of root, where I
#would expect that it executes mount with the real id. of the end user.
#
#Am I right ? Does anybody know how to obtain the right behavior (file
#system mounted as owned by the user not by root) ?
#
#Thanks in advance for any advice.
#
#Pierre
#--
#________________________________________________________________________
#Pierre HABRAKEN - mailto:[EMAIL PROTECTED]
#T�l: 04 76 82 72 48 - Fax: 04 76 82 72 87
#IMAG-LSR BP72 38402 SAINT MARTIN D'HERES Cedex
#________________________________________________________________________
#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Senthil Kumar Narayanasamy
http://www.eng.buffalo.edu/~senthil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Home: Office:
1525,Amherst Manor Drive, #804, 809, Furnas Hall
Williamsville, University at Buffalo
NY, 14221. Buffalo, NY 14260
Ph: (716)632-3135 Ph:(716)645 2593 x2260
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~