All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: automount ignores remote logins
@ 2008-06-11 15:55 Max Harvest
  2008-06-12  6:00 ` Ian Kent
  0 siblings, 1 reply; 9+ messages in thread
From: Max Harvest @ 2008-06-11 15:55 UTC (permalink / raw)
  To: autofs

On Wed, Jun 11, 2008 at 4:09 PM, Jeff Moyer <jmoyer@redhat.com> wrote:
> "Max Harvest" <rootserver94@googlemail.com> writes:
>
>> Hello everybody,
>>
>> since i'm using the automount 5, i'm confronted with a very strange
>> behaviour. I use it to mount user directories over nfs. The automounter
>
> Are you saying that you did not experience this problem with autofs v4?
>

yes. I have downgraded to version 4 and everything works fine, but  
this is not very satisfactory.

>> maps are provided by NIS und users ususally have to login only into
>> client computers remotely using rsh or ssh. Now i encounter the following
>> missbehaviour:
>>
>> At the init, automounter seems to start propperly, but if someone logins
>> over the network into the client machine, the automounter ignores all
>> mount requests (i.e. there is no automounter activity at all). Even a
>
> This is probably because there is no lookup performed (meaning it never
> gets to autofs).  What errors are displayed in the ssh session when a
> user logs in?  Is there anything in /var/log/secure or /var/log/messages
> that may indicate a problem elsewhere?

of course there are lookups. But if an ssh or rsh login occurs, the message
is 'no such file or directory'. There is no message from automount in syslog
(only from ssh, that confirms a login). It happens exactly as i wrote, a
login through tty lets automount read the indirect maps and from this point
automunt also reacts to lookups on remote logins. The strange thing is, that
reading the indirect map happens without any lookup, just a login on tty
(e.g. root login). I'm just curious which event cause the secoud part of the
output i posted earlier.

Max

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <20080612111400.pq5zr4r14cwgk44s@webmail.df.eu>]
* automount ignores remote logins
@ 2008-06-10  8:43 Max Harvest
  0 siblings, 0 replies; 9+ messages in thread
From: Max Harvest @ 2008-06-10  8:43 UTC (permalink / raw)
  To: autofs

Hello everybody,

since I'm using the automount 5, I'm confronted with a very strange
behaviour. I use it to mount user directories over nfs. The automounter
maps are provided by NIS und users usually have to login only into
client computers remotely using rsh or ssh. Now i encounter the following
misbehaviour:

At the init, automounter seems to start properly, but if someone logins
over the network into the client machine, the automounter ignores all
mount requests (i.e. there is no automounter activity at all). Even a
restart changes nothing. But if someone log ins on the client machine
over a tty, everything works fine. Therefor i enabled debug mode
verbosity and this is the output from syslog:

after the start up during boot or after a restart later:

automount[1910]: Starting automounter version 5.0.2, master map auto.master
automount[1910]: using kernel protocol version 5.00
automount[1910]: lookup_nss_read_master: reading master nis auto.master
automount[1910]: lookup_init: lookup(yp): ctxt->mapname=auto.master
automount[1910]: parse_init: parse(sun): init gathered global options: (null)
automount[1910]: mount_init: mount(bind): bind_works = 1

after login per tty:

automount[1910]: master_do_mount: mounting /users
automount[1910]: lookup_nss_read_map: reading map yp auto.users
automount[1910]: lookup_init: lookup(yp): ctxt->mapname=auto.users
automount[1910]: parse_init: parse(sun): init gathered global options: (null)
automount[1910]: mount_init: mount(bind): bind_works = 1
automount[1910]: mounted indirect mount on /users with timeout 600,
freq 150 seconds
automount[1910]: ghosting enabled

It seems, that a login through tty sends an wake up event to the
automount deamon, because all remote logins are ignored. This
behaviour seems also to be independent of all different automounter
and NIS configuration variants or options. I have tried a lot of different
(properly working over tty) configurations without any effect on this
strange behaviour.

Any idea?

^ permalink raw reply	[flat|nested] 9+ messages in thread
* automount ignores remote logins
@ 2008-06-05 23:11 Max Harvest
  0 siblings, 0 replies; 9+ messages in thread
From: Max Harvest @ 2008-06-05 23:11 UTC (permalink / raw)
  To: autofs

Hello everybody,

since I'm using the automount 5, I'm confronted with a very strange
behaviour. I use it to mount user directories over nfs. The automounter
maps are provided by NIS und users usually have to login only into
client computers remotely using rsh or ssh. Now i encounter the following
misbehaviour:

At the init, automounter seems to start properly, but if someone logins
over the network into the client machine, the automounter ignores all
mount requests (i.e. there is no automounter activity at all). Even a
restart changes nothing. But if someone log ins on the client machine
over a tty, everything works fine. Therefor i enabled debug mode
verbosity and this is the output from syslog:

after the start up during boot or after a restart later:

automount[1910]: Starting automounter version 5.0.2, master map auto.master
automount[1910]: using kernel protocol version 5.00
automount[1910]: lookup_nss_read_master: reading master nis auto.master
automount[1910]: lookup_init: lookup(yp): ctxt->mapname=auto.master
automount[1910]: parse_init: parse(sun): init gathered global options: (null)
automount[1910]: mount_init: mount(bind): bind_works = 1

after login per tty:

automount[1910]: master_do_mount: mounting /users
automount[1910]: lookup_nss_read_map: reading map yp auto.users
automount[1910]: lookup_init: lookup(yp): ctxt->mapname=auto.users
automount[1910]: parse_init: parse(sun): init gathered global options: (null)
automount[1910]: mount_init: mount(bind): bind_works = 1
automount[1910]: mounted indirect mount on /users with timeout 600,
freq 150 seconds
automount[1910]: ghosting enabled

It seems, that a login through tty sends an wake up event to the
automount deamon, because all remote logins are ignored. This
behaviour seems also to be independent of all different automounter
and NIS configuration variants or options. I have tried a lot of different
(properly working over tty) configurations without any effect on this
strange behaviour.

Any idea?

^ permalink raw reply	[flat|nested] 9+ messages in thread
* automount ignores remote logins
@ 2008-06-05 15:16 Max Harvest
  2008-06-11 14:09 ` Jeff Moyer
  0 siblings, 1 reply; 9+ messages in thread
From: Max Harvest @ 2008-06-05 15:16 UTC (permalink / raw)
  To: autofs


[-- Attachment #1.1: Type: text/plain, Size: 2000 bytes --]

Hello everybody,

since i'm using the automount 5, i'm confronted with a very strange
behaviour. I use it to mount user directories over nfs. The automounter
maps are provided by NIS und users ususally have to login only into
client computers remotely using rsh or ssh. Now i encounter the following
missbehaviour:

At the init, automounter seems to start propperly, but if someone logins
over the network into the client machine, the automounter ignores all
mount requests (i.e. there is no automounter activity at all). Even a
restart changes nothing. But if someone logins on the client machine
over a tty, everything works fine. Therefor i enabled debug mode
verbosity and this is the output from syslog:

after the startup during boot or after a restart later:

automount[1910]: Starting automounter version 5.0.2, master map auto.master
automount[1910]: using kernel protocol version 5.00
automount[1910]: lookup_nss_read_master: reading master nis auto.master
automount[1910]: lookup_init: lookup(yp): ctxt->mapname=auto.master
automount[1910]: parse_init: parse(sun): init gathered global
options: (null)
automount[1910]: mount_init: mount(bind): bind_works = 1

after login per tty:

automount[1910]: master_do_mount: mounting /users
automount[1910]: lookup_nss_read_map: reading map yp auto.users
automount[1910]: lookup_init: lookup(yp): ctxt->mapname=auto.users
automount[1910]: parse_init: parse(sun): init gathered global options:
(null)
automount[1910]: mount_init: mount(bind): bind_works = 1
automount[1910]: mounted indirect mount on /users with timeout 600, freq 150
seconds
automount[1910]: ghosting enabled

It seems, that a login through tty sends an wake up event to the
automount deamon, because all remote logins are ignored. This
behaviour seems also to be independent of all different automounter
and NIS configuration variants or options. I have tried a lot of different
(propperly working over tty) configurations without any effect on this
strange behaviour.

Any idea?

[-- Attachment #1.2: Type: text/html, Size: 2286 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

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

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

end of thread, other threads:[~2008-06-13 12:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11 15:55 automount ignores remote logins Max Harvest
2008-06-12  6:00 ` Ian Kent
     [not found] <20080612111400.pq5zr4r14cwgk44s@webmail.df.eu>
2008-06-12 12:24 ` Ian Kent
     [not found]   ` <20080612154548.6p0bxb31wkccssgc@webmail.df.eu>
2008-06-12 14:36     ` Ian Kent
     [not found]       ` <20080612165932.bpw9ha9wow4o0448@webmail.df.eu>
2008-06-13 12:34         ` Ian Kent
  -- strict thread matches above, loose matches on Subject: below --
2008-06-10  8:43 Max Harvest
2008-06-05 23:11 Max Harvest
2008-06-05 15:16 Max Harvest
2008-06-11 14:09 ` Jeff Moyer

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.