Questions tagged [passwd]

Questions related to Linux 'passwd' command.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 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
155 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
44 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
144 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 ...
2
votes
1answer
196 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
20 views

Password troubles? [duplicate]

I recently installed ubuntu and after doing so I got the prompt to create a name and a password. for the password section, it wouldnt let me type, and I ended up retrying multiple times until it said ...
0
votes
0answers
73 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
1k 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
307 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
4k 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
99 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
32 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/...
5
votes
1answer
6k 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
24 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
259 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
78 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
906 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
669 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
321 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
31 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
900 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....
0
votes
1answer
4k 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?
4
votes
1answer
13k 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
4k views

Why does 'passwd' fail to change user's pw

** 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
315 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
1k 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
401 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
183 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
310 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
2k 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
6k 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
503 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
98 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
29 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.
14
votes
2answers
2k views

How to check which package created a user?

It is suspected that some packages have scripts run at install time which create user accounts in /etc/passwd. How can I check which package created a specific user?
0
votes
1answer
707 views

Cannot authenticate anymore after adding a line to common-auth

I have followed online advice to set a script that would run after a failed password attemp. I added the line in /etc/pam.d/common-auth auth [default=ignore] pam_exec.so seteuid /...
52
votes
2answers
9k views

Why does passwd command show “UNIX password”?

I am completely new to Linux. While I was watching a tutorial video about Ubuntu, I came across the command passwd. When I tested, it shows; (current) UNIX password: Enter new UNIX password: Retype ...
3
votes
2answers
857 views

Count the number of /etc/passwd entries that have no password?

How can I count the number of /etc/password entries that have no password?
3
votes
1answer
498 views

What happens if you do sudo passwd without specifying a user?

I wanted to change my own password (as an admin) so I did the following command: sudo passwd and then it prompted for a password but when I tryed to relog, my password was not changed. I'm now ...
1
vote
0answers
37 views

Why 'passwd' rejects my current password, which is accepted in my login? [duplicate]

I am using Ubuntu 16.04.1 LTS through the Oracle VM Virtualbox. At the beginning of my installation, I was asked to set a password for my login, which works perfectly every time I log in to my virtual ...
1
vote
1answer
1k views

How to skip user creation when installing

I am customising a Ubuntu Live CD. I want to skip the user creation step during installation and instead asks for a root password. Is it possible to do so? My workaround: create a user first, Then ...
1
vote
1answer
76 views

getting randomly generated passwd for Ubuntu 16.04 cloudimage

I am having a hard time getting the supposedly randomly generated passwd for the amd64 qcow2 image here: https://cloud-images.ubuntu.com/releases/16.04/release/ I found the (perhaps outdated?) ...
-1
votes
1answer
899 views

How to achieve sudo privilege in shell script? [duplicate]

how do I can achieve sudo privilege via the shell script without entering the password? Example: [user@user Desktop]$ ./script.sh [user@user Desktop]# which command should I try on the script.sh? ...
-1
votes
1answer
151 views

passwd succeeded, had no effect [duplicate]

I am using Ubuntu 14.04. I want to change the password of the root account. I tried the following procedure: Login with my own account (that has the sudo permission) sudo su root passwd Enter the ...
1
vote
4answers
4k views

How do I encrypt a new user's password using the useradd command?

I would like to create an encrypted login password for a new user while using the useradd command in the CLI. I know that using option -p will allow me to create a password, but using this option does ...
3
votes
1answer
92 views

Revert root passwd to its default “empty”

It is said to be more secure. Having root with a password, how do I revert it to be empty? This documentation is pretty explanatory: https://help.ubuntu.com/community/RootSudo And the command would ...
0
votes
2answers
1k views

parsing `/etc/passwd` to find root user, and whether user can run interactive shell

I want to parse /etc/passwd file to find out if the user has root privilege and can run interactive shell. according to UID 100-999 are reserved by system for administrative and system accounts/...