Re: FreeBSD 4.9 - NIS Authentication Problem (SSHD Illegal User ERROR)

2008-05-12 Thread Volker Jahns

David Kramer schrieb:
I am currently working on connecting a FreeBSD 4.9 client connection 
to NIS server running on OpenBSD 3.9.  The ypcat commands are working 
and I can see the passwd and group files, however when I attempt to 
login to the machine I keep getting SSHD Illegal User Errors. 

As a first guess I would recommend:
- check /etc/hosts.allow (ssh access control used by FreeBSD)
- shadow support
- rpcinfo -p  works OK?
- run ypserv daemon in foregound, check its output

--
Volker Jahns, [EMAIL PROTECTED]

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


rpcinfo Problem

2007-03-22 Thread Volker Jahns
Running rpcbind on a FreeBSD 6.1 testsystem has horrible effects, when

- rpcbind is started at system boottime by the rc.conf directive 
rpcbind_enable="YES"
- rpcinfo -p localhost is run ( this command then hangs until the system has 
died)


The top output shows high load and 'many' rpcbind processes which have been 
started.
--
last pid: 48637;  load averages:  3.99,  3.24,  3.23   up 0+07:47:18  
16:02:42
1832 processes:3 running, 195 sleeping, 1633 waiting, 1 lock
CPU states:  5.2% user,  0.0% nice, 26.8% system,  4.3% interrupt, 63.7% idle
Mem: 121M Active, 20M Inact, 88M Wired, 4688K Cache, 34M Buf, 1004K Free
Swap: 470M Total, 244M Used, 226M Free, 51% Inuse, 22M In, 26M Out

  PID USERNAME  THR PRI NICE   SIZERES STATETIME   WCPU COMMAND
  317 root1 1280  1440K   424K RUN 44:17  7.37% rpcbind
37057 root1  960  6524K  3468K RUN  0:20  0.06% top
  296 root1  960  1300K 0K WAIT 1:06  0.00% 
  437 root1  960  3408K 0K WAIT 0:00  0.00% 
  538 root1  960  6092K 0K WAIT 0:00  0.00% 
  447 root1   80  1312K 0K WAIT 0:00  0.00% 
  441 smmsp   1  200  3300K 0K pause0:00  0.00% 
  383 root1  960  1212K 0K WAIT 0:00  0.00% 
  541 root1  200  3996K 0K pause0:00  0.00% 
99806 root1   40  1468K 0K WAIT 0:00  0.00% 
38770 root1   40  1464K 0K WAIT 0:00  0.00% 
20459 root1   40  1468K 0K WAIT 0:00  0.00% 
21924 root1   40  1440K 0K WAIT 0:00  0.00% 
  426 root1  960  3356K 0K select   0:00  0.00% 
49102 root1   40  1468K 0K WAIT 0:00  0.00% 
10715 root1   40  1468K   648K kqread   0:00  0.00% rpcbind
49102 root1   40  1468K 0K WAIT 0:00  0.00% 
45921 root1   40  1464K 0K WAIT 0:00  0.00% 
45947 root1   40  1464K 0K WAIT 0:00  0.00% 
--

The output of some well-known commands w/ the system in this state is puzzling 
me:
--
orion# dmesg
No more processes.
--
--
ssh orion -l root
ssh_exchange_identification: Connection closed by remote host
--

Moreover, system log worries me:
--
Mar  8 08:20:26 orion kernel: kern.maxfiles limit exceeded by uid 0, please see
tuning(7).
Mar  8 08:20:26 orion kernel: kern.maxfiles limit exceeded by uid 0, please see
tuning(7).
Mar  8 08:20:26 orion syslogd: /dev/console: Too many open files in system: Too
many open files in system
Mar  8 07:20:25 orion rpcbind: warning: /etc/hosts.allow, line 23: cannot open /
etc/hosts.allow: Too many open files in system
--

Running rpcinfo -p  from a remote system can be used to benchmark 
this FreeBSD system. sockstat shows the TCP connects to rpcbind from the remote 
system and everything is fine.


If rpcbind is _not_ started at boottime, but from the commandline once the 
system is up, rpcinfo -p localhost works as expected.

I want to run NIS on the system, so rpcbind must run in reliable manner.

Any help is much appreciated.
-- 
Volker Jahns, [EMAIL PROTECTED]
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rpcinfo Problem

2007-04-10 Thread Volker Jahns
The following configuration statements reproducibly crash FreeBSD 6.1 and
6.2 when calling "rpcinfo -p" or "rpcinfo -p localhost" ( see more details
in the first posting)
--
rpcbind_enable="YES"
rpcbind_flags="-i -l"
nisdomainname="tdom"
nis_client_enable="YES"
--

I would be tempted to identify this behaviour as a (serious) bug.

Workaround
If the nis_client_flags option is uncommented like
#nis_client_flags="-S tdom,tdomserv.tdom.de,tdomserv -m"

-- 
Volker Jahns, [EMAIL PROTECTED]

> Running rpcbind on a FreeBSD 6.1 testsystem has horrible effects, when
>
> - rpcbind is started at system boottime by the rc.conf directive
> rpcbind_enable="YES"
> - rpcinfo -p localhost is run ( this command then hangs until the system
> has died)
>
>
> The top output shows high load and 'many' rpcbind processes which have
> been started.
> --
> last pid: 48637;  load averages:  3.99,  3.24,  3.23   up 0+07:47:18
> 16:02:42
> 1832 processes:3 running, 195 sleeping, 1633 waiting, 1 lock
> CPU states:  5.2% user,  0.0% nice, 26.8% system,  4.3% interrupt, 63.7%
> idle
> Mem: 121M Active, 20M Inact, 88M Wired, 4688K Cache, 34M Buf, 1004K Free
> Swap: 470M Total, 244M Used, 226M Free, 51% Inuse, 22M In, 26M Out
>
>   PID USERNAME  THR PRI NICE   SIZERES STATETIME   WCPU COMMAND
>   317 root1 1280  1440K   424K RUN 44:17  7.37% rpcbind
> 37057 root1  960  6524K  3468K RUN  0:20  0.06% top
>   296 root1  960  1300K 0K WAIT 1:06  0.00% 
>   437 root1  960  3408K 0K WAIT 0:00  0.00% 
>   538 root1  960  6092K 0K WAIT 0:00  0.00% 
>   447 root1   80  1312K 0K WAIT 0:00  0.00% 
>   441 smmsp   1  200  3300K 0K pause0:00  0.00% 
>   383 root1  960  1212K 0K WAIT 0:00  0.00% 
>   541 root1  200  3996K 0K pause0:00  0.00% 
> 99806 root1   40  1468K 0K WAIT 0:00  0.00% 
> 38770 root1   40  1464K 0K WAIT 0:00  0.00% 
> 20459 root1   40  1468K 0K WAIT 0:00  0.00% 
> 21924 root1   40  1440K 0K WAIT 0:00  0.00% 
>   426 root1  960  3356K 0K select   0:00  0.00% 
> 49102 root1   40  1468K 0K WAIT 0:00  0.00% 
> 10715 root1   40  1468K   648K kqread   0:00  0.00% rpcbind
> 49102 root1   40  1468K 0K WAIT 0:00  0.00% 
> 45921 root1   40  1464K 0K WAIT 0:00  0.00% 
> 45947 root1   40  1464K 0K WAIT 0:00  0.00% 
> --
>
> The output of some well-known commands w/ the system in this state is
> puzzling me:
> --
> orion# dmesg
> No more processes.
> --
> --
> ssh orion -l root
> ssh_exchange_identification: Connection closed by remote host
> --
>
> Moreover, system log worries me:
> --
> Mar  8 08:20:26 orion kernel: kern.maxfiles limit exceeded by uid 0,
> please see
> tuning(7).
> Mar  8 08:20:26 orion kernel: kern.maxfiles limit exceeded by uid 0,
> please see
> tuning(7).
> Mar  8 08:20:26 orion syslogd: /dev/console: Too many open files in
> system: Too
> many open files in system
> Mar  8 07:20:25 orion rpcbind: warning: /etc/hosts.allow, line 23: cannot
> open /
> etc/hosts.allow: Too many open files in system
> --
>
> Running rpcinfo -p  from a remote system can be used to
> benchmark this FreeBSD system. sockstat shows the TCP connects to rpcbind
> from the remote system and everything is fine.
>
>
> If rpcbind is _not_ started at boottime, but from the commandline once the
> system is up, rpcinfo -p localhost works as expected.
>
> I want to run NIS on the system, so rpcbind must run in reliable manner.
>
> Any help is much appreciated.
> --
> Volker Jahns, [EMAIL PROTECTED]
>


___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"