how to unlock passwd from the command âsudo passwd -l [user]â?

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I locked the passwd for a user by using the command,
sudo passwd -l [user]
Then, how do I unlock the passwd for this user?
passwd
add a comment |Â
up vote
0
down vote
favorite
I locked the passwd for a user by using the command,
sudo passwd -l [user]
Then, how do I unlock the passwd for this user?
passwd
1
Usually, you can consult the man page for a command in these situations. In your case, you could have typedman passwd, then type/unlockand hit Enter in order to search for the wordunlockin the man page. This leads directly to the option-u.
â Stefan Hamcke
Feb 3 at 17:54
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I locked the passwd for a user by using the command,
sudo passwd -l [user]
Then, how do I unlock the passwd for this user?
passwd
I locked the passwd for a user by using the command,
sudo passwd -l [user]
Then, how do I unlock the passwd for this user?
passwd
passwd
asked Feb 3 at 17:41
Smile
454215
454215
1
Usually, you can consult the man page for a command in these situations. In your case, you could have typedman passwd, then type/unlockand hit Enter in order to search for the wordunlockin the man page. This leads directly to the option-u.
â Stefan Hamcke
Feb 3 at 17:54
add a comment |Â
1
Usually, you can consult the man page for a command in these situations. In your case, you could have typedman passwd, then type/unlockand hit Enter in order to search for the wordunlockin the man page. This leads directly to the option-u.
â Stefan Hamcke
Feb 3 at 17:54
1
1
Usually, you can consult the man page for a command in these situations. In your case, you could have typed
man passwd, then type /unlock and hit Enter in order to search for the word unlock in the man page. This leads directly to the option -u.â Stefan Hamcke
Feb 3 at 17:54
Usually, you can consult the man page for a command in these situations. In your case, you could have typed
man passwd, then type /unlock and hit Enter in order to search for the word unlock in the man page. This leads directly to the option -u.â Stefan Hamcke
Feb 3 at 17:54
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
sudo passwd -u [username]
from man passwd:
-u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
sudo passwd -u [username]
from man passwd:
-u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).
add a comment |Â
up vote
4
down vote
accepted
sudo passwd -u [username]
from man passwd:
-u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
sudo passwd -u [username]
from man passwd:
-u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).
sudo passwd -u [username]
from man passwd:
-u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).
answered Feb 3 at 17:49
Alessio Trivisonno
563
563
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1002705%2fhow-to-unlock-passwd-from-the-command-sudo-passwd-l-user%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Usually, you can consult the man page for a command in these situations. In your case, you could have typed
man passwd, then type/unlockand hit Enter in order to search for the wordunlockin the man page. This leads directly to the option-u.â Stefan Hamcke
Feb 3 at 17:54