9 More Discussions You Might Find Interesting
1. AIX
Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies
2. UNIX for Advanced & Expert Users
I've been using various versions of UNIX and Linux since 1993, and I've never run across one that showed your password as you type it in when you log in, or one that stored passwords in plain text rather than encrypted. I'm writing a script for work for a security audit, and two of the... (5 Replies)
Discussion started by: Anne Neville
5 Replies
3. Solaris
hi
Actually the normal user as the permission of executing the passwd command due to suid program... eg consider the two users (normal user) as tom & jerry! when tom executes command as " passwd tom" no issue here...
In the same way when the same user tom uses the command as "passwd jerry" ... (1 Reply)
Discussion started by: sriniv666
1 Replies
4. Solaris
hi, has anyone here tried to recycle old passwords by copying something out of the passwd file and paste them back into the same passwd file ?
can it work this way ?
some of our applications passwords are expiring but they cannot be change due to application concerns, so therefore we must... (7 Replies)
Discussion started by: Exposure
7 Replies
5. Cybersecurity
Hi,
By reporting the process status with ps, any Unix user will see the command line arguments
#ps -ef
UID PID PPID C STIME TTY TIME CMD
lsc 13837 13825 0 May 11 pts/17 0:01 -ksh
oracle 4698 6294 0 12:00:40 ? 0:00 sqlplus -s system/manager
appluser 4229 4062 0 12:00:03... (2 Replies)
Discussion started by: bhagirathi
2 Replies
6. Linux
hai friends i have deleted passwd command using rm command i thought it will come again at the time of rebooting but it is completely deleted how to get it worked again (5 Replies)
Discussion started by: venkata.ganesh
5 Replies
7. Shell Programming and Scripting
Sorry for the duplicate thread this one is similar to the one in
https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
Discussion started by: rajan_san
4 Replies
8. Shell Programming and Scripting
I am working with the Oracle 10.2.0.3 job scheduler on Solaris 10, and unfortunately, the scheduler executes scripts in such a way that several default shell environment variables are not defined. For example, $HOME, $USER, and $LOGNAME are missing.
How can I parse the appropriate record in... (7 Replies)
Discussion started by: shew01
7 Replies
9. UNIX for Dummies Questions & Answers
Hello All,
I am working on Sco unix version 5.0.5.
The passwd command has somehow got corrupted and is only displaying the contents of the /etc/passwd file instead of changing the password.
I wanted to know if there is any other command through which you can change the password of a user from... (5 Replies)
Discussion started by: rahulrathod
5 Replies
mkpasswd(8) System Manager's Manual mkpasswd(8)
NAME
mkpasswd - Creates a version of the basic user database organized for efficient searches
SYNOPSIS
/usr/sbin/mkpasswd [-v] [-s size] passwdfile
DESCRIPTION
The mkpasswd command creates an auxiliary version of the basic user database in a form organized for efficient searches by the getpwuid
subroutine and the getpwnam subroutine. The mkpasswd command reads the user attributes in the /etc/passwd file and creates a hashed pass-
word database in the /etc/passwd.dir and /etc/passwd.pag files (see ndbm(3) reference page).
If you specify a file other than /etc/passwd, the command reads the user attributes in that file and creates a hashed password database in
the passwdfile.dir and passwdfile.pag files. It is important to know that the password file you designate must be in password file format
(see the passwd(4) reference page).
Note that if you use the vipw command to edit a password file, you do not need to use the mkpasswd command. This is because the vipw com-
mand automatically invokes the mkpasswd command which in turn creates the /etc/passwd.dir and /etc/passwd.pag files.
Only the root user should have execute access to the mkpasswd command.
Files accessed: File /etc/passwd /etc/passwd.pag /etc/passwd.dir passwdfile passwdfile.pag passwdfile.dir
The mkpasswd command may fail with a errno value of EFBIG if the password file is large (30,000 entries or more). This failure can be
avoided by using the -s option to set a larger page block size for the hashed database.
FLAGS
Specifies that each stored entry be listed on standard output Specifies the page block size to use in creating the hashed password data-
base. The size argument is a value from 1 to 32, representing page block sizes from 1024 to 32768, respectively. The default page block
size is 1024.
EXAMPLES
If you have not used vipw to edit the /etc/passwd and wish to generate a hashed password database, enter the following: /usr/sbin/mkpasswd
-v /etc/passwd An auxiliary version of the basic user database (/etc/passwd.dir and /etc/passwd.pag files) is created with a hashing algo-
rithm.
To create a hashed password database with a page block size of 8192, enter the following: /usr/sbin/makepasswd -s 8 /etc/passwd
SECURITY NOTE
If enhanced security is running on your system, the passwords are stored in the extended attributes database. See the Security guide for
more information about passwords in the enhanced security environment.
RETURN VALUES
The mkpasswd command exits with a nonzero exit code if any errors are detected.
ERRORS
If the mkpasswd request is not successful, the following error message is displayed: The passwdfile.dir and passwdfile.pag files already
exist from a previous execution of the same mkpasswd command.
FILES
Specifies the command path
RELATED INFORMATION
Commands: adduser(8), passwd(1), passwd(4), vipw(8)
Functions: getpwent(3), ndbm(3)
Manuals: Security delim off
mkpasswd(8)