Sponsored Content
Full Discussion: Help Needed using utmp file!
Top Forums UNIX for Dummies Questions & Answers Help Needed using utmp file! Post 302138369 by sysgate on Monday 1st of October 2007 09:16:42 AM
Old 10-01-2007
How exactly you are using utmp ? locate on my local Fedora produces :
Quote:
locate utmp
/usr/bin/utmpdump
/usr/include/utmp.h
/usr/include/utmpx.h
/usr/include/bits/utmp.h
/usr/include/bits/utmpx.h
/usr/sbin/dump-utmp
/usr/share/doc/vte-0.14.2/utmpwtmp.txt
/usr/share/dstat/dstat_utmp.py
/usr/share/dstat/dstat_utmp.pyc
/usr/share/man/en/man5/utmp.5.gz
/usr/share/man/man0p/utmpx.h.0p.gz
/usr/share/man/man3/utmpname.3.gz
/usr/share/man/man5/utmp.5.gz
/var/run/utmp
Which one you are using and how ? Why not use "finger" "last" "who" ?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Error login user file utmp

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

SCO utmp file

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

: /var/adm/utmp exists!

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. Programming

utmp ACCOUNTING

the utmp.h ACCOUNTING macro is set to 9 on my system. my question is: what "accounting" is it referring to? (2 Replies)
Discussion started by: thmnetwork
2 Replies

5. AIX

utmp files

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

6. UNIX for Advanced & Expert Users

/etc/utmp file does not get updated with boot up details

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

7. Programming

How come nothing is added to utmp in this case?

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

8. Shell Programming and Scripting

shell or perl script needed for ldif file to text file conversion

This is the ldf file dn: sdcsmsisdn=1000000049,sdcsDatabase=subscriberCache,dc=example,dc=com objectClass: sdcsSubscriber objectClass: top postalCode: 29600 sdcsServiceLevel: 10 sdcsCustomerType: 14 givenName: Adelia sdcsBlackListAll: FALSE sdcsOwnerType: T-Mobile sn: Actionteam... (1 Reply)
Discussion started by: LinuxFriend
1 Replies

9. Shell Programming and Scripting

KSH - help needed for creating a script to generate xml file from text file

Dear Members, I have a table in Oracle DB and one of its column name is INFO which has data in text format which we need to fetch in a script and create an xml file of a new table from the input. The contents of a single cell of INFO column is like: Area:app - aam Clean Up Criteria:... (0 Replies)
Discussion started by: Yoodit
0 Replies

10. Solaris

Locked out of server due to utmp growing out of control

:(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
GETUTMP(3)						     Linux Programmer's Manual							GETUTMP(3)

NAME
getutmp, getutmpx - copy utmp structure to utmpx, and vice versa SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */ #include <utmpx.h> void getutmp(const struct utmpx *ux, struct utmp *u); void getutmpx(const struct utmp *u, struct utmpx *ux); DESCRIPTION
The getutmp() function copies the fields of the utmpx structure pointed to by ux to the corresponding fields of the utmp structure pointed to by u. The getutmpx() function performs the converse operation. RETURN VALUE
These functions do not return a value. VERSIONS
These functions first appeared in glibc in version 2.1.1. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +----------------------+---------------+---------+ |Interface | Attribute | Value | +----------------------+---------------+---------+ |getutmp(), getutmpx() | Thread safety | MT-Safe | +----------------------+---------------+---------+ CONFORMING TO
These functions are nonstandard, but appear on a few other systems, such as Solaris and NetBSD. NOTES
These functions exist primarily for compatibility with other systems where the utmp and utmpx structures contain different fields, or the size of corresponding fields differs. On Linux, the two structures contain the same fields, and the fields have the same sizes. SEE ALSO
utmpdump(1), getutent(3), utmp(5) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2015-03-02 GETUTMP(3)
All times are GMT -4. The time now is 09:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy