Skip to main content

Questions tagged [passwd]

Questions related to Linux 'passwd' command.

Filter by
Sorted by
Tagged with
0 votes
1 answer
73 views

Deleted password for my user on VPS, but still asks for password (locked out)?

I just bought a VPS plan with my hosting provider. I did all the necessary measurements for security and disabled root ssh login, created a custom myuser in the sudoer group etc.. so far so good. But ...
glades's user avatar
  • 107
0 votes
0 answers
60 views

What is the correct approach to unlock a disabled login user?

When is executed the sudo adduser <username> --disabled-login command, is created an user being locked because is disabled login. It can be confirmed with the passwd -S <username> command ...
Manuel Jordan's user avatar
0 votes
0 answers
33 views

Revert "sudo passwd -d `whoami`" [duplicate]

I have followed the steps here to remove the password from an Ubuntu account. Now I want to change it all back. I have already removed the line david ALL=(ALL) NOPASSWD:ALL But don't know how to ...
John Carter's user avatar
-1 votes
1 answer
152 views

Forgot Password But have SSH key access

I have SSH key access to my homelab ubuntu machine from my main computer and I didnt have to use the password for months. Now I am trying to access the machine from my laptop but I have forgotten the ...
Gary Tanz's user avatar
1 vote
1 answer
3k views

passwd command outputs 'password unchanged` when the password was changed

I'm running on Ubuntu 20.04 server and trying to change the password of the current user using passwd command. This is the output I get: Changing password for ubuntu. Current password: New password: ...
droritzz's user avatar
1 vote
2 answers
4k views

What is the default password encryption method used in ubuntu 20.04

What is the default password encryption method used in ubuntu 20.04? is it different from 18.04 LTS
Shaik Musthafa's user avatar
5 votes
1 answer
7k views

How to clear password history in Linux?

How do I clean the history of previous used passwords? The history which is used by passwd or whatever else? I see: t-account@dbg-host: ~ $ passwd Changing password for t-account. Current password: ...
Asc's user avatar
  • 93
1 vote
0 answers
448 views

passwd command - not working properly

After adding my Ubuntu 20.4.1 to the domain and enabling the login from adsys and pam package, the passwd command gives that the password was changed successfully without prompting to enter a new ...
Imad Douaihy's user avatar
4 votes
1 answer
458 views

Why is there no member in a primary group of the same as group user?

I have default user that i've created when installed ubuntu ubuntu@primary:~$ id uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),120(lpadmin),132(...
it4545454545's user avatar
0 votes
0 answers
19 views

Creating New password administrator [duplicate]

I'm in the root I'm at enter new Unix password it doesn't show and when I hit enter it says same exact thing pas
Lorretta Teal's user avatar
0 votes
0 answers
466 views

If user is not in /etc/passwd, can he list the contents of a folder?

I am running docker container with --user <user-id>:<group-id> option. The user-id is not in /etc/passwd. That is ok. But I want to list the contents a folder. ls /root The root folder ...
vijayst's user avatar
  • 101
0 votes
1 answer
211 views

How do I use the command passwd to set a password for user the user01?

Using command line, what do I type to create the password 123xyz for the user named user01?
bilsch01's user avatar
2 votes
0 answers
2k views

Authentication token manipulation error after upgrade from 16.04 -> 18.04 -> 20.04

Introduction I recently upgraded the Ubuntu release from 16.04 to 18.04 to 20.04 and after completing the upgrades and fixing outstanding issues with apps that were running on that local development ...
nicks6853's user avatar
0 votes
0 answers
32 views

After I set file permission to 0600 on /etc/passwd, my linux vm failed to boot [duplicate]

I'm definitely new to Linux. Build a Linux Ubuntu vm in Azure for syslog purposes. Microsoft security configuration recommend /etc/passwd- file permissions should be set to 0600. As soon as I did ...
Kit Cheng's user avatar
0 votes
2 answers
3k views

Where is the apache2 directory on Ubuntu 20.04?

In order to activate the Basic Auth I installed apache2-utils: sudo apt-get update -y sudo apt-get install -y apache2-utils but I can't find the /etc/apache2 directory. I uninstalled and reinstalled ...
a a's user avatar
  • 3
-4 votes
1 answer
2k views

Display the username and passwords fetched from etc/passwd and etc/shadow files in a single file using cut and paste commands [closed]

i want username and password fetched from etc/passwd and etc/shadow files in a single file using cut and paste commands
bir's user avatar
  • 1
1 vote
2 answers
4k views

useradd: cannot open /etc/passwd

I am facing create a new user on my ubuntu 20.04 from GUI as well as terminal. I am getting following error: sahadeb@HP-Elite-Book:~$ sudo adduser user1 Adding user `user1' ... Adding new group `user1'...
sahadeb barman's user avatar
-1 votes
1 answer
96 views

simple paranoid question about sudo and passwd [duplicate]

using Linux at my home place, i wonder what if the end-user, say having just installed/deployed say Ubuntu, typed just (being messy while searching for the command, and thinking it's shorter so it's ...
Pain Perdu's user avatar
2 votes
1 answer
22k views

How to reset an user password without knowing his current password? [duplicate]

A colleague has just resigned. And his account is being used as a build account on our Ubuntu 16.04.6 LTS. Is there any way to reset his password without knowing his current password? I have tried ...
Tuan's user avatar
  • 121
0 votes
1 answer
232 views

I Can't Log In to my Account after Password reset

I forgot the password to my admin account in ubuntu, I googled how to reset ubuntu admin password, then did the following steps from the tutorial that I found online Enter Recovery Drop to root shell ...
Lucas's user avatar
  • 13
0 votes
0 answers
65 views

cant type password when using passwd command

when i use the passwd command i get this output: Changing password for root Enter the new password (minimum of 5 characters) Please use a combination of upper and lower case letters and numbers. Bad ...
Toaster's user avatar
0 votes
0 answers
367 views

I can not open Ubuntu

I am using Ubuntu 20.4 LTS. After changing my password with sudo passwd username, this code and got problem. I reboot to test the password but it stuck with: sda6: clean xx/xx file, xxx/xx block. How ...
shahed chowdhury's user avatar
1 vote
1 answer
759 views

PAM pwhistory module is not prompting for choose another password if password has been already used

I want set history password reusability limit. I am trying to use pwhistory pam module. Below is configuration in /etc/pam.d/common-password file in Ubuntu (VERSION 20.04.1 LTS) password ...
Oomph Fortuity's user avatar
0 votes
0 answers
30 views

I lost my user password [duplicate]

Help I have inherited this old computer from my grandfather and I have no clue what the password is and without the password it will not update. does anybody know how to change the user password ...
scharf03123's user avatar
1 vote
1 answer
909 views

sudo constantly asking for password with LDAP SSH user

I'm using Ubuntu 16.04, just upgraded sudo from version 1.8.16 to 1.9.5p2. When I SSH to server by LDAP account, I try to run some sudo command, the server require to input password constantly, I'm ...
Tien Dung Tran's user avatar
0 votes
1 answer
594 views

Cannot login to Ubuntu after changing home directory

I recently tried changing my home directory from /home/henry to /hdd/home/henry using viwp passwd. /hdd is a separate hard drive. I then rebooted the system but I cannot log in. I get the login ...
HenryM's user avatar
  • 187
3 votes
0 answers
1k views

Chromium and Chrome stored credentials are not showing up under "saved passwords"

for some reasons my already stored passwords are not visible under saved passwords, it just shows "saved passwords will appear here" but they are there, the sql file is where it should be, ...
Michael's user avatar
  • 11
0 votes
0 answers
1k views

getent returns different value than /etc/password

I'm running into an issue where the /bin/bash shell doesn't load for a new user. It says Could not chdir to home directory /bin/bash: Not a directory -sh: /bin/bash/.profile: Not a directory So I ...
Aaron Chamberlain's user avatar
0 votes
0 answers
310 views

Mimic deluser command in linux

To delete a user without deluser in linux we have to do these things Remove user from etc/passwd Remove user from etc/shadow Remove user's directory from /home/ (I used sudo rm -rf /home/username) I ...
vishwas .r's user avatar
0 votes
0 answers
263 views

I can't get of this error and end up in tty mode after I start my system

/var/lib/dpkg/info/passwd.postinst: 21: grep: not found groupadd: group 'shadow' already exists Group ID 42 has been allocated for the shadow group. You have either used 42 yourself or created a ...
Skill Star's user avatar
2 votes
2 answers
2k views

Ubuntu 16.04LTS - pwquality.conf & pam_pwquality registering incorrect passwords, but approves them anyway

I'm working on implementing password quality requirements in Ubuntu Server 16.04LTS. I have configured 'pwquality.conf' with the requirements and '/etc/pam.d/common-password' to add pam_pwquality.so ...
dcdb's user avatar
  • 21
3 votes
1 answer
867 views

Use sudo in combination with libnss_switch

I implemented libnss_wrapper in the entrypoint of a docker container, in order to "create" the user passed via docker run -u UID. This script also creates a /etc/sudoers.d/USER file to allow sudo ...
darkdragon's user avatar
0 votes
0 answers
360 views

Regex for /etc/passwd Content

I have a collection files from many systems in my enterprise in a store directory (/store/) and I wanted to find all of the passwd files and cat them out to a single file. Intuitively, the command I ...
Lexicon's user avatar
  • 337
10 votes
1 answer
5k views

Why sudo passwd username keeps asking for the current password [duplicate]

I am in a bizarre situation, that I can't reset user's password on my machine (Ubuntu 16.04) using eighter sudo passwd username or passwd username from the root account. root@adam-minipc:~ # passwd ...
Adam Ryczkowski's user avatar
2 votes
0 answers
1k views

M.2 WD Blue 1TB SSD locked with ATA password - how to unlock via Linux?

Well, I have an M.2 SSD with 1TB of capacity, that was locked by the user in his Fujitsu U Series laptop. Then the motherboard died and was replaced. Both the passwords master/user are unknown. The ...
Jiří Šmidák's user avatar
2 votes
2 answers
12k views

Reset owner password on Ubuntu 18.04 single-boot Dell laptop

In trying to reset my password on my personal Ubuntu 18.04 single-boot Dell laptop, I followed various steps in the 15 answers here. Unfortunately, none of them work for me. Around steps 7 and 8 my ...
Karl Baker's user avatar
1 vote
0 answers
159 views

Deleting password works like passwd -l instead of enabling user to log in without it (Ubuntu 18.10)

I deleted user's password using sudo passwd -d username. In Debian it enables user to log in to his account without need to type the password (su username simply opens new shell for chosen user). In ...
nalxis's user avatar
  • 11
1 vote
2 answers
259 views

When changing the password for a user on my system, why does the size of /etc/shadow never get bigger or smaller?

When changing the password for a user on my Ubuntu system, I've noticed that no matter the length of the password that I choose the /etc/shadow file will always stay the same size and never increase/...
elliott94's user avatar
  • 135
13 votes
1 answer
20k views

Alternative to passwd --stdin in Ubuntu

I'm attempting to migrate an OpenVPN server from a CentOS box to an Ubuntu 18.04 one. There is a script which creates new VPN users. Part of this is that it generates a new password for the user and ...
shaneoh's user avatar
  • 347
0 votes
0 answers
34 views

Bash script to automaticly change a given user's password [duplicate]

So, I know that the passwd command allows me to change my own password, and if run with sudo, allows me to change anyone's password, but what if I want a script to do it? I have a script that grabs a ...
Tech_Person's user avatar
2 votes
0 answers
1k views

Is there way to reset password if you can only login via ssh keys?

I don't know why but somehow my password no longer works. For example, I cannot do "su myself". I can still login via ssh keys. In such case, is there way to reset password?
user276851's user avatar
0 votes
1 answer
916 views

Get pwd EXPIRE_DATE

I am trying to get EXPIRE_DATE of pwd for an active directory user in ubuntu. I can get information about the user with lslogins user but no information about password expire dates that are set in AD. ...
Pierre Den Gode's user avatar
0 votes
1 answer
2k views

Ubuntu 16.04, pbis, authentication token manipulation problem

I have a huge problem with my Ubuntu since I tried to change the password. My Desktop is connected with a windows domain using pbis-open. From time to time I have to change my domain password and ...
AltruisticDelay's user avatar
1 vote
2 answers
2k views

I changed the username by changing /etc/passwd

I did something REALLY silly - I did ... sudo vi /etc/passwd Then I changed the username to the user I wanted, I exited the file. Now - the user password no longer matches, I can't change the ...
Sam Lamanite's user avatar
2 votes
2 answers
816 views

Cron not launching jobs?

This is a non-standard installation of Ubuntu 18.04, the ELAR Arm based Ubuntu distribution with RockChip support for boards such as the Asus tinkerboard. The Problem, and solution, may not apply to ...
j0h's user avatar
  • 14.9k
0 votes
1 answer
39 views

How to change to log in with password in 17-10.1?

I installed Ubuntu 17.10.1 to log in automatically without password. I would now want to set a password for logging in . I tried to do this but after change could not log in . How to do this properly?...
Kirby-1989's user avatar
0 votes
2 answers
2k views

Allow a user to change his password on a chrooted environment

I'm trying to setup a chrooted ssh and sftp server under Ubuntu server 16.04.3 LTS. I followed this tutorial: https://rp29blog.wordpress.com/2016/06/26/setting-up-chroot-sftp-and-ssh I got it working....
user795630's user avatar
1 vote
1 answer
10k views

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

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?
Smile's user avatar
  • 1,109
5 votes
1 answer
46k views

usermod: cannot lock /etc/passwd

I get this massage: usermod: Permission denied. usermod: cannot lock /etc/passwd; try again later after trying to add myself to audio group by: usermod -a -G audio USERNAME. I would be grateful for ...
ijonfryderyk's user avatar
0 votes
1 answer
10k views

Why does 'passwd' fail to change user's pw [duplicate]

** Term-control chars edited out: Script started on 2017-12-01 06:51:43-0500 /etc/bash.bashrc ~root/.bashrc declare -x PATH="/root/sbin:/usr/local/sbin:/usr/sbin:/sbin:/root/bin:/root/.emacs.d/term-...
superbiskit's user avatar