Questions tagged [passwd]
Questions related to Linux 'passwd' command.
123
questions
0
votes
1
answer
248
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
0
votes
0
answers
327
views
Ubuntu 22.04 - Accounts (including root) authenticate without a password prompt
Fairly new to Linux and have inherited a few Ubuntu 22.4 servers that permit autologin for all existing accounts. How do I disable autologin?
The following are noted behaviors:
Console login - type ...
3
votes
1
answer
1k
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:
...
1
vote
0
answers
272
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 ...
0
votes
0
answers
153
views
password permission denied when adding user with encrypted home directory
Upon entering a password after new password prompt appears for the command: sudo adduser --encrypt-home user_name, I get a message:
Then when I try to switch to the newly created user, I get this ...
4
votes
1
answer
371
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(...
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
253
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
1
answer
110
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
942
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
31
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
2k
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
1k
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
3k
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
91
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 ...
2
votes
1
answer
13k
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
196
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
42
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
363
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
373
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
27
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
716
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
431
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
959
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
808
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
289
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
186
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
928
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
759
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
285
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
4k
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
971
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
9k
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
133
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
154
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/...
13
votes
1
answer
18k
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
33
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 ...
2
votes
0
answers
990
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
639
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
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 ...
2
votes
2
answers
661
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
35
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
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....
1
vote
1
answer
9k
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
38k
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
8k
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
329
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 ...
1
vote
3
answers
3k
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
796
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 ...