On Sun, 17 Jan 1999, Pierre Habraken wrote:
hi ,
This regards to my previous post dont use suid or exec option
to mount a removable media.probably you know why
regards,
senthil
#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.
#
#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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~