Recover root account


 
Thread Tools Search this Thread
Operating Systems Solaris Recover root account
# 1  
Old 12-21-2012
Recover root account

Hi everyone!

I've got a problem caused by another who did:
- He create an user and grant the group (1) to this
- The problem appears as "Permission deined when reboot the Server

Code:
Dec 21 09:13:09 payment dtlogin[1269]: open_pam_conf: Owner of /etc/pam.conf is not root
Dec 21 09:13:09 payment dtlogin[1117]: open_pam_conf: Owner of /etc/pam.conf is not root
Dec 21 09:13:30 payment sendmail[533]: unable to qualify my own domain name (payment) -- using short name
Dec 21 09:13:30 payment sendmail[1310]: unable to write pid to /var/spool/clientmqueue/sm-client.pid: Permission denie

Then, I recover by CDrom, change owner to root (pam.conf), login success to Server. However, I can change root's password, even deleting 2 users

Code:
root@payment # id -p vmspay
uid=503(vmspay) gid=1(other) projid=3(default)
root@payment # userdel vmspay
root@payment # userdel payment
root@payment # 
root@payment # 
root@payment # passwd
passwd: Changing password for root
New Password: 
Re-enter new Password: 
Permission denied
root@payment # cd /etc
root@payment # ls -ll pam*
-rw-r--r--   1 root     sys         3477 Dec 21 14:31 pam.conf
-r--r--r--   1 503      bin         3310 Jul  5 02:47 pam.conf-winbind
-rw-r--r--   1 root     root        3263 Dec 21 14:29 pam.conf.bk
root@payment # passwd -r files root
New Password: 
Re-enter new Password: 
Permission denied
root@payment #

May you guide me to do it?
Thank you!
# 2  
Old 12-22-2012
I don't know what is wrong - completely. Can you undo the pam settings or rename the files.
# 3  
Old 12-22-2012
I'm struggling as well - at first I thought the 503:bin ownership or permissions on the parent dir would stop him/her, but the user is root, so ...? If it were for extended attributes, the error msg would be different, so ...?
# 4  
Old 12-24-2012
Thank you for your reply!

I solved those problem 3 days ago.
The problem was described:

+ The other man created 2 users who owned group root.
+ 2 users was changed owner to be a super user owning everything from root.
+ When reboot, the server was not logging still I used a CDrom and boot in single-mode, repaired some files and restarted.

503, 504 is the number instead of 2 strange users above. So, I write a shell script to find every files which owned by 503,504, compared them with the normal server running sun10 sparc. At the end, I switched back to right user (root, daemon, uucp), right group (root, sys, daemon, uucp ...).

Now, the problem is gone.
This User Gave Thanks to trantuananh24hg For This Post:
# 5  
Old 12-25-2012
Smilie Thanks for reporting back trantuananh24hg
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

SVM recover root

Hi,, i have a solaris 10 machine , that let the root password expire.. I am trying to recover from failsafe mode. In the old days it was rater simple , boot to cdrom , mount the root disk, /a cd /a and wipe out root pw string.. Now i have to try and do it remotely , from failsafe and this... (2 Replies)
Discussion started by: goya
2 Replies

2. Solaris

How recover the root password - Solaris 11?

Hello forum members, Please help me to recover the root password. I have had difficulties working with Solaris 11. The run-level equivalents single-user in Solaris 10, I can mount disk in one partition and edit files shadow/passwd. For example: {0} ok boot cdrom -s # mount... (4 Replies)
Discussion started by: Marcela Bueno
4 Replies

3. Red Hat

How to recover the root password?

Hello forum members, Please help me to recover the root password. i can login with the user in redhat linux but i forget root password. so pleas help me to recover. advance thanks siva. (2 Replies)
Discussion started by: workforsiva
2 Replies

4. Solaris

Recover root password

How can I recover root password :wall: 1) I am running Solaris 10 (X86) through VMware for practicing. 2) I was practicing root password recovery and deleted the password in /etc/shadow file. 3) Neither cant login the to the CLI nor Console 4) Selected the Soalris X86 failsafe in... (4 Replies)
Discussion started by: vijaykrishna
4 Replies

5. Solaris

Need to recover 'root' password

Dear All, I have lost my data backup server's root password, just have a normal login username and password ..but i need to get back my root passwd....any1 can help me out plz :confused: (7 Replies)
Discussion started by: abir
7 Replies

6. Solaris

How to recover root password

How to recover root password in solaris, I forgot root password. thanks in advance (2 Replies)
Discussion started by: durgaprasadr13
2 Replies

7. UNIX for Dummies Questions & Answers

Root Recover Issues

Trying to recover a root password on a Sun V580. Problem is I can not get it to recognize the STOP A to get to an OK prompt. Using USB keyboard and mouse. Any ideas???? (1 Reply)
Discussion started by: calamine
1 Replies

8. AIX

Can't login root account due to can't find root shell

Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in. I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies

9. Solaris

Recover root passwd

Any body pls let me know the procedure to recover ROOT password in Sun Netra 20 Server..I forgot the password. (5 Replies)
Discussion started by: gini
5 Replies

10. Solaris

Recover root password

I need to recover root password on a test server (E 10k) running solaris 9. Can someone please tell me how to do this? (1 Reply)
Discussion started by: nitinkgoud
1 Replies
Login or Register to Ask a Question