Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-02-2013, 05:25 AM   #1
LQ Newbie
Registered: Feb 2012
Location: india
Distribution: Redhat
Posts: 18

Rep: Reputation: Disabled
after giving for sudo su - command,it is prompting to change root passwd

Hi All,

I have been facing a problem from past 1 week.I have declared root id as shared ID and set root age to 0 (chage -d 0 root, as a part of security policies laid by company.

Now when i am using sudo su - command,i am unable to login and it is prompting me to change root password immediately.If i change the root password,root cron jobs are not excuting.

what parameters should i have to consider,so that my root cronjobs should not be affected even after root passwd change,and sudo login should not be affected.

Thanks in advance

Old 01-02-2013, 05:41 AM   #2
Randicus Draco Albus
Senior Member
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,669
Blog Entries: 8

Rep: Reputation: 601Reputation: 601Reputation: 601Reputation: 601Reputation: 601Reputation: 601
It might help to know which distribution you are using. I do not know about Red Hat-based and other systems, but with Debian-based systems, su and sudo are different. I interpret your wording to mean you are entering both: sudo su. Only guessing, but could that be part of the problem?
Old 01-02-2013, 05:45 AM   #3
LQ Newbie
Registered: Feb 2012
Location: india
Distribution: Redhat
Posts: 18

Original Poster
Rep: Reputation: Disabled
I'm using Red Hat Enterprise Linux Server release 5.7 (Tikanga)
Old 01-02-2013, 11:50 AM   #4
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
Hi amar.sree,

1) Just curious, what is meant by "declaring root ID as shared ID".
2) I dont know if the following would suit your environment :
that is, do not set password for root user, but to use key-based authentication for root user so that you could avoid the "chage -d 0" issues for root user.
3)Please check if root user password being mentioned in cron jobs, If not used, then the crons should be running fine.

Last edited by saagar; 01-02-2013 at 11:52 AM.
Old 01-02-2013, 12:27 PM   #5
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
The command that you are running changed the expiration of root's passwd to 0 so it is expecting you to set a new password now. Basically you have expired root's password.
Old 01-06-2013, 11:24 PM   #6
LQ Newbie
Registered: Feb 2012
Location: india
Distribution: Redhat
Posts: 18

Original Poster
Rep: Reputation: Disabled
Hi grim,

yes,root password is expired and my requirement is with expired root password also i should be able to perform sudo su -.

Even with expired root password, i was able to execute any command with sudo <command>.but it was not allowing to sudo su - login.

IS it possible by making changes in /etc/,/etc/pam.d/su -i and /etc/pam.d/system-auth files.

Thanks for all replies

"The belief in a thing makes it happen."


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo cd /root gives 'sudo: cd: command not found'. stf92 Linux - Newbie 4 03-03-2012 09:05 AM
Unable to login using root after changing root password using passwd command rodimail SUSE / openSUSE 3 12-27-2011 10:34 PM
root cannot use passwd command to change NIS password thelinz Linux - Server 4 11-16-2011 01:25 PM
trying to change root password with the passwd command he04798 Red Hat 5 01-17-2010 11:01 AM
sudo passwd root error on latest downloaded distro Dragunov Ubuntu 6 01-26-2007 05:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration