Sponsored Content
Full Discussion: Recover root account
Operating Systems Solaris Recover root account Post 302747615 by trantuananh24hg on Friday 21st of December 2012 09:56:51 PM
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!
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
PAM_SECURETTY(8)						 Linux-PAM Manual						  PAM_SECURETTY(8)

NAME
pam_securetty - Limit root login to special devices SYNOPSIS
pam_securetty.so [debug] DESCRIPTION
pam_securetty is a PAM module that allows root logins only if the user is logging in on a "secure" tty, as defined by the listing in /etc/securetty. pam_securetty also checks to make sure that /etc/securetty is a plain file and not world writable. This module has no effect on non-root users and requires that the application fills in the PAM_TTY item correctly. For canonical usage, should be listed as a required authentication method before any sufficient authentication methods. OPTIONS
debug Print debug information. MODULE TYPES PROVIDED
Only the auth module type is provided. RETURN VALUES
PAM_SUCCESS The user is allowed to continue authentication. Either the user is not root, or the root user is trying to log in on an acceptable device. PAM_AUTH_ERR Authentication is rejected. Either root is attempting to log in via an unacceptable device, or the /etc/securetty file is world writable or not a normal file. PAM_INCOMPLETE An application error occurred. pam_securetty was not able to get information it required from the application that called it. PAM_SERVICE_ERR An error occurred while the module was determining the user's name or tty, or the module could not open /etc/securetty. PAM_USER_UNKNOWN The module could not find the user name in the /etc/passwd file to verify whether the user had a UID of 0. Therefore, the results of running this module are ignored. EXAMPLES
auth required pam_securetty.so auth required pam_unix.so SEE ALSO
securetty(5), pam.conf(5), pam.d(5), pam(7) AUTHOR
pam_securetty was written by Elliot Lee <sopwith@cuc.edu>. Linux-PAM Manual 06/04/2011 PAM_SECURETTY(8)
All times are GMT -4. The time now is 04:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy