You are not logged in.

#1 2009-09-20 07:18:35

pisio
Member
Registered: 2009-09-20
Posts: 12

Login as root - fail

Hello colleagues,
rather than I with archlinux. previously was with ubuntu and decided to go for something more seriously.My friend of mine recommended the system.
Everything is on line, I have almost no problems.

I put on my OS ssh, apache, mysql, proftpd no problems with them until this morning moment.This morning  I tried to enter and to fix the sound, because we do home-party and there must be music.Try to login as root user, however I painted:

[pisio @ myhost ~] $ su
Password:
su: incorrect password
[pisio @ myhost ~] $

I have not changed password. I think samobody  it has changed from sshd.

[pisio @ myhost ~] $ cat / etc / passwd
root:x: 0:0: root: / root: / bin / bash
bin: x: 1:1: bin: / bin: / bin / false
daemon: x: 2:2: daemon: / sbin: / bin / false
mail: x: 8:12: mail: / var / spool / mail: / bin / false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
nobody: x: 99:99: nobody: /: / bin / false
dbus: x: 81:81: System message bus: /: / bin / false
policykit: x: 102:102: PolicyKit: /: / sbin / nologin
hal: x: 82:82: HAL daemon: /: / bin / false
avahi: x: 84:84: Avahi daemon: /: / bin / false
pisio: x: 1000:100:: / home / pisio: / bin / bash
gdm: x: 120:120: Gnome Display Manager: / var / lib / gdm: / sbin / nologin
mysql: x: 89:89:: / var / lib / mysql: / bin / false
[pisio @ myhost ~] $

How can I change or recover the password of root?
My English is not very good. I'm so sorry ;(
Urgent need to fix sound and password root. Thanks in advance for help.I looked  many topics, but I could not handle if someone can explain to me as a noob .....

Offline

#2 2009-09-20 08:21:52

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: Login as root - fail

Does your user have sudo? If so a simple `sudo passwd root` is enough. If not, boot a live cd, mount the / partition of your current system and edit /etc/sudoers, adding

lich    ALL=(ALL) ALL

Then boot back your system and do what I said (`sudo passwd root`). If sudo is not installed, then boot a live cd, chroot to your current /, install sudo, edit sudoers, boot back, and change the pass.
Good luck!
[edit] Of course replace "lich" with your username

Last edited by Lich (2009-09-20 08:22:35)


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#3 2009-09-20 08:38:58

pisio
Member
Registered: 2009-09-20
Posts: 12

Re: Login as root - fail

Thanks for your help, it became very easy.
Should I buy you a beer:)

Offline

#4 2009-09-20 09:13:05

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: Login as root - fail

pisio wrote:

Thanks for your help, it became very easy.
Should I buy you a beer:)

Nah I'm a wine person, and got plenty of that. Glad I could help. Have a nice party smile


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#5 2009-09-20 16:14:16

pisio
Member
Registered: 2009-09-20
Posts: 12

Re: Login as root - fail

10x

Offline

Board footer

Powered by FluxBB