Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2106
  • Last Modified:

What does this mean wtmp No such file or directory

In /var/adm/messages i constantly see this error,, can anybody explain it and how do I stop it?

ftpd[743]: [ID 896167 daemon.error] wtmp /var/adm/w
tmp No such file or directory
0
nsuggs
Asked:
nsuggs
1 Solution
 
bummerlordCommented:
You ftp deamon tries to log information about the login.

Try:
unix# mkdir -f /var
unix# mkdir -f /var/adm
unix# touch /var/adm/wtmp
unix# touch /var/adm/utmp
unix# touch /var/adm/utmpx
unix# touch /var/adm/wtmpx

You probably have /var and /var/adm directories already, if so skip the mkdir's
Note that if any of the above files exist "touch" won't truncate them but only change timestamps, and if they don't exist they will be created. So you can't do any harm using the above exactly ;-) (you need to be root though!)

Look at "man wtmp" and also as wtmp/utmp is obsolete "man wtmpx" for more information.

Then login using FTP (again) and verify that no more messages regarding wtmp appear.

Also try this after successful login via ftp (or shell)
unix# last -10

You should see a list of the 10 last logins (or as many as have been registerd if less)
E.g

username  ftp     remotehost date and login time - logout time (hh:mm)
...
..


/b
0
 
OtetelisanuCommented:
in the directory /var/adm
the files wtmp and wtmpx is not created.

make

touch /var/adm/wtmp
touch /var/adm/wtmpx

chmod 664 /var/adm/wtmp
chmod 664 /var/adm/wtmpx

chown adm:adm  /var/adm/wtmp
chown adm:adm  /var/adm/wtmpx

and
ps -ef|grep inetroot  
2583     1  0   Feb 28 ?        0:01 /usr/sbin/inetd -s

kill -1 2583
 
look

man ftpd


0
 
liddlerCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by bummerlord

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now