![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| wtmpx file is too big | Vijayakumarpc | SUN Solaris | 6 | 01-05-2008 02:42 AM |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-20-2007 01:52 AM |
| wtmpx file | aladdin | UNIX for Dummies Questions & Answers | 3 | 06-24-2007 01:54 PM |
| No utpmx entry: you must exec "login" from lowest level "shell" | peterpan | UNIX for Dummies Questions & Answers | 0 | 01-18-2006 04:15 AM |
| wtmpx | finster | UNIX for Dummies Questions & Answers | 5 | 06-22-2004 05:46 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how to delete entry in file "wtmpx"(/var/adm/wtmpx)
Do someone know how to delete entry(some lines)
in file "wtmpx" that command "last" use it. this file is binary so I cannot edit directy. ========================= #last root pts/1 noc Fri Mar 3 22:04 still logged in root pts/1 noc Fri Mar 3 22:01 - 22:02 (00:00) root pts/1 noc Fri Mar 3 21:50 - 21:51 (00:00) root pts/1 noc Fri Mar 3 21:46 - 21:46 (00:00) root console Fri Mar 3 20:20 still logged in few pts/2 narisara Fri Mar 3 18:43 - 18:43 (00:00) ========================= I want to delete entry of user "few" from command "last". |
|
||||
|
if you have appropriate permission to edit the /var/adm/wtmpx file
then use the utmpx structure and with getutxent function read the file and modify to eliminate the entries from the file get the utmpx structure from utmpx.h |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|