you should put actual numbers instead of $GID and $UID.

2008/9/14  <[EMAIL PROTECTED]>:
> Send autofs mailing list submissions to
>        autofs@linux.kernel.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://linux.kernel.org/mailman/listinfo/autofs
> or, via email, send a message with subject or body 'help' to
>        [EMAIL PROTECTED]
>
> You can reach the person managing the list at
>        [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of autofs digest..."
>
>
> Today's Topics:
>
>   1. Re: How to use the user mount option (Richard Ray)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 13 Sep 2008 14:00:03 -0500 (CDT)
> From: Richard Ray <[EMAIL PROTECTED]>
> Subject: Re: [autofs] How to use the user mount option
> To: autofs@linux.kernel.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Sat, 13 Sep 2008, Ian Kent wrote:
>
>> On Fri, 2008-09-12 at 13:08 -0500, 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
>>
>> The "user" option is an fstab only option.
>>
>> So, since autofs specifies the device and the mount point mount(8)
>> doesn't consult the fstab.
>>
>> The only option you have is something like:
>> flash -fstype=auto,rw,sync,flush,uid=$UID,gid=$GID    :/dev/sdb1
>>
>> As long as the requester is a valid user on the system it should mount
>> as that user.
>
> I am a bit less ignorant now but this opens a new can of worms.
> Is there documentation for mount options that are not valid in map files?
> $GID and $UID are not variables I see when I run env so where do they come
> from?
> Are there othere variables that can be used in map files?
> Can I use something like $(id -u) in a map file?
>
> Thanks
> Richard Ray
>
>
>
>>
>>>
>>> Name        : autofs
>>> Version     : 5.0.2
>>> Release     : 27
>>>
>>> Fedora 8
>>> kernel: 2.6.24.4-64.fc8
>>>
>>> Thanks
>>> Richard Ray
>>>
>>> _______________________________________________
>>> autofs mailing list
>>> autofs@linux.kernel.org
>>> http://linux.kernel.org/mailman/listinfo/autofs
>>
>
>
>
> ------------------------------
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
>
>
> End of autofs Digest, Vol 66, Issue 9
> *************************************
>



-- 
Sincerely,
Alexandr N.

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

Reply via email to