LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-18-2005, 12:47 PM   #1
jp_
LQ Newbie
 
Registered: Feb 2005
Location: East Coast, USA
Distribution: Slackware
Posts: 27

Rep: Reputation: 15
adduser


When an admin adds a user where does this get logged to?

example: adduser jp

Where would I look to find this user added in a log?
 
Old 10-18-2005, 12:54 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Check /var/log/. It has all interesting logs at your system. You can also change some of the user settings by editing the file /etc/passwd, this includes things like default bash, default home, etc.
 
Old 10-18-2005, 12:56 PM   #3
jp_
LQ Newbie
 
Registered: Feb 2005
Location: East Coast, USA
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Do you happen to know the name of the file that stores all of root's activity?
 
Old 10-18-2005, 12:59 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
No log specifically for adduser so far as I know.

You can try looking at shell history files to see if a specific command was done. Unfortunately the history files don't give timestamps so you can only guess whether the action was done 5 minutes ago or a year ago. Of course if its the last line of the history file and the timestamp on the history file itself is recent then you know when that occurred. You can also make guesses about how likely something was to have happened recently by its proximity to the end of the file.
 
Old 10-18-2005, 01:11 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Generally speaking, that command won't have been "logged" per se.

.bash_history is the only likely record unless sudo or su was used to execute the adduser.
 
Old 10-18-2005, 01:15 PM   #6
jp_
LQ Newbie
 
Registered: Feb 2005
Location: East Coast, USA
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
How about a log that would list who logged in as SU at a certain time?
 
Old 10-18-2005, 02:11 PM   #7
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
var/log/messages, if I remember correctly, tells the time and who has tried to "su". I used a program called root-tail before which should display on my desktop background any important changes on the logs. You might want to give it a try if you want full control of what is happening with the logs without the need to read those files directly:

http://www.goof.com/pcg/marc/root-tail.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adduser 64bitPlaya Slackware 2 08-13-2004 05:05 PM
adduser bally Linux - General 7 08-09-2004 01:28 PM
adduser trophy Red Hat 1 05-01-2004 09:11 AM
adduser teqno Linux - Newbie 5 12-08-2003 12:26 PM
Adduser - xmdms Linux - Newbie 3 10-23-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration