passwd, chsh, chpass, chfn, chsh problem

passwd, chsh, chpass, chfn, chsh problem

Post by jenic » Tue, 22 Oct 2002 23:12:34



hi,

i'm using freebsd 4.6.2 with own recompiled kernel, my problem is that
when i try to use some of $subject utilities it takes a long time
(about one minute) to execute them, i tried to strace chsh and here is
a result:

...

socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 4
getsockname(4, {sin_family=AF_INET, sin_port=htons(0),
sin_addr=inet_addr("0.0.0.0")}}, [16]) = 0
getsockopt(4, IPPROTO_IP, 19, [0], [4]) = 0
setsockopt(4, IPPROTO_IP, 19, [2], 4)   = 0
bind(4, {sin_family=AF_INET, sin_port=htons(0),
sin_addr=inet_addr("0.0.0.0")}}, 16) = 0
ioctl(4, FIONBIO, [1])                  = 0
sendto(4, "\203\7\312
\0\0\0\0\0\0\0\2\0\1\206\240\0\0\0\2\0\0\0\3"..., 56, 0,
{sin_family=AF_INET, sin_port=htons(111),
sin_addr=inet_addr("127.0.0.1")}}, 16) = 56

this message is repeated so many times:

gettimeofday({1035209143, 831286}, NULL) = 0
select(5, [4], NULL, NULL, {5, 0})      = 0 (Timeout)
sendto(4, "\203\7\312
\0\0\0\0\0\0\0\2\0\1\206\240\0\0\0\2\0\0\0\3"..., 56, 0,
{sin_family=AF_INET, sin_port=htons(111),
sin_addr=inet_addr("127.0.0.1")}}, 16) = 56

gettimeofday({1035209148, 839516}, NULL) = 0
select(5, [4], NULL, NULL, {5, 0})      = 0 (Timeout)
sendto(4, "\203\7\312
\0\0\0\0\0\0\0\2\0\1\206\240\0\0\0\2\0\0\0\3"..., 56, 0,
{sin_family=AF_INET, sin_port=htons(111),
sin_addr=inet_addr("127.0.0.1")}}, 16) = 56
gettimeofday({1035209153, 849542}, NULL) = 0
select(5, [4], NULL, NULL, {5, 0})      = 0 (Timeout)
sendto(4, "\203\7\312
\0\0\0\0\0\0\0\2\0\1\206\240\0\0\0\2\0\0\0\3"..., 56, 0,
{sin_family=AF_INET, sin_port=htons(111),
sin_addr=inet_addr("127.0.0.1")}}, 16) = 56
gettimeofday({1035209158, 859605}, NULL) = 0

...

should be a problem with my firewall setup or i'm just stupid and miss
something ?

any suggestions ?

thank you very much

p.s. please excuse my english

 
 
 

1. chfn, chsh put changed copy only in /tmp/passwd

Hi.  I don't really know what could have changed, but for some
reason chsh and chfn now put the copy in /tmp, and don't update the
one in /etc.  I havn't really used them in a while, so I can't tell
what i have changed.  /var/adm/[uw]tmp get erased, and 'cat
/dev/null > /var/adm/utmp; cat /dev/null > /var/adm/wtmp' get
written on every boot, and there are links in /etc to those files.
I am using util-linux-2.2, and neither those files, the binary
version, the new slackware version work, so its not the files
themselves.  The permissions are:

-rwsr-xr-x   1 root         4820 Mar 29 01:17 /usr/bin/chfn*
-rwsr-xr-x   1 root         4364 Mar 29 01:17 /usr/bin/chsh*

Please mail me direct with any ideas, as my news connection is very
slow.

Thanks much,
Dave Wreski

2. problems using rtime()

3. chfn & chsh doubles /etc/passwd

4. unsafe scsi reset in 0.99pl9 (0.99pl6 worked fine)

5. Note: Util-Linux-2.2 has chfn & chsh problem

6. Q: Qt QString class vs. std C++ string library

7. chsh, chfn problems

8. Vacation utility for linux

9. CHFN && CHSH? WHERE?

10. Where can I get a chsh (change shell) or chfn (change finger)

11. chsh and chfn?

12. chsh, chfn for Solaris 2.5.1?

13. broken chfn & chsh in Slack 2.2