Edit wtmp file aix




















I answer the most common questions like "How to get clients" and "How to set pricing" and more. Congrats gents!! Would love to see it become a thing. By Kenneth February 15, - pm March 14, Hacking. Tagged btmp , utmp , utmpdump , wtmp. Bookmark the permalink. Hello, Every quarter, I copy then clear this file like this: This way you keep a years worth or 4 files only.

Thanks everyone for the great responses, exactly what I was needing. Now, I just have to decide what approach is best in my environment. Thanks again! We have a script which runs from crontabs on Sunday morning that restricts wtmp to n days of data; the number of days that we maintain in wtmp varies considerably between hosts. The script uses fwtmp to create an ascii version, searches the file until it finds a date older than n days, uses fwtmp to build a new binary version of wtmp using this data, then overwrites the old version.

There are several gotchas with this technique: 1. It requires a fair bit of free space. It has to be done at a quiet time preferably no user access. It requires Tcl or one could use Perl to determine the n days prior date.

The same technique could be used to remove the entries for a specific user; if this was required. This is an example of a syslog. We run rotatelog every night on all our servers, but it will only compress and rotate the log if the file has reached the size specified in the Trigger column.

The location of the config file is specified in the rotatelog script. After digesting all of these great suggestions and evaluating our environment, I have come up with a solution that works in our situation. It is basically a hybridization of all of these great ideas.

Here is the script that I have implemented. It might be a little overkill in terms of pure information gathering but I like to have a good idea of what the script actually did. Twelve 12 copies of the wtmp file are kept. I just mentioned this because usually this method is workable, but if you have specific user settings, then other files should be checked or copied as well. If you hit mkuser commad what are the files will get updated Hi, those which are mentioned in the "Copying users betwwen AIX systems".

Hi admin.. I have recently faced a question in an interview. What is the maximum no of users i can create in AIX. Thank you Hi , I am unable to create test user in one of the AIX machine and getting error [ 91 Error changing "groups" ] how we can trouble shoot this one? This file is no longer user customizable. To have a customized mkuser. Hi, How can i see who all users where logged into the AIX server at a particular time? Join Tek-Tips Forums! Join Us! By joining you are opting in to receive e-mail.

Promoting, selling, recruiting, coursework and thesis posting is forbidden. Students Click Here. Hi all, I thought of sharing with you my experience with clearing wtmp. CODE Things to know about the wtmp file.



0コメント

  • 1000 / 1000