I just installed fedora core 12 and install excepts a password for root but when trying to login it gives an 'authentication failure"
Have tried booting up using 'rescue installed system' going to shell: shell-4.0# run passwd, and change password, then reboot but cannot login as root have no trouble loggin as user.
auy sugestions Lewis Jessup (have been using linus for awhile but I'm still a newbe)
On Sat, Apr 24, 2010 at 05:55:57AM -0700, Lewis Jessup wrote:
I just installed fedora core 12 and install excepts a password for root but when trying to login it gives an 'authentication failure"
Have tried booting up using 'rescue installed system' going to shell: shell-4.0# run passwd, and change password, then reboot but cannot login as root have no trouble loggin as user.
auy sugestions
I'm not certain you can change it (and have it stick) using rescue mode. I'd boot up in single-user mode and change it from the prompt in that mode.
at the grub screen press a key to halt the boot there. move the cursor to the correct line (the one it should boot), type the letter 'e', scroll to the end, add the word "single", hit enter, type the letter 'b' to boot then when you get to a prompt change the password using the passwd command. then you should be able to reboot normally and log in as root.
(this is from memory, so some details may differ from reality)
Hi Lewis,
Lewis Jessup wrote:
I just installed fedora core 12 and install excepts a password for root but when trying to login it gives an 'authentication failure"
Have tried booting up using 'rescue installed system' going to shell: shell-4.0# run passwd, and change password, then reboot but cannot login as root have no trouble loggin as user.
Are you trying to login as root via the graphical login? If so, that's disabled by default. Please search the archives for many long discussions on the subject of root login before deciding whether you want to enable that or not.
If you're trouble is with logging in as root from a terminal, that's a different matter and you can ignore what I said. :)
在 2010-04-24六的 05:55 -0700,Lewis Jessup写道:
I just installed fedora core 12 and install excepts a password for root but when trying to login it gives an 'authentication failure"
Have tried booting up using 'rescue installed system' going to shell: shell-4.0# run passwd, and change password, then reboot but cannot login as root have no trouble loggin as user.
auy sugestions Lewis Jessup (have been using linus for awhile but I'm still a newbe)
you can't login as root by default, if use GUI.
On Sat, 2010-04-24 at 21:38 +0800, dhyang wrote:
在 2010-04-24六的 05:55 -0700,Lewis Jessup写道:
I just installed fedora core 12 and install excepts a password for root but when trying to login it gives an 'authentication failure"
Have tried booting up using 'rescue installed system' going to shell: shell-4.0# run passwd, and change password, then reboot but cannot login as root have no trouble loggin as user.
auy sugestions Lewis Jessup (have been using linus for awhile but I'm still a newbe)
you can't login as root by default, if use GUI.
Actually you can't log in as root by default when using Gnome. With other desktops (e.g. KDE) you can.
Not that you should of course, it's a very bad idea. See much earlier discussion on this list.
poc
On 04/24/2010 11:38 PM, dhyang wrote:
在 2010-04-24六的 05:55 -0700,Lewis Jessup写道:
I just installed fedora core 12 and install excepts a password for root but when trying to login it gives an 'authentication failure"
Have tried booting up using 'rescue installed system' going to shell: shell-4.0# run passwd, and change password, then reboot but cannot login as root have no trouble loggin as user.
auy sugestions Lewis Jessup (have been using linus for awhile but I'm still a newbe)
you can't login as root by default, if use GUI.
I always set up /etc/sudoers to allow user many but not all root privileges Using root is dangerous.
su enter root password vim /etc/sudoers go to the line which says ## Allow root to run any commands anywhere root ALL=(ALL) ALL under that enter your username <tab> All=(ALL) <tab> ALL where <tab> is the tab key. esc wq! to save and quit
When you need root access from a terminal type sudo <some command> and it will ask for your user password. type exit or close the terminal to exit sudo.
There are probably better ways but this works for me. Roger
On 04/24/2010 11:34 PM, Todd Zullinger wrote:
Hi Lewis,
Lewis Jessup wrote:
I just installed fedora core 12 and install excepts a password for root but when trying to login it gives an 'authentication failure"
Have tried booting up using 'rescue installed system' going to shell: shell-4.0# run passwd, and change password, then reboot but cannot login as root have no trouble loggin as user.
Are you trying to login as root via the graphical login? If so, that's disabled by default. Please search the archives for many long discussions on the subject of root login before deciding whether you want to enable that or not.
If you're trouble is with logging in as root from a terminal, that's a different matter and you can ignore what I said. :)
Just thinking about it After install did you complete the user set up procedure which normally follows without requiring root password after reboot while completing the installation. If you have user access then set up sudo to get most root privileges. Roger
On 04/25/2010 02:21 AM, Roger wrote:
I always set up /etc/sudoers to allow user many but not all root privileges Using root is dangerous.
su enter root password vim /etc/sudoers
You should really use visudo to edit the file. It takes care of things like locking the file, (not really needed on a one-admin system) and adding some syntax checking. It also defaults to the correct file name.
go to the line which says ## Allow root to run any commands anywhere root ALL=(ALL) ALL under that enter your username <tab> All=(ALL) <tab> ALL where <tab> is the tab key. esc wq! to save and quit
When you need root access from a terminal type sudo <some command> and it will ask for your user password. type exit or close the terminal to exit sudo.
There are probably better ways but this works for me. Roger
One fairly easy way is to give access to a specific group, and then make the users you want to be able to use sudo members of that group. There is an example you can uncomment in /etc/sudoers.
%wheel ALL=(ALL) ALL
Another way, that you may find easier to maintain is to put this part of the configuration in a file in /etc/suduers.d...
Mikkel