Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: password file locked



>>>>> "Scott" == Scott Stone <sstone@example.com> writes:


    Scott> This was a problem with Redhat 4.0 or 4.1, if I remember
    Scott> right.  It's a problem with either adduser or passwd
    Scott> (forget which) which doesn't clean up the lockfile when
    Scott> it's done.  To get around the problem, just remove
    Scott> /etc/.pwd.lock

Just to put my two yen in, one way to figure out whats going on in
cases like this is to use strace. strace traces all the system calls
that a command uses. The most useful part, is that it shows you all
the files an application is trying to open. I usually do something
like:

	strace -F -f -o out some-command

	grep open out

This will list all files, including libraries etc, that the app is
opening. 

For example:

	strace -F -f -o out ls

has the following "open" call in "out"

540  open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
6540  open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
6540  open("/etc/ld.so.cache", O_RDONLY) = 4
6540  open("/lib/libc.so.6", O_RDONLY)  = 4
6540  open(".", O_RDONLY)               = 4

Andy

---------------------------------------------------------------
Next TLUG Nomikai: 11 March Wed 1998 Tengu TokyoEkiMae 19:30
Chuo-ku, Kyobashi 1-1-6, EchiZenYa Bld. B1/B2 03-3275-3691
Next TLUG Meeting: 11 April 1998 Saturday, Tokyo Station
Featuring Tague Griffith of Netscape i18n talking on source code
---------------------------------------------------------------
a word from the sponsor:
TWICS - Japan's First Public-Access Internet System
www.twics.com  info@example.com  Tel:03-3351-5977  Fax:03-3353-6096



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links