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 |
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-28-2011, 08:44 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Rep: 
|
Given "sudo su" when asked for root password
I'm taking over a web server that was built on CentOS and I'm right now trying to get everything straight. I am NOT a linux person and will be looking for someone to manage that aspect of it once I am at that point.
The previous contracts who had the server are sending me just enough information to make me work to figure out the rest. I've got a password file for the server but it doesn't contain a root password. I asked them for the password and their guy responded with "sudo su".
So, what does that mean in terms of root access? I have a seperate account that I can log in with and get to everything but when the time comes that I need root access (installing SSL certificate SOON), am I going to be able to do so?
Thanks!
Tony.
|
|
|
|
09-28-2011, 09:02 PM
|
#3
|
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Original Poster
Rep: 
|
Perfect, I sort of figured out that was the case, but your post shed a lot of light. sudoers file shows my account can run as root, so I'm good there.
Thanks for the help.
|
|
|
|
09-28-2011, 09:17 PM
|
#5
|
|
Member
Registered: Sep 2010
Distribution: Slackware 13.37
Posts: 313
Rep:
|
Do some research and do some things too:
- remove other accounts from /etc/sudoers
- disable root ssh logins
- delete all user accounts no longer needed
- change the passwords of all users and root
That can save you some headaches.
|
|
|
|
09-28-2011, 09:20 PM
|
#6
|
|
LQ Newbie
Registered: Sep 2011
Posts: 12
Original Poster
Rep: 
|
@bonixavier.. that's precisely what I was working on.
@Chris.. thanks for the link. I appreciate all the help I can get!
|
|
|
|
09-28-2011, 09:56 PM
|
#7
|
|
Member
Registered: Sep 2011
Posts: 124
Rep: 
|
You might be better off using "sudo su -" rather than "sudo su". This will make sure that your root shell is using root's environment, rather than your user environment.
One difference would be that if you use "sudo su -", the root shell will use the dotfiles in /root instead of the dotfiles in /home/username.
|
|
|
|
09-28-2011, 10:11 PM
|
#8
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 14,938
|
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:39 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
|
|