- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how to enable expire root account -- plz help asa...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 06:48 AM
тАО04-24-2006 06:48 AM
OS: rhel 4
Mistakenly I have issue the following command
#chage -E 24-4-06 root
and root cant login now
second.. on another system I have deleted bash(/bin/bash)
Regards
Maaz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 07:19 AM
тАО04-24-2006 07:19 AM
Solution'chage root' on 1st box to reset the passwd security (this will be interactive so you can see the present values as well.)
On 2nd system, if you still have login prompt, get a copy of the /bin/bash from another system or from backup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 07:51 AM
тАО04-24-2006 07:51 AM
Re: how to enable expire root account -- plz help asap
Thanks
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 05:44 AM
тАО04-25-2006 05:44 AM
Re: how to enable expire root account -- plz help asap
(none)login:root
password:
and then again I got the login prompt
(none)login:
Plz help asap
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 06:10 AM
тАО04-25-2006 06:10 AM
Re: how to enable expire root account -- plz help asap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 06:17 AM
тАО04-25-2006 06:17 AM
Re: how to enable expire root account -- plz help asap
rm -f /bin/bash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 07:14 AM
тАО04-25-2006 07:14 AM
Re: how to enable expire root account -- plz help asap
on a system /bin/bash has deleted. Now I cant login on the system
(none)login:root
password:
and then again I got the login prompt
(none)login:
No backup :(
Plz help asap
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 07:40 AM
тАО04-25-2006 07:40 AM
Re: how to enable expire root account -- plz help asap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 08:16 AM
тАО04-25-2006 08:16 AM
Re: how to enable expire root account -- plz help asap
1- Edit the /etc/passwd file and change the shell.
2- Copy an existing shell to /bin/bash
For example:
cp /bin/ksh /bin/bash
cp /bin/csh /bin/bash
cp /bin/zsh /bin/bash
You can use any of these shells.
If you cannot boot in single user, edit the grub boot options, at the grub boot prompt press "a" and add:
init=/bin/ksh
Use any of the existing shells. If the root mounts read only, run:
mount -o rw,remount /
After that, boot in normal mode and reinstall the bash rpm from the CD:
rpm -ivh bash-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2006 05:50 AM
тАО04-26-2006 05:50 AM
Re: how to enable expire root account -- plz help asap
I boot the system in rescue mode, and the issue the following command:
chroot /mnt/sysimage
chroot: cant execute /bin/sh: No such file or directory
Thanks Dear Ivan Ferriera for help I followed ur intructions
1, edit the grub boot options by providing init=/bin/ksh as parameter
2, mount -o rw,remount /dev/hda2
3, then I installed the rpm from cd
Now Its working fine ;)
Regards
Maaz