[Prev][Next][Index]

Re: problem with utmp file (fwd)



edgardo@ccc.uba.ar (Edgardo Szulsztein) wrote:

>  I was told (in this list) to touch /var/adm/utmp. It worked, but I went
>  on with problems; when I log in the system, it appears the message:
>  
>  logname: no login name
>  
>  The logname command see the /etc/utmp file, that exists. So, why does
>  this command give this error?

cd /var
ln -s adm log
mkdir -p run
mv /etc/utmp run
ln -sf /var/run/utmp /etc/utmp
ln -sf /var/run/utmp /var/adm/utmp

Evgeny

--

   __________________________________________________________________
  / Evgeny Stambulchik <fnevgeny@plasma-gate.weizmann.ac.il>  ====== \
 /  Plasma Laboratory, Weizmann Institute of Science, Israel  ======  \
 |  Phone : (972)8-9343-610  =======================================  |
 |  FAX   : (972)8-9344-106  =======================================  |
 |  ================================================================  |
 |  Look at our home page - http://plasma-gate.weizmann.ac.il  =====  | 
 |____________________________________________________________________|