On Fri, 12 Sep 2008, Richard Ray wrote:

> I feel this must be a simple thing but it is not working for me.
> In auto.misc I have
> 
> flash -fstype=auto,rw,sync,flush,user    :/dev/sdb1
> 
> In auto.master I have
> 
> /misc file:/etc/auto.misc
> 
> If I cd /misc/flash the device will mount but all files belong to root
> If I add uid= to auto.misc the files belong to me
> Should not the user option do that without specifying a uid

As I read the man page for mount, "user" or "users" or "owner" governs 
who can mount, but only "uid=" affects ownership.  As I remember, there is 
no substitution for the UID of the requesting user -- but if there were, it 
would be really helpful in your case, and I think that information is 
available to the daemon.  

If your hotplug subsystem were doing its job it would mount the device 
automatically, and would get the ownership right.  I have a "howto" about 
this (not totally complete).  See the last four items, dated 2007-01-22, in 
this URL: http://www.math.ucla.edu/~jimc/documents/bugfix.html

James F. Carter          Voice 310 825 2897    FAX 310 206 6673
UCLA-Mathnet;  6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555
Email: [EMAIL PROTECTED]  http://www.math.ucla.edu/~jimc (q.v. for PGP key)

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to