LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 01-06-2007, 02:00 AM   #1
etfd
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
root password doesn't work at log in, works using "su"


hey guys, my root password doesn't work when i try to log onto the system as root, but it does work if I log in as another user then do "su". I need to be able to log onto my system as root for back up purposes and can't figure this out. Anyone seen something like this before?

thanks,

David
 
Old 01-06-2007, 02:24 AM   #2
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
David:

As long as you can do su, there's actually no need to log in as root! In fact, this is most definitely a safety feature (not being able to login as root, I mean), many people change their system's behaviour to do exactly that.

Solutions without changing the safety level:
- If you can, log in with your user and use su - it's more healthy that way.
- Install and use sudo, adding your user to /etc/sudoers - but for safety's sake, have sudo use a password. man sudo and man sudoers are very helpful.
- Later on, you may even want to write a simple script to do your backup tasks for you (that can be run by cron as root).
 
Old 01-08-2007, 03:05 PM   #3
gparker
LQ Newbie
 
Registered: Jun 2006
Posts: 11
Blog Entries: 2

Rep: Reputation: 0
David, You didn't mention how you are trying to log on, or where. Are you using ssh? If so, you can uncomment the line below in sshd_config:

PermitRootLogin: Yes
 
Old 01-10-2007, 06:38 AM   #4
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
gparker: Technically, you're right - but I'd strongly advise against this, since it's not good practice. But of course, it's the way to achieve what you describe...

M.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No longer able to log into ssh. Password right but "permission denied" Baix Linux - Software 11 11-21-2008 12:44 PM
Why does "su" reject my password if I can log in as root? wtf? neeyo Linux - General 10 12-21-2006 07:46 PM
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 05:37 AM
"Can't resolve host" as user, but works fine as root truthe Linux - Networking 2 10-22-2006 05:41 PM
where is the "enter root password or Contrl-D to continue" after FS repair at boot jg167 Red Hat 0 11-17-2004 01:20 AM


All times are GMT -5. The time now is 01:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration