Questions tagged [passwd]
53 questions
87
votes
4 answers
Does the root account always have UID/GID 0?
On all the Linux systems I've managed, the root account has a GID and UID of 0. Is this guaranteed, or is it possible that the system will give root a different ID?
Tanaki
- 1,487
51
votes
9 answers
Cannot lock /etc/passwd; try again later
With several commands in Linux, I get the error:
cannot lock /etc/passwd; try again later.
Does anybody know how to solve it? Also I don't get in my /etc/shadow directory.
Steaphann
33
votes
4 answers
Login with SSH user that has no password set
I have a user without a password set (i.e. passwd -d).
I would not like to use public keys on this setup.
Is there a way to SSH login to such a user?
user53335
- 377
28
votes
3 answers
What's all those users in the /etc/passwd file?
The /etc/passwd is supposed to have a line for every user on the system. Amongst the common username and root there is a bunch of other users. Some examples:
timidity:x:114:127:TiMidity++ MIDI sequencer…
Pithikos
- 1,654
24
votes
4 answers
Random password generator: many, in columns, on command line, in Linux
A while back, I came across a random password generator for the command line that displayed a grid of "memorable" passwords. Output was something like this:
adam@host:~$ CantRememberThisCommand
lkajsdf aksjdfl
kqwrupo qwerpoi
qwerklw …
user11088
7
votes
3 answers
If I use SSH with public keys, is it subject to the password expiration of my user account?
So if I'm using SSH with public/private keys to connect to a Unix box, and the password for my user account on that box expires, will I still be able to connect?
Fraggle
- 71
7
votes
3 answers
Trying to change a Ubuntu user's password, authentication token manipulation error
I'm trying to create a local user on a new Ubuntu box. I'm unable to change the password, and I keep getting the error below. The user gets added to the shadow file, but I can't get it to set a password. How can this be fixed?
admin@theserver:~$…
beagleguy
5
votes
2 answers
Prevent linux user from changing their password in ssh
How can I prevent users from changing their passwords? I still want to be able to change the passwords as root if necessary but keep the user from changing their password.
Vreality
- 204
4
votes
1 answer
Instead /bin/bash as a shell, /bin/passwd in /etc/passwd file
I'm a Unix support Admin and I have a rare situation here.
I have a recently adopted an environment that has a user with a /bin/passwd binary as a shell.
xxx:x:1:100:xx:/home/xx:/bin/passwd
Anyone have a clue about what is this for? Does this have…
rjdsantos
- 41
4
votes
1 answer
Renamed root in /etc/passwd and now sudo does not work
I accidentally modified the line for root in /etc/passwd and changed its named. To fix it I tried using sudo to modify this file, but it does not let me sudo because sudo can't find the root user since I renamed it.
II am on ubuntu.
aafc
- 43
- 3
4
votes
0 answers
How to set up user account from terminal in M1 Mac Big sur?
I am trying to set up a user account on a new M1 MacBook pro, in the terminal in recovery mode.
I use the following commands:
dscl . -create /Users/luser
dscl . -create /Users/luser UserShell /bin/bash
dscl . -create /Users/luser RealName "Lucius Q.…
user67257
- 141
4
votes
1 answer
Getting "pam_unix(sshd:auth): authentication failure" when updating password after password expires
When I expire a users password with chage -d 0 USER the user is able to log in and they are prompt with Current Unix password. When the user puts anything into the password the session is closed. inside the /var/log/secure there is a log entry…
user3808748
- 61
4
votes
2 answers
Reset user passwd when you don't know it
I have a small problem. I have shared keys setup on my domain, so I never type my password to login anymore.
I've forgotten my password now. This is a problem because only my user can sudo. Password authentication for root has been disabled, so…
warren
- 10,322
3
votes
3 answers
openSSH is ignoring the HOME env variable
I've been trying to sort out the Could not create directory issue with openSSH installed via cygwin, and have tried every solution I can find on the internet, but none of them are working...
I've installed cygwin, it appears to work. I installed…
will
- 141
3
votes
2 answers
Change User's Password using root
How can I change password of specific user using root account?
when you want to change your password, you can use passwd but how can I change the password of other users?
sheykholeslam
- 133