LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 01-02-2013, 05:25 AM   #1
amar.sree
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


--Amar
 
Old 01-02-2013, 05:41 AM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Slackware
Posts: 1,090
Blog Entries: 4

Rep: Reputation: 267Reputation: 267Reputation: 267
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
amar.sree
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
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 36
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
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 275

Rep: Reputation: 46
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
amar.sree
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/pam.d.su,/etc/pam.d/su -i and /etc/pam.d/system-auth files.


Thanks for all replies

Amar
"The belief in a thing makes it happen."
 
  


Reply


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/Novell 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


All times are GMT -5. The time now is 02:47 AM.

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