Created
February 15, 2012 22:00
-
-
Save tryp/1839297 to your computer and use it in GitHub Desktop.
Modify /etc/shadow to allow unrestricted root login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /etc shadow fields are as follows: | |
# user:passwd:lastchange:minage:maxage:warndays:inactiveperiod:expdate:reserved | |
# remove root password, change requirement, and age restrictions | |
sed -e 's/^root:[^:]*:[^:]*:[^:]*:[^:]*:/root:::::/' -i etc/shadow | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment