unix/mac questions about password changes or storage, the related `.passwd` file or `passwd` command
Questions tagged [passwd]
140 questions
-1
votes
1 answer
loop symbolic link passwd in shell script
in need to make a loop symbolic link to any file i want on any users i each ..!
i can use this command
awk -F: ' { p="/home/"$1; printf "%s\n%s\n%s\n",p"/public_html/example.php",p"/www/example.html",p"/tmp/example.txt" }' /etc/passwd | sort
but…

saba
- 35
- 1
- 10
-1
votes
1 answer
Passwd command linux
I have this situation:
I have read-only file system based linux. I have a problem that i want to change users passwords. I have moved shadow and passwd files to other partition so I thought i would do the trick. Yes now I can edit shadow file by…

Dainius
- 105
- 1
- 6
-2
votes
1 answer
parsing the /etc/passwd file for user IDs in a range and getting user names and paths
I am looking to parse an /etc/passwd file and take out only the users within a range of UIDs. I am not very good with functions it seems.
I found the following function, but can not seem to make it work.
from how to make PHP lists all Linux…

Mark
- 39
- 1
- 6
-2
votes
1 answer
Double file /etc/passwd in debian
in my server (Debian) I have a copy of this file
/etc/passwd
/etc/passwd-
/etc/shadow
/etc/shadow-
/etc/group
/etc/group-
why?

Alessio
- 1
- 1
-2
votes
3 answers
how to change the unix system password automatically after every week?
Can anyone tell me if it is possible to change the linux system password at a given time interval (ex. once every 7 days) using shell script or any other programming technique without explicitly changing it? The script should be running continuously…

user1838275
- 1
- 2