Hi there 

I can see from 
http://www.linux.org/apps/AppId_2476.html that you are 
the maintainers of the fine autofs package for Linux. I 
really like it and I have one question regarding 
mounting devices as an ordinary user. I would like to 
mount a device as the user foo so that foo owns the 
device (it is for a USB memory-stick device)

If I add this line to my /etc/fstab
  /dev/sda1 /mnt/usb auto noauto,owner,user,rw 0 0

then user foo can run "mount /mnt/usb" and likewise
"umount /mnt/usb" and here foo has full ownership 
and read+write access over "/mnt/usb".

Then I turn to autofs and like to have the same 
permissions for the user foo

I start adding this to my "/etc/auto.misc" (Red Hat 7.2), 
   usb -fstype=auto  :/dev/sda1

I have an /etc/auto.master which sets up the 
auto-mount directory "/misc/"
   /misc   /etc/auto.misc  --timeout=5

Now I run into problems, since foo cannot write to 
"/misc/usb"
   $ ls -al /misc/usb
   drwxr-xr-w  2 root root CURRENT-DATE .

I would really like to see the user could write
   $ ls -al /misc/usb
   drwxrwxrwx  2 root root CURRENT-DATE .
or
   $ ls -al /misc/usb
   drwxr-xr-x  2 foo  foo  CURRENT-DATE .
 
Any clues how to add this user-write access?
If you solve it for me I will write an update note to 
the relevant HOWTO-documents.

Best


-- 
Peter Toft, Ph.D. [[EMAIL PROTECTED]] http://www.sslug.dk/~pto

******** W A R N I N G ! **************************************
Linux should not be used by those under the influence of MicroSoft.
May cause dizziness or vertigo. Consult your tech support before
using Linux. (note--after using Linux, you may notice extreme
discomfort when using MicroSoft. Discontinue use of MicroSoft.)
************************************** W A R N I N G ! ********




Reply via email to