Questions tagged [passwd]

213 questions
63
votes
2 answers

Difference between ! vs !! vs * in /etc/shadow

The second field in the Linux /etc/shadow file represents a password. However, what we have seen is that: Some of the password fields may have a single exclamation :!:..... Some of the password fields may have a double exclamation…
JavaTec
  • 797
  • 2
  • 8
  • 11
42
votes
3 answers

Why is the password I entered not visible?

Below is the process I took to create a user on bash in Linux. $ sudo useradd Alexandra $ sudo passwd Alexandra Enter new UNIX password: Enter new UNIX password: passwd: password updated successfully I understand that the password shouldn't be…
Kaiylar
  • 617
  • 1
  • 7
  • 9
37
votes
3 answers

When did Unix stop storing passwords in clear text?

When did Unix move away from storing clear text passwords in passwd? Also, when was the shadow file introduced?
ZDOSA
  • 487
  • 4
  • 5
37
votes
4 answers

May I sort the /etc/group and /etc/passwd files?

My /etc/group has grown by adding new users as well as installing programs that have added their own user and/or group. The same is true for /etc/passwd. Editing has now become a little cumbersome due to the lack of structure. May I sort these…
Ned64
  • 8,486
  • 9
  • 48
  • 86
31
votes
2 answers

What is the bin user for?

As I wrote at https://unix.stackexchange.com/a/484626/5132 this is worthy of its own Q&A. On Linux operating systems … % getent passwd bin bin:x:2:2:bin:/bin:/usr/sbin/nologin % … and on FreeBSD … % getent passwd bin bin:*:3:7:Binaries Commands and…
JdeBP
  • 66,967
  • 12
  • 159
  • 343
29
votes
1 answer

Why would /etc/passwd be used every time someone executes `ls -l` command?

Read from APUE, just feel curious: The password file is used every time a user logs in to a UNIX system and every time someone executes an ls -l command.
Rick
  • 1,107
  • 1
  • 16
  • 29
24
votes
1 answer

How to find the hashing algorithm used to hash passwords?

I have the working password and can see the hash (/etc/passwd). How do I find the hashing algorithm used to hash the password, without manually trying different algorithms until I find a match?
Dorin Botan
  • 365
  • 1
  • 2
  • 9
24
votes
2 answers

Using "su - " to change user gives "No passwd entry for user"

Specifically, I am trying test something on my build server by switching to the "jenkins" user: sudo su - jenkins No passwd entry for user 'jenkins'
kevlarjacket
  • 407
  • 1
  • 4
  • 12
20
votes
1 answer

Why does Debian set the login shell of user sync to /bin/sync?

sync is one of the user account created by Debian itself. I'm wondering why Debian sets its login shell to /bin/sync instead of /bin/false. How does Debian use this user account?
Cyker
  • 4,174
  • 6
  • 34
  • 45
18
votes
3 answers

Lost password for a user on a Linux Server: How reset it?

On a Server an user 16040 has lost his password. I have password for root but don't have password for user 16040. How can I reset his password? With passwd 16040, unix ask me current password that I don't have. Is there a command for reset a user's…
Catanzaro
  • 281
  • 1
  • 2
  • 3
17
votes
1 answer

running git or ssh client in docker as user: No user exists for uid

Problem: I'm trying to run a git clone myuser@server:repo.git from within a docker container. Inside the container (due to policy) I am the same user as on the docker host system (non-root) and have my home mounted. Sadly when cloning from or trying…
Jörn Hees
  • 271
  • 1
  • 2
  • 5
15
votes
2 answers

How could I eliminate Kerberos for passwd?

When I issue a command to change my password like this: sudo passwd huahsin The system prompt me: Current Kerberos password: I don't know what I have done to the system configuration, how could I eliminate this Kerberos thing when I change my…
huahsin68
  • 1,847
  • 8
  • 22
  • 25
12
votes
4 answers

Will there be always a pair of same UID and GID?

I have to change a file/directory's ownership using chmod. I know only the owner's username but want to change the default group name simultaneously. At this stage the group name is not decided so I am putting same as the username: chown -R…
Akaks
  • 449
  • 1
  • 5
  • 10
12
votes
4 answers

"no such user" but user is in passwd file

Looking at the files in /etc/: /etc/group:lbutler:*:1005: /etc/master.passwd:lbutler:$6$s..../:1005:1005::0:0:L Butler:/home/lbutler:/bin/bash /etc/passwd:lbutler:*:1005:1005:L Butler:/home/lbutler:/bin/bash But: $ passwd lbutler passwd: lbutler:…
lbutlr
  • 737
  • 9
  • 26
12
votes
2 answers

Deleting a samba user: pbdedit vs. smbpasswd, what's the difference?

What is the difference between $ pdbedit -x and $ smbpasswd -x to delete samba users?
nieg
  • 123
  • 1
  • 1
  • 5
1
2 3
14 15