Questions tagged [passwd]
Questions related to Linux 'passwd' command.
118
questions
0
votes
0
answers
18
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
0
votes
0
answers
41
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 ...
0
votes
0
answers
44
views
Problems with passwd in recovery mode. Every entry has no effect, shows 'options' each time
I have forgotten my password, so I am trying to reset it in recovery mode. When I drop down to shell through the recovery mode menu, I make the system read/write:
mount -o remount,rw /
then, when I ...
0
votes
1
answer
70
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?
2
votes
0
answers
216
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 ...
0
votes
0
answers
29
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 ...
0
votes
1
answer
422
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 ...
-3
votes
1
answer
699
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
1
vote
1
answer
2k
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'...
0
votes
1
answer
72
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 ...
0
votes
1
answer
5k
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
1
answer
135
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
0
answers
27
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
0
answers
358
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 ...
1
vote
1
answer
162
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
0
answers
26
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
1
answer
499
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
1
answer
248
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 ...
3
votes
0
answers
802
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
0
answers
467
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
0
answers
256
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
0
answers
101
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
2
answers
604
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
1
answer
657
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
0
answers
241
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 ...
9
votes
1
answer
3k
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 ...
2
votes
0
answers
715
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
2
answers
8k
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
0
answers
121
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
2
answers
68
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/...
12
votes
1
answer
15k
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
0
answers
30
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
0
answers
847
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
1
answer
468
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
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 ...
1
vote
2
answers
1k
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
2
answers
544
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
1
answer
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
2
answers
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
1
answer
7k
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
1
answer
30k
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
1
answer
7k
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
0
answers
328
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
3
answers
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
3
answers
649
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
1
answer
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
1
answer
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
1
answer
266
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
1
answer
585
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
1
answer
4k
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:...