Query: login
OS: netbsd
Section: 3
Links: netbsd man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LOGIN(3) BSD Library Functions Manual LOGIN(3)NAMElogin, logout, logwtmp -- login utility functionsLIBRARYSystem Utilities Library (libutil, -lutil)SYNOPSIS#include <util.h> void login(struct utmp *ut); int logout(const char *line); void logwtmp(const char *line, const char *name, const char *host);DESCRIPTIONThe login(), logout(), and logwtmp() functions operate on the database of current users in /var/run/utmp and on the logfile /var/log/wtmp of logins and logouts. The login() function updates the /var/run/utmp and /var/log/wtmp files with user information contained in ut. The logout() function removes the entry from /var/run/utmp corresponding to the device line. The logwtmp() function adds an entry to /var/log/wtmp. Since login() will add the appropriate entry for /var/log/wtmp during a login, logwtmp() is usually used for logouts.RETURN VALUESlogout() returns non-zero if it was able to find and delete an entry for line, and zero if there is no entry for line in /var/run/utmp.FILES/dev/* /etc/ttys /var/run/utmp /var/log/wtmpSEE ALSOutmp(5)BSDDecember 14, 1995 BSD
Related Man Pages |
---|
login(3) - mojave |
logout(3) - mojave |
logwtmp(3) - mojave |
logout(3) - centos |
logout(3) - osx |
Similar Topics in the Unix Linux Community |
---|
Solaris 8 login GUI doesn't come up. |
Solaris 9 login Screen not loading |
New Approach Hiding login password from ps -ef |
Last login details in banner |
login audit bash script |