Sponsored Content
Full Discussion: Fedora reset root password
Operating Systems Linux Red Hat Fedora reset root password Post 302490400 by cokedude on Monday 24th of January 2011 06:11:14 PM
Old 01-24-2011
Quote:
Originally Posted by fpmurphy
Please post contents of
Code:
/etc/passwd
/etc/shadow
/etc/pam.d/passwd

Here it is. root2 is the second root account that I added since the original root account wouldn't let me log in.

Code:
bash-4.0# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
vcsa:x:69:499:virtual console memory owner:/dev:/sbin/nologin
avahi-autoipd:x:499:498:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin
distcache:x:94:494:Distcache:/:/sbin/nologin
nscd:x:28:493:NSCD Daemon:/:/sbin/nologin
rpcuser:x:29:492:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
tcpdump:x:72:72::/:/sbin/nologin
avahi:x:498:490:avahi-daemon:/var/run/avahi-daemon:/sbin/nologin
apache:x:48:489:Apache:/var/www:/sbin/nologin
saslauth:x:497:488:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
mailnull:x:47:487::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:486::/var/spool/mqueue:/sbin/nologin
openvpn:x:496:485:OpenVPN:/etc/openvpn:/sbin/nologin
rtkit:x:495:484:RealtimeKit:/proc:/sbin/nologin
smolt:x:494:483:Smolt:/usr/share/smolt:/sbin/nologin
squid:x:23:23::/var/spool/squid:/sbin/nologin
sshd:x:74:482:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
webalizer:x:67:481:Webalizer:/var/www/usage:/sbin/nologin
torrent:x:493:480:BitTorrent Seed/Tracker:/var/lib/bittorrent:/sbin/nologin
haldaemon:x:68:479:HAL daemon:/:/sbin/nologin
pulse:x:492:478:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin
gdm:x:42:474::/var/lib/gdm:/sbin/nologin
jr9744:x:500:500:Juan Rodriguez:/home/jr9744:/bin/bash
abrt:x:491:473::/etc/abrt:/sbin/nologin
root2:x:0:0::/home/root2:/bin/bash
bash-4.0# cat /etc/shadow
root:$6$Vh9yVXXj$onaqRA0LIYm0I8fFpdrupvAdh.iQKyNumkvkJhPcgA4QtzgzbCfSeJRXAqWTxoNFeVyVwXsv3JwKEJJklPA/z1:14993:0:99999:7:::
bin:*:14495:0:99999:7:::
daemon:*:14495:0:99999:7:::
adm:*:14495:0:99999:7:::
lp:*:14495:0:99999:7:::
sync:*:14495:0:99999:7:::
shutdown:*:14495:0:99999:7:::
halt:*:14495:0:99999:7:::
mail:*:14495:0:99999:7:::
uucp:*:14495:0:99999:7:::
operator:*:14495:0:99999:7:::
games:*:14495:0:99999:7:::
gopher:*:14495:0:99999:7:::
ftp:*:14495:0:99999:7:::
nobody:*:14495:0:99999:7:::
vcsa:!!:14643::::::
avahi-autoipd:!!:14643::::::
oprofile:!!:14643::::::
ntp:!!:14643::::::
dbus:!!:14643::::::
rpc:!!:14643:0:99999:7:::
distcache:!!:14643::::::
nscd:!!:14643::::::
rpcuser:!!:14643::::::
nfsnobody:!!:14643::::::
tcpdump:!!:14643::::::
avahi:!!:14643::::::
apache:!!:14643::::::
saslauth:!!:14643::::::
mailnull:!!:14643::::::
smmsp:!!:14643::::::
openvpn:!!:14643::::::
rtkit:!!:14643::::::
smolt:!!:14643::::::
squid:!!:14643::::::
sshd:!!:14643::::::
webalizer:!!:14643::::::
torrent:!!:14643::::::
haldaemon:!!:14643::::::
pulse:!!:14643::::::
gdm:!!:14643::::::
jr9744:$6$qiZDdTQ4HifIIqKb$AAzffxUoFB.MzFuaFdN1ZwO9pHQhO5nyJcO3Ojo7.YLQLp9ju3/5yjyw8jz/AVn2sS5bWBihf5aVC3V35GpOB0:14643:0:99999:7:::
abrt:!!:14648::::::
root2:$6$Y4bsw5BG$mdZnMzuIRSdMjhOo7GHsFqc90p/OBINfZQcGBQV/JrWL.pI3KKiMzxFXzCG20kpzTpuoJbH2oyyRGgGvXNFRF1:14993:0:99999:7:::
bash-4.0# cat /etc/pam.d/passwd
#%PAM-1.0
auth       include    system-auth
account    include    system-auth
password   substack    system-auth
-password   optional    pam_gnome_keyring.so
bash-4.0#

 

9 More Discussions You Might Find Interesting

1. Cybersecurity

How to reset root password of old Unix System V

Hi all, This is first time I met unix in my life. I purchased old Scanning Elecron Microscope which came with 486/33MHz PC running Unix System V, ver. 3.6. The one simple user name/passw is known so I can boot and login. But can not shutdown! It asks root or su passw. I'm very sensitive not to... (6 Replies)
Discussion started by: 82026
6 Replies

2. UNIX for Advanced & Expert Users

Not able to reset mysql root password

Hi, My root password for mysql has some problem as it dosent allow me to login.... all commands to reset it failed. so I removed mysql yum remove mysql and installed it by yum install mysql mysql-devel mysql-server and it installed fine I gave chkconfig --levels 235 mysqld on... (1 Reply)
Discussion started by: viji19812001
1 Replies

3. Solaris

Reset lost superuser/root password in x86

I've come across this question during interview as Sys Adm. "How you reset lost root/superuser password on x86 system running solaris (8/9/10) which remotely located. (Not locally in front of you)" As much as I know, you must be physically in front of the server to reset the lost... (4 Replies)
Discussion started by: shahru
4 Replies

4. UNIX for Dummies Questions & Answers

Permission denied when changing root password after reset

I have a Solaris 10 machine that I didn't know the root password to so I went into single user mode and removed the password from the shadow file and rebooted and I am able to login with no password now. But my problem is that when I try to change the root password from no password to something... (0 Replies)
Discussion started by: darkone_d1_2000
0 Replies

5. UNIX for Advanced & Expert Users

How to reset the ldap root password?

How to change the ldap root password. I have generated the password by using "slappasswd " command, but In my root machine "/etc/ldap/sldap.d" file is not there. instead of the file sldap.d directory only is there. please help me...? (0 Replies)
Discussion started by: ungalnanban
0 Replies

6. Emergency UNIX and Linux Support

Reset AIX root password without shutting down the system

Hi All, I'm stuck in a severe problem here , Someone have changed the root password and he cannot remember it and there is no other user privileged user on the system , But I do have access to a non privileged user. On the top of the system an application which requires a theoretical ... (5 Replies)
Discussion started by: h@foorsa.biz
5 Replies

7. Solaris

solaris 8 reset root password from OSX

Hello, I have two old Solaris machines $ uname -a SunOS unknown 5.8 Generic_117350-39 sun4u sparc SUNW,UltraAX-e2 unfortunately, it has been so long ago that i have used these that the root password has left my head... i can log into one of the machine as a normal user, but am unable to... (4 Replies)
Discussion started by: Norman Khine
4 Replies

8. Solaris

How to reset forgotten mysql root password?

Hi All, I just found one thread on this forum on this subject here: Forgot MYSQL password root | Unix Linux Forums | Web Development but unfortunately the issue was not resolved. I have the same problem with the same error message. The background is that I built a Solaris 11 x86 server... (11 Replies)
Discussion started by: hicksd8
11 Replies

9. UNIX for Beginners Questions & Answers

Linux root Password Reset

Hi , I ve a question about the Linux system root password change. Which can be done using grub menu without inputting the old password.:confused: So If anybody can change the root password without any password and then how it is secure. Anybody can manipulate the other user using the... (6 Replies)
Discussion started by: pradyumnajpn10
6 Replies
All times are GMT -4. The time now is 12:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy