Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-17-2003, 12:10 PM
|
#1
|
Member
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240
Rep:
|
root change the password
Hi all,
Being a root, sometimes I must change the password for a general user. However, I always forget to input the username so what have been changed is the password of ROOT!!!
I wonder if there is a way to warn the root whenever the password being changed is of ROOT???? And I also want to send a mail containing the original password and the new password for notification after every change the password.
HOW ???????
Thanks in advance.
|
|
|
03-17-2003, 12:18 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
i don't think this is possible, the whole point is that root knows all, and has to be held responsible for doing dumb things. as for sending email, that is a horrendous security risk, and lucky impossible as the actual passwords are not stored anywhere, only the encrypted version, which is no use to anyone.
|
|
|
03-17-2003, 12:24 PM
|
#3
|
Member
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240
Original Poster
Rep:
|
Thanks for your reply.
So can i prevent the root from changing the password of itself.
|
|
|
03-18-2003, 05:31 PM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
No, you can't. Else it wouldn't be a root account.
//Just to make this thread complete.
|
|
|
04-11-2003, 03:07 AM
|
#5
|
LQ Newbie
Registered: Apr 2003
Posts: 5
Rep:
|
A couple of thoughts on the matter. One is to have the user id in the prompt, this works for me. Another is create a script named something that makes sense to you that will print to the screen that you are root and ask for the user id you wish to modify. It would capture your response and run passwd with the user id you provided.
|
|
|
All times are GMT -5. The time now is 09:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|