Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
password
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Il Falco
n00b
n00b


Joined: 02 Jul 2010
Posts: 4

PostPosted: Fri Jul 02, 2010 12:17 pm    Post subject: password Reply with quote

hi all i just fall inside a trouble! i lost my login password so i cannot login into the system
i state that i cannot format and relog 'cause of the partition is plenty of important files (argh my degree!!)
can i avoid this?ù

thx in advance
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Jul 02, 2010 1:02 pm    Post subject: Reply with quote

Simple, boot with the latest SystemRescueCD, chroot your box and then try this :
Code:

# passwd your_user


Change it, and do the necessary to dechroot and reboot your box :P
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7475

PostPosted: Fri Jul 02, 2010 1:14 pm    Post subject: Reply with quote

booting the livecd just to change a user password would be like using a canon to remove a spider :)

- just ctrl+alt+f1 log as root, then passwd user to change it
- ask your admin for a new password if you're not the admin
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1932

PostPosted: Fri Jul 02, 2010 2:18 pm    Post subject: Reply with quote

You can also boot up into single-user mode (if you remember your bootloader password or have it unset), which will give you root access.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Jul 03, 2010 3:47 am    Post subject: Reply with quote

He didn't specify which account he lost, maybe it's his root account :P
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat Jul 03, 2010 9:08 am    Post subject: Reply with quote

d2_racing wrote:
He didn't specify which account he lost, maybe it's his root account :P


++

bypassing it all with sysrescuecd is very quick and easy. It is one of many reasons why i keep a liveusb of sysrescuecd on my keychain with my car and house keys!
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sat Jul 03, 2010 9:18 am    Post subject: Reply with quote

From grub's menu in boot, get into grub's command line and boot the kernel with init=/bin/sh and remount your / as writable, then change the passwd from there.
No CDs required.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat Jul 03, 2010 9:22 am    Post subject: Reply with quote

ssuominen wrote:
From grub's menu in boot, get into grub's command line and boot the kernel with init=/bin/sh and remount your / as writable, then change the passwd from there.
No CDs required.


functionally is that any different from booting in single-user mode?
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Jul 03, 2010 7:59 pm    Post subject: Reply with quote

I don't think so.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum