Can root access be gained from regular user account without password?
Linux - SecurityThis 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.
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.
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313
Rep:
Can root access be gained from regular user account without password?
I have a computer at school that has an incorrect OpenMosix line in inittab I need to change. Someone I gave the root password to (i know, i know) changed it to something else. How can I gain access without having physical access to the box? I have a valid user logon and password but I could not change the inittab file with those lowly permissions. I am able to SSH into the box with no problem.
there is no way. You need to have a rescue floppy and access to the physical system to change the /etc/password file. Other wise you be screwed. OH well, by the way your story is highly unlikely as no one ever gives root permissions to anyone on a net box with out serious considerations toward that persons character and integrity. If you need to give someone root permissions in order for them to access files or install programs you could use sudoers. More than likely you are a student with aspirations to root user and can not get access to the server room. Too bad for you. If you really were root user could get physical access to the box for a rescue.
wolfe
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313
Original Poster
Rep:
Well, acutally I can email a professor who can talk to the person for me. I just didnt want to wait that long as the holiday will mean I need to wait til a week from now. I want to work on the problem right away as the semester is coming to an end. But I digress, thanks for the info all.
I will drive to school and access the server directly next week.
Thanks you for the info Krugger, however I cannot run that code because I do not know what it does.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.