06-16-2005
utmp ACCOUNTING
the utmp.h ACCOUNTING macro is set to 9 on my system.
my question is: what "accounting" is it referring to?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
could probably help me with a unix problem.
Basicallyu, when the users try to connect to the server they get this messge:
No UTMP entry. you must exec "LOGIN" from the lowest level "sh"
They are connecting using a windows emulator called TINYTERM.
We cannot connect from the console either... (3 Replies)
Discussion started by: jernesto_diaz
3 Replies
2. SCO
I am tring to recover a SCO system remotely, when I try to login with multiple user support, i get the following message
No UTPM entry, you must execute from the lowest level (sh)
Can anyone shed some light on this issue. I have never came seen this error before.
Also it will allow me to... (1 Reply)
Discussion started by: scott_williams1
1 Replies
3. Solaris
Solaris 8 E420R, 4CPU, 4GB.
We get the following message in /var/adm/messages:
Feb 22 04:39:43 hostname See utmp(4) for more information
Feb 22 05:39:43 hostname /usr/lib/utmpd: WARNING
: /var/adm/utmp exists!
So I followed the instructions and saw that
DESCRIPTION
The utmp and... (2 Replies)
Discussion started by: dangral
2 Replies
4. AIX
Hi All,
if someone know where I can set dimension of utmp log files like
wtmp
failedlogin
sulog in an AIX system.
These are called security logs and they can reach a max amount in day or MB, where can I steady their size ?
thanks in advance. (2 Replies)
Discussion started by: Carmen123
2 Replies
5. UNIX for Advanced & Expert Users
In a frequent interval the system bootup is not updating the /etc/utmp file with the system boot details.
This leads to blank output of who - b command.
What can be the reason for the same? (1 Reply)
Discussion started by: jyoti_mil
1 Replies
6. Programming
Given the following:
#include <string.h>
#include <stdlib.h>
#include <pwd.h>
#include <unistd.h>
#include <utmp.h>
#include <stdio.h>
#include <time.h>
int main(int argc, char *argv)
{
struct utmp entry;
char *fd;
system("echo before adding entry:;who");
... (1 Reply)
Discussion started by: frequency8
1 Replies
7. Cybersecurity
How do I enable System Accounting on Solaris 8? In Solaris 7 I would copy the /usr/lib/acct file to S22acct and start it like that. That doesn't seem to be an option in Solaris 8.
Thanks for your help! (2 Replies)
Discussion started by: pc9456
2 Replies
8. UNIX for Dummies Questions & Answers
Hi.
I am working on a small assignment where i need to extract the login information of currently logged in users in a Linux client-server environment.I am able to extract only the userID,IP/HOST name,TTY,device name,GID,PID and login time using the structure 'utmp'.Also when i am saving the... (2 Replies)
Discussion started by: maverixxx
2 Replies
9. UNIX for Dummies Questions & Answers
When i run #acctadm command it shows it as inactive but /var/adm/pacct file has todays date such as
-rw-r--r-- 1 adm adm 182397160 Mar 25 15:48 pacct
# acctadm
Task accounting: inactive
Task accounting file: none
Tracked task resources: none
Untracked... (5 Replies)
Discussion started by: Tirmazi
5 Replies
10. Solaris
:(Dear Solaris Experts,
The file /var/adm/utmpx is steadily growing on our standbye Sun Sparc T5220 Solaris 10 server. I have tried everything such as the following steps without success:
root@rainbow # uname -a
SunOS rainbow 5.10 Generic_141444-09 sun4v sparc... (2 Replies)
Discussion started by: gjackson123
2 Replies
LOGIN(3) Linux Programmer's Manual LOGIN(3)
NAME
login, logout - write utmp and wtmp entries
SYNOPSIS
#include <utmp.h>
void login(const struct utmp *ut);
int logout(const char *ut_line);
Link with -lutil.
DESCRIPTION
The utmp file records who is currently using the system. The wtmp file records all logins and logouts. See utmp(5).
The function login() takes the supplied struct utmp, ut, and writes it to both the utmp and the wtmp file.
The function logout() clears the entry in the utmp file again.
GNU Details
More precisely, login() takes the argument ut struct, fills the field ut->ut_type (if there is such a field) with the value USER_PROCESS,
and fills the field ut->ut_pid (if there is such a field) with the process ID of the calling process. Then it tries to fill the field
ut->ut_line. It takes the first of stdin, stdout, stderr that is a tty, and stores the corresponding pathname minus a possible leading
/dev/ into this field, and then writes the struct to the utmp file. On the other hand, if no tty name was found, this field is filled with
"???" and the struct is not written to the utmp file. After this, the struct is written to the wtmp file.
The logout() function searches the utmp file for an entry matching the ut_line argument. If a record is found, it is updated by zeroing
out the ut_name and ut_host fields, updating the ut_tv timestamp field and setting ut_type (if there is such a field) to DEAD_PROCESS.
RETURN VALUE
The logout() function returns 1 if the entry was successfully written to the database, or 0 if an error occurred.
FILES
/var/run/utmp
user accounting database, configured through _PATH_UTMP in <paths.h>
/var/log/wtmp
user accounting log file, configured through _PATH_WTMP in <paths.h>
CONFORMING TO
Not in POSIX.1-2001. Present on the BSDs.
NOTES
Note that the member ut_user of struct utmp is called ut_name in BSD. Therefore, ut_name is defined as an alias for ut_user in <utmp.h>.
SEE ALSO
getutent(3), utmp(5)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU
2004-05-06 LOGIN(3)