Skip to contentSkip to conversation

autofs Digest, Vol 66, Issue 9

DISCUSSION Alexander 1 participant 1 message Sep 15, 2008 1 message not in the archive Kernel automounter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Alexander

author
#1 lore raw

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

2008/9/14 <[email protected]>:

Quoted 100 lines

Send autofs mailing list submissions to
[email protected]

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: [email protected]
Message-ID: <[email protected]>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

Quoted 16 lines · Ian Kent
Quoted 5 lines · Richard Ray

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

Quoted 7 lines

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.

Quoted 8 lines

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

Quoted 9 lines
Quoted 9 lines

Name : autofs
Version : 5.0.2
Release : 27

Fedora 8
kernel: 2.6.24.4-64.fc8

Quoted 8 lines
Quoted 7 lines

Thanks
Richard Ray

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

------------------------------

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

End of autofs Digest, Vol 66, Issue 9
*************************************

Signature · 2 lines
Sincerely,
Alexandr N.