unix/mac questions about password changes or storage, the related `.passwd` file or `passwd` command
Questions tagged [passwd]
140 questions
0
votes
1 answer
Perforce: How to change the password length requirement?
I'm looking to change the password of a user in perforce to something that is 7 characters, but I get the message:
Password should be at least 8 characters in length.
I know this can be changed, but I'm not sure how. Thank you very much for any…

Smeltdown
- 354
- 3
- 7
0
votes
3 answers
passwd in one command isn't working
I developed a tool to send one-line commands to different linux machines in one shot using JSch (A java library used to communicating with other machines over ssh)
So our client needs to change the password on ALL machines. Google helped me reach…

Muhammad Gelbana
- 3,890
- 3
- 43
- 81
0
votes
3 answers
Send email when user changes password
I have a remote server to which I login using ssh. Is there a way to be notified through email (using a bash script) when someone changes the user password using passwd including the new password?
I am guessing it has to do with /etc/pam/passwd, but…

masimplo
- 3,674
- 2
- 30
- 47
-1
votes
2 answers
extract UID from /etc/passwd using RegEx
I would like to extract UID from /etc/passwd file which looks like this-
www-data:x:33:33:www-data:/var/www:/bin/sh
The problem I'm facing is that even if I match first 33, the second 33 (GID) is also getting matched. How I match first occurrence…

user837208
- 2,487
- 7
- 37
- 54
-1
votes
1 answer
how to change user password in ubuntu using xargs
I need to change the password of "vtm" user to "abcd12345" by using xargs command.
so I wrote this comman
printf "vtm abcd12345 abcd12345" | xargs -t -n1 passwd
but I couldn't change it.

Vitamin
- 21
- 4
-1
votes
1 answer
I accidentally deleted /usr/bin/passwd. How can I reinstall it?
I tried
apt-get install passwd --reinstall
But it says
Reinstallation of passwd is not possible, it cannot be downloaded.
Help please. I have no backup of this.
Debian version:
root@localhost# lsb_release -a
No LSB modules are…

Bloo Serpent
- 9
- 1
-1
votes
1 answer
Unable to change etc/passwd in Ubuntu for Windows
I'm running Ubuntu for Windows, and I created a second user. I go into the users /etc directory to edit the passwd file so that I can use a custom shell on login, but there are some problems.
Running emacs passwd doesn't allow me to make changes for…

Threshold19
- 107
- 7
-1
votes
1 answer
How to check if the /etc/passwd file in Linux contains invalid entry?
I am trying to determine if the passwd file present in the location /etc/passwd in Linux contains any invalid data entries with the pwck command.
For example:
1) If my file contains this entry which is invalid due to the extra colon in the end -…

coder
- 33
- 9
-1
votes
1 answer
How to return "You have been logged in!" knowing a password but not UserID?
I have a basic Linux authentication program compiled, but I do not understand what it requires to return "You have been logged in!". I know a password entry, but not the associate UID.
#include
#include
#include…

oniera
- 23
- 1
- 3
-1
votes
1 answer
How to compare 2 files and print out only selected info?
I am trying to compare these 2 files and only print out what I need as the desire output.
File1:
012345:x:9012345:9012345:John Smith:/home/bin/bash
543210:x:9876543:9876543:Troy Denver:/home/bin/bash
111111:x:9898989:9898989:Mathew…

LNL
- 5
- 2
-1
votes
1 answer
What does "nam" in getspnam, getpwnam, etc. stand for?
It looks like "nam" means "item" or "entry" in the context of getpwnam or getspnam. What exactly does it stand for?

Jay
- 998
- 2
- 15
- 24
-1
votes
1 answer
docker container - ssh adduser passwd
I've built a script "createcontainer.sh" to automatically create a container. I call the script as follows:
./createdocker.sh newuser newpass
Internal to the script, the two arguments are assigned to variables as follows:
USERNAME=$1 <--…

Dan
- 331
- 6
- 17
-1
votes
2 answers
Server vsFTPd connection failed
I am trying to connect on ftp localhost but the login/password always fail.
I have installed vsFTPd.
I guess i have to modify passwd.conf. But how must I process?
I have this line :
paul:x:1000:1000:paul,,,:/home/paul:/bin/false
Thank you!

Gaëtan Navez
- 37
- 1
-1
votes
2 answers
Modifying correct group name and ID within /etc/group file
I am passing 2 parms to a bash script. The first parm is group and the second parm is the groupID.
I want to write a bash script that will check if group is present in /etc/group or not.
If not present, then the script should add group and gid to…

meallhour
- 13,921
- 21
- 60
- 117
-1
votes
1 answer
Solaris 10 - password complexity not working
I have been trying to enable password complexity variables on Solaris 10 by editing the /etc/default/passwd file but none of my changes are taking effect (I'm still able to set passwords that violate the rules I am trying to implement).
I've tried…