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-02-2008, 10:27 PM
|
#1
|
|
Member
Registered: May 2005
Posts: 32
Rep:
|
Lost password
Hi all
I have editted the /etc/passwd file, and I have changed the root entry to admin. I've heard that this way I can increase my server security. But now I can't access my server! When I try to login with root, it says access denied. With admin, Linux says:
Code:
Permissions on the password database may be too restrictive.
Access denied
How can I access my system? The server runs SuSE Linux Enterprise Server 10. And I can access it physically.
|
|
|
|
09-02-2008, 10:42 PM
|
#2
|
|
Member
Registered: Mar 2008
Location: Virginia
Distribution: RHEL 4/5, Fedora 6-9, SuSE 10.1-11, Open Solaris 10.8, WinXP,2003,Vista
Posts: 59
Rep:
|
You need to boot into single-user or runlevel 1. Do you know how to change into runlevel 3 during boot? If so, just replace the 3 with a 1. From there, you should be able to fix your problem.
|
|
|
|
09-02-2008, 10:44 PM
|
#3
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
You want to change it back. You could try logging in as a regular user with "sudo" privileges and undo your changes. I'm assuming that "sudo" will work by changing the "EUID" to 0 regardless of your changes. Or boot up with a rescue disk or live distro; mount the partition with /etc/ on it and edit /etc/passwd as root.
I don't know why changing the name of root would increase security. True that root is a known name, but so is admin. Also, the /etc/passwd file is world readable, and anyone can look at the file and see what you did. ( grep ':0:0:' /etc/passwd )
IMHO, instead, you could restrict root logins to a security terminal (/etc/securetty), make sure the root password is very strong, and disable ssh root logins. You can also restrict what commands sudoers are allowed to perform, such as allowing rvim but not evim. If you run mysql, did you remember to give the root user a password, delete the anonymous user and the "test" database. Did you search your system for all suid programs. Look at every package you have installed. Are they all necessary. When it comes to security, less is more. (less installed is more secure) Learn how SELinux works so you understand it.
|
|
|
|
09-03-2008, 04:13 AM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
Quote:
Originally Posted by rushenas
Hi all
I have editted the /etc/passwd file, and I have changed the root entry to admin. I've heard that this way I can increase my server security. But now I can't access my server! When I try to login with root, it says access denied. With admin, Linux says:
Code:
Permissions on the password database may be too restrictive.
Access denied
How can I access my system? The server runs SuSE Linux Enterprise Server 10. And I can access it physically.
|
That would have worked had you also changed
/etc/shadow to use admin instead of root.
As /usr/darien said: try to boot into single-user
mode specifying /bin/bash as your init on the boot
loader prompt (because these days most distros will
prompt you for a password just the same if you just
go 'single'). Or use a live CD to undo the changes.
Cheers,
Tink
|
|
|
|
| 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
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Lost Password
|
ockertom |
Linux - Software |
5 |
03-19-2007 11:49 PM |
|
lost password
|
Loretta59 |
Suse/Novell |
2 |
05-12-2005 12:40 PM |
|
I lost my password
|
[BFK]BLASSON |
Linux - Security |
3 |
05-05-2004 07:15 PM |
|
Lost password
|
mijohnst |
Linux - Security |
2 |
04-06-2004 04:02 PM |
|
lost password
|
waxiem |
Linux - Software |
5 |
07-04-2003 10:00 AM |
All times are GMT -5. The time now is 11:37 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
|
|