LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2009, 11:05 PM   #1
scream
Member
 
Registered: Feb 2008
Distribution: Oracle Linux
Posts: 32

Rep: Reputation: 0
need help


Dear All,
I want to config my system such way that if anyone tries to change my root password then system will automatically mail the new password to system admin. is it possible? please let me know how..........................
 
Old 02-17-2009, 11:52 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
Quote:
want to config my system such way that if anyone tries to change my root password
mail the new password to system admin.
well root is the admin. most of the time if you are root then how could the system email you a new password. to admin. do you understand what I am saying.
or are you trying to say if some one mess with your password you want the system to lock it out and issue a new password that only an root admin can get.
why even have a password then. most system just lock that user out till it is restarted. But since your root. who knows who admin is I guess root. or did you as root set up another user with admin and root privileges.
Enough you are not root on the system the admin is and you will have to ask your admin to set up a system that generates passwords. find a good linux script writer and send him to your admin so so your admin that has root privileges of your computer can allow this.
that why admin support gets all the big dollars.
Quote:
Here at the U of I all staff people that work with personal data get a new password given to them every 3 month or less.

Last edited by Drakeo; 02-17-2009 at 11:56 PM.
 
Old 02-18-2009, 12:36 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
If you are the root then only person who can change root password is YOU. Unless you tell your password to someone else or that person has physical access to the system. For preventing someone from booting into single user mode use boot loader password so that no one is able to change the parameters at boot loader. All said there are several other ways that can compromise your system.
So keep your root password secret and keep changing it at regular intervals.
 
Old 02-18-2009, 06:00 PM   #4
servat78
Member
 
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
The root password is usually changed by the 'passwd' program. It is possible to create other applications to change passwords, but most of these would propably call 'passwd' to do the job. If you always want to be notified on some email address about root password changes, then you will need to create your own version of 'passwd'. Possibilities are:

- modify the passwd source code to send notification mails and compile it again

- rename the passwd tool to something else (maybe passwd.exe) and create a shell script named passwd that actually runs the original passwd tool, but additionally sends a notification

Note that the /etc/passwd and /etc/shadow files can also be changed directly with some text editor and the password hash value can be inserted by copy-pasting it. So nothing guarantees that the passwd tools really comes into play. If this whole attempt is against malicious attacks to the server, then be aware that after intrusion none of your tools can be trusted.

Debian

Last edited by servat78; 02-19-2009 at 12:31 PM.
 
  


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




All times are GMT -5. The time now is 04:06 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration