mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robin Rosenberg <robin.rosenberg.lists@dewire.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Autofs question (try 2)
Date: Tue, 13 Jan 2004 21:41:45 +0100	[thread overview]
Message-ID: <200401132141.45772.robin.rosenberg.lists@dewire.com> (raw)

Hi,

The first message was cut short, sorry

I grabbed the auto.smb script for mounting samba/windows shares. One of the flaws is that I'd
like to get around is that it must be configured as root and most importantly that I don't see who 
is requesting the mount. I was thinking along the line of mounting shares in /cifs/$USER/servers/share
or simply mounting the share for the first user using the mount point (essentially single user machines
anyway).

the auto.smb script is running as root and I printed some info in root.c at the revalidate

Jan 12 18:49:06 h6n2fls33o811 kernel: autofs4_root_revalidate, uid=505 name=10.1.1.4
Jan 12 18:49:06 h6n2fls33o811 automount[22233]: attempting to mount entry /cifs/10.1.1.4
Jan 12 18:49:06 h6n2fls33o811 kernel: autofs4_root_revalidate, uid=0 name=10.1.1.4
Jan 12 18:49:06 h6n2fls33o811 logger: uid=0(root) gid=0(root) grupper=0(root)
Jan 12 18:49:07 h6n2fls33o811 kernel: autofs4_root_revalidate, uid=0 name=10.1.1.4
Jan 12 18:49:08 h6n2fls33o811 last message repeated 10 times
and lots more from mounting with uid=0

Is there any simple way of passing the first uid to the automounter?

-- robin


             reply	other threads:[~2004-01-13 20:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-13 20:41 Robin Rosenberg [this message]
2004-01-14 15:47 ` raven
2004-01-14 16:03   ` Robin Rosenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200401132141.45772.robin.rosenberg.lists@dewire.com \
    --to=robin.rosenberg.lists@dewire.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome