LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack 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
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
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
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,185

Rep: Reputation: 468Reputation: 468Reputation: 468Reputation: 468Reputation: 468
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
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
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
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 09:43 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration