All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Exporting UID to userspace?
@ 2004-06-09 18:10 Dimitry V. Ketov
  2004-06-09 18:44 ` Mike Waychison
  0 siblings, 1 reply; 23+ messages in thread
From: Dimitry V. Ketov @ 2004-06-09 18:10 UTC (permalink / raw)
  To: autofs

> -----Original Message-----
> From: autofs-bounces@linux.kernel.org 
> 
> If the idea is to have a 'Network Neighborhood' inside each 
> user's homedir, you could write an executable map for /home 

It will hide /home directory content.

> (not tested..):

> key = shift
Did you mean key=$1 ?

> entry = `ypcat $KEY -k`
What did you mean for $KEY? What is supposed to assign to the 'entry'
variable?

> if [ $? == 0 ] ; then
>    echo $entry " /NetworkNeighborhood -Duser=$key /etc/auto_nn"
>    exit 0
> fi;
> exit 1
> 
> And then use a auto_nn executable map for generating the 
> Neighborhood contents.

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: Exporting UID to userspace?
@ 2004-06-10 16:14 Dimitry V. Ketov
  2004-06-10 16:59 ` Mike Waychison
  0 siblings, 1 reply; 23+ messages in thread
From: Dimitry V. Ketov @ 2004-06-10 16:14 UTC (permalink / raw)
  To: autofs

> -----Original Message-----
> From: Mike Waychison [mailto:Michael.Waychison@Sun.COM] 

>>>>>If the idea is to have a 'Network Neighborhood' inside
> >>each user's
> >>>>>homedir, you could write an executable map for /home
> >>>>
> >>>>It will hide /home directory content.
> >>>
> >>>No. It wouldn't presuming that your /home subdirs are automounted.
> >
> >
> > What if my home dirs is not automounted from network server? I just 
> > simply want it for local users.
> >
> 
> Well, in that case you'd have to use direct mounts (which 
> don't work as expected in automount4).  Alternatively, you can always
> 
> mkdir /export
> mv /home /export
> 
> And start automounting your home directories from localhost.   Don't
> worry, automount will detect it being local and will not use 
> NFS, rather it will --bind mount the filesystems, so there is 
> no performance hit.
;) Yes, I thought about it, but it's rather ugly solution (as for me),
then it's seems better to spawn new automount process for
~user/NetworkNeigboorhood at logon time and terminate it at logoff.
This allows us to avoid UID/GID exporting problem at all, since it will
be obvious which user's credetials to use for mount.

Any objections?

Dimitry.

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: Exporting UID to userspace?
@ 2004-06-10 14:55 Dimitry V. Ketov
  2004-06-10 15:54 ` Mike Waychison
  0 siblings, 1 reply; 23+ messages in thread
From: Dimitry V. Ketov @ 2004-06-10 14:55 UTC (permalink / raw)
  To: autofs

> -----Original Message-----
> From: Ian Kent [mailto:raven@themaw.net] 

> > >>If the idea is to have a 'Network Neighborhood' inside 
> each user's 
> > >>homedir, you could write an executable map for /home
> > >
> > > It will hide /home directory content.
> > 
> > No. It wouldn't presuming that your /home subdirs are automounted.  

What if my home dirs is not automounted from network server?
I just simply want it for local users.

Dimitry.

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: Exporting UID to userspace?
@ 2004-06-08 17:47 Dimitry V. Ketov
  2004-06-08 18:20 ` Robin Rosenberg
  0 siblings, 1 reply; 23+ messages in thread
From: Dimitry V. Ketov @ 2004-06-08 17:47 UTC (permalink / raw)
  To: autofs

> -----Original Message-----
> From: Robin Rosenberg [mailto:robin.rosenberg.lists@dewire.com]
> 
> On Monday 07 June 2004 18.06, Mike Waychison wrote:
> > - how are you going to acquire terminal information with just a
> > uid/gid pair?
> Simple case: don't need it. Assume the user has entered all
> info in a file named ~uid/.autofs/credentials
> host, share, remoteuid,remotepass
Yes, I supposed the same trivial way to deal with that.

> > Shouldn't this RFE also include some proposal for how you 
> are going to 
> > ensure that only a single uid ever attempts access to the 
> automounted 
> > directory as well? (if needed?)
> Well, uh.. 
> ..good point. 
> I was thinking of ~uid/Network\ Neighborhood, but then autofs 
> cannot do /home/*/Network\ Neighborhood, I think.
I think it is possible to spawn a new automount process (with the
~uid/Network\ Neighborhood automount-point and the special executable
map) for every logged user, with the help of the special pam module.

Dimitry.

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: Exporting UID to userspace?
@ 2004-06-07 12:45 Dimitry V. Ketov
  2004-06-07 16:06 ` Mike Waychison
  0 siblings, 1 reply; 23+ messages in thread
From: Dimitry V. Ketov @ 2004-06-07 12:45 UTC (permalink / raw)
  To: autofs



> -----Original Message-----
> From: Robin Rosenberg [mailto:robin.rosenberg.lists@dewire.com] 
> 
> On Saturday 05 June 2004 17.52, raven@themaw.net wrote:
> ..
> > How will you provide a consistent Unix UID <-> Windows UID mapping? 
> > And on multiple machines for the same user, over OS re-install? Ian
> 
> cases you can use a mapping table in the script that 
> automount calls. Autofs should just provide the local uid,gid 
> from the calling process.

Yes, you're definitely right. In fact I want this finctionality just for
'program' maps, lets say UID, GID and supplementary GIDs like a second,
third, so on ... parameters to the map script.

Dimitry.

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: Exporting UID to userspace?
@ 2004-06-07 12:38 Dimitry V. Ketov
  2004-06-08  1:15 ` Ian Kent
  0 siblings, 1 reply; 23+ messages in thread
From: Dimitry V. Ketov @ 2004-06-07 12:38 UTC (permalink / raw)
  Cc: autofs

> -----Original Message-----
> From: raven@themaw.net [mailto:raven@themaw.net] 
> Sent: Saturday, June 05, 2004 7:47 PM

> I'd like to do it but it isn't trivial so it's in the wait queue.
> 
> It's dificult because it requires that the packet which is used to 
> communicate with the daemon will need to be changed. This will break 
> backward compatibility with other versions.

Ok. Is it mean that it will be included only in the next version of
autofs protocol?

Dimitry.

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Exporting UID to userspace?
@ 2004-06-05 14:00 Dimitry V. Ketov
  2004-06-05 15:47 ` raven
  0 siblings, 1 reply; 23+ messages in thread
From: Dimitry V. Ketov @ 2004-06-05 14:00 UTC (permalink / raw)
  To: autofs

Hi, autofs hackers!

Is it possible with the current autofs protocol to export UID of (mount)
requesting process to the userspace automount daemon? If not, I guess
that it is rather trivial feature enhancement request ;)
The matter of this RFE is need to mount smbfs shares on behalf of
requestng users, with their own passwords...

Thanks in advance,
Dimitry.

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2004-06-10 16:59 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-09 18:10 Exporting UID to userspace? Dimitry V. Ketov
2004-06-09 18:44 ` Mike Waychison
2004-06-10  1:13   ` Ian Kent
  -- strict thread matches above, loose matches on Subject: below --
2004-06-10 16:14 Dimitry V. Ketov
2004-06-10 16:59 ` Mike Waychison
2004-06-10 14:55 Dimitry V. Ketov
2004-06-10 15:54 ` Mike Waychison
2004-06-08 17:47 Dimitry V. Ketov
2004-06-08 18:20 ` Robin Rosenberg
2004-06-07 12:45 Dimitry V. Ketov
2004-06-07 16:06 ` Mike Waychison
2004-06-07 22:53   ` Robin Rosenberg
2004-06-07 12:38 Dimitry V. Ketov
2004-06-08  1:15 ` Ian Kent
2004-06-08 13:12   ` Brian Long
2004-06-08 16:28     ` raven
2004-06-08 18:45       ` Mike Waychison
2004-06-05 14:00 Dimitry V. Ketov
2004-06-05 15:47 ` raven
2004-06-05 15:52   ` raven
2004-06-05 17:11     ` Robin Rosenberg
2004-06-05 17:49       ` Ian Kent
2004-06-05 20:13         ` Robin Rosenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.