Add new comment

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Submitted by infinity_dev (not registered) on Mon, 2008-12-22 05:43.
Warning: If you issue the command

sudo passwd -l root

you will not be able run Cron jobs as user root or add new users.
You will see "Authentication failure" messages in your syslog because the root account is marked as expired.

To fix this you have to edit your shadow file manually:

sudo vi /etc/shadow


Change the line similar to:

root:!:13919:0:99999:7::1:

to

root:!:13919:0:99999:7:::

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.