Linux - NewbieThis 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
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.
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.
Thanks for that case. But if u take a different scenario, i am a normal user and suppose i forgot the root password, so i want to get a new root password what is the COMMAND for it
There is no such thing as a command fr it since we do not know the circumstances.
which distribution are you using, is it a physically accessible machine etc.
Give some backgroud first so the appropriate procedure can be pointed out
Yah!
We don't just spill the beans around here. But there is/was an article on Youtube that I never looked at because of the dialup issue.
What if you had ill intensions, I wouldn't want to be responsible, but then again, you don't know me from a hole in the ground.
Hi my friends,
I am system administrator under training.
Suppose a student came to me and asked that he forgot the password for the root and he can login as a normal user only. He wants me to set a new password or recover the old password, how would i do it? Is there any command or procedure for it?
Also wouldn't it also matter if he has "SUDO" rights, you only need to go into single user mode if you have no super user access... if you have sudo rights you can reset root with "sudo passwd root", else it's the single user mode way. As far as it goes, any OS is not too hard to reset passwords on if their is physical access, just most people don't know how to do it... also the effects are in most cases, plain as day. Nothing is more dangerous then physical access... something to remember.
if you have sudo rights you can reset root with "sudo passwd root"
Only if you've managed to seriously screw up you sudoers file. Sorry, but this is a pet peive of mine so I'm going to get back up on my soapbox for this issue once again today.
<soapbox>
'sudo' is not meant to be an alternative to 'su'. It's purpose is to allow a non-root user access to a very specific set of commands that need to be run as root.
Allowing users to sudo all commands and, especially, run shells, is a very very bad thing.
Sudo is safer then su, Sudo automatically logs you out of super user privilages after 15 minutes where su does not. You shouldn't really directly login as root or allow su on any machine where someone other then you can access it, I work in a datacenter with other technicians so I have to use sudo, as to not expose my own personal server should I leave it open to handle any work.
Meh, Sudo is just way more secure so I'll countine to use it over su, AOL CDs were not meant to replace coasters, but hey they do the job!
Anyways, the OP never stated it was actually his computer, for all we know the student could be using their own machine... or it could be a training lab... it's hardly something to say "why the hell" over, their are valid possibilities.
I am not satisfied with the answer my friends gae it to me. Being a site with loads of system administrators, nobody could answer a simple question.
Regarding r3sistance, sir if the user's name is not in sudoer's file then its not possible for me to use the sudo command. What's the alternative.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.