Questions tagged [passwd]

Questions related to Linux 'passwd' command.

Filter by
Sorted by
Tagged with
-1
votes
0answers
27 views

How can I change the root password?

I use this command openssl passwd (then add my new password) to change the root password and took the new one then add it in /etc/passwd between the two :: in the root line I didn't do anything else ...
0
votes
1answer
47 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 ...
0
votes
1answer
72 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 ...
1
vote
0answers
22 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 ...
0
votes
0answers
350 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 ...
0
votes
0answers
43 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 ...
0
votes
0answers
25 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 ...
1
vote
1answer
139 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 ...
0
votes
1answer
46 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 ...
0
votes
0answers
18 views

Password doesn't change on Ubuntu Server 16

I just installed it and ran $ sudo passwd, and during root too, both said successful, rebooted, and still the old password, same with root. Update: now for some reason it worked. My might it have ...
2
votes
0answers
515 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, ...
0
votes
0answers
69 views

Cannot Log In as other user in Ubuntu 20.04

I have created a guest user as root from my current account by useradd guestAccount passwd guessAccount Then I logged out from my current accout by gnome-session-quit --no-prompt. Then when I log in ...
0
votes
0answers
140 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 ...
0
votes
0answers
72 views

Forget the password [duplicate]

I forgot the terminal password, so how to break the terminal password? I know the account password but when I install something from terminal it asks a password which I forgot.
0
votes
0answers
177 views

New server install on RPi3: “passwd: Authentication token manipulation error”

I thought I'd give Ubuntu a try on my RPi3 that I'm planning to run Pi-Hole on... I followed the Ubuntu tutorial here. I used the 32-bit "recommended" option. When I login, I get this error: "passwd: ...
0
votes
0answers
217 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 ...
0
votes
0answers
65 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 ...
2
votes
1answer
317 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 ...
3
votes
1answer
487 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 ...
0
votes
0answers
162 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 ...
8
votes
1answer
2k 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 ...
1
vote
0answers
505 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 ...
1
vote
2answers
6k 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 ...
1
vote
0answers
118 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 ...
1
vote
2answers
40 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/...
8
votes
1answer
10k 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 ...
0
votes
0answers
27 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 ...
1
vote
0answers
608 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?
0
votes
1answer
235 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. ...
0
votes
1answer
1k 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 ...
1
vote
1answer
922 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 ...
2
votes
2answers
411 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 ...
0
votes
1answer
32 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?...
0
votes
2answers
1k 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....
1
vote
1answer
5k 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?
5
votes
1answer
20k 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 ...
0
votes
1answer
6k 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-...
1
vote
0answers
320 views

Cannot change password for local account [duplicate]

I have a non-root, local account where I have been unable to use 'passwd' as user root to change that password. The system is an AWS instance running Ubuntu 14.04 bound to Active Directory using both ...
0
votes
3answers
2k views

How to list “loginnable” users? [duplicate]

When I start Ubuntu there is a list of users I can click and enter the password for to log in. How do I get a list of these users? I tried to get users from the /etc/passwd file by doing this: cut -...
1
vote
3answers
482 views

What stops someone from setting root password?

From what I can tell there is no password for root given by default, and it's considered a bad idea to set one. But then what stops me or any other user from doing sudo passwd root or something like ...
0
votes
1answer
1k views

Cannot bypass the password? [duplicate]

I forgot my Ubuntu password. I followed the steps given on your sites and I almost reached the end, but then my computer said: passwd: authentication token manipulation error I tried to do it again ...
1
vote
1answer
1k views

Cannot login with a password

I am running Ubuntu 16.04.2 LTS on an iMac. I am the administrator of six users, and none of them can login with a password. Only the administrators with sudo privs can use a password. When you try ...
0
votes
1answer
232 views

How to change passphrase by pasting a new long character string into the gpg-agent

I have a DELL XPS running Ubuntu 16.04 LTS. The copy and paste function appears to be disabled when using the gpg-agent. Using gpg2, how can one copy and paste a long passphrase from a text file into ...
2
votes
1answer
430 views

users with bin/bash access

I was following the guide here and listed all users in passwd. There I found the following problems: /bin/false aparently allows channels and some form of forwarding nm-openconnect:x:122:130:...
2
votes
0answers
3k views

User is not in passwd and shadow file but when getent passwd user it shows

User is not in /etc/passwd and /etc/shadow file but when I "getent passwd userSec" it shows the account details. [root@myServer systemadmin]# getent passwd userSec userSec:...
0
votes
1answer
10k views

Why can't I type a new password after I've entered the “passwd” command? [duplicate]

I see "enter new UNIX password" but I can't type the new password. No keys work; the only thing I can do is hit the enter key which takes it a step further to the "Retype new UNIX password" prompt. ...
9
votes
2answers
2k views

Why can I start a root shell with sudo even with a '! ' in its shadow entry?

$cat /etc/passwd |grep -i root root:x:0:0:root:/root:/bin/bash $sudo cat /etc/shadow |grep -i root root:!:17179:0:99999:7::: In the second field of shadow file, ! means root user cannot login but ...
1
vote
0answers
548 views

Hosted Ubuntu 14.04.3 LTS Rescue Mode (no Grub) cannot reset root password

We need to reset the root password on a remotely hosted Ubuntu VM. There is no known sudo-account available. We only can access the VM via a web-based console. Using the Shift-key at boot time to get ...
0
votes
1answer
103 views

Need advice on /etc/passwd

I am very new to Ubuntu but im picking up the coding relatively quickly --- I have Matlab/arduino experience... While attempting to set up a VPN, my brother decided to type ctrl-z while I was ...
1
vote
0answers
30 views

What are the default user accounts created by Ubuntu? [duplicate]

Knowing this would be very helpful for detecting suspicious user accounts as early as possible.