01-25-2010
Logging in does not write to the shadow file.
Record keeping of "last login" varies according to your Operating System and it is not always installed by default.
What Operating System do you have?
BTW. As hinted above, most Administrators would exclude non-user accounts (e.g. "oracle" or whatever) from such a policy because of the complex issues with automated tasks when the password expires.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok when I log in to my terminal I land in a dir. How can I change the dir that I start from when I login?
Thanks for the help, sure it is a no brainer for you guys
cd (5 Replies)
Discussion started by: lorcet222
5 Replies
2. UNIX for Dummies Questions & Answers
I want Red Hat Linux 7.2 prompt for new password at next login time.
How can I do this?????
passwd -f don't work for linux...... (4 Replies)
Discussion started by: rrivas
4 Replies
3. AIX
Hi,
I need to change some users login name in AIX. With solaris i donīt had problems, i have used "usermod". But in AIX the usermod command donīt have the same behavior. Can someone give me a tip on how to perform these changes?
Thanks in advance. (9 Replies)
Discussion started by: spacewalker
9 Replies
4. Shell Programming and Scripting
hi
by modifying /etc/shadow
how can I Force a change of password so that user has at least 1 week to login?
I did it by using:
echo "enter username to force password change"
read user;
chage -M 7 $user;
How can I do it by modifying /etc/shadow?? (6 Replies)
Discussion started by: tjay83
6 Replies
5. UNIX for Dummies Questions & Answers
I want to change login failure message, "login incorrect"
deny user login for user id tom
sudo passwd -l tom
type username and type password on login prompt
and then it will display login failure message "login incorrect"
console
############
login: tom
password:
login incorrect... (2 Replies)
Discussion started by: lifegeek
2 Replies
6. Post Here to Contact Site Administrators and Moderators
Hello,
How can i change my login ID? My login ID is younus_syed.
Thanks & Regards
Younus Syed (10 Replies)
Discussion started by: younus_syed
10 Replies
7. Post Here to Contact Site Administrators and Moderators
Hi,
Can I change my login id having my current account alive?
I found one thread related to this which shows that it is possible.
I also agree that this is not done in normal terms.
Still, can I request for it?
I really dont want to lose my current account and my post count.
would... (1 Reply)
Discussion started by: clx
1 Replies
8. Shell Programming and Scripting
Hi,
I have a script called from php, which executes the following code:
basename $arxivo .doc > nombre
nom=`cat nombre`
antiword -t $arxivo > $nom.txt
rm nombre
The problem is that I do not antiword conversion. I guess the problem must be that the user does not have permissions... (2 Replies)
Discussion started by: uri_crack
2 Replies
9. Solaris
Hi there,
Is there a way to ask the solaris user to change passwordo n the first login. I am looking at how to do this for every single new user. (5 Replies)
Discussion started by: alvinoo
5 Replies
10. UNIX for Advanced & Expert Users
Hello everybody !
At the beginning - I hope everything will be understandable as I know that my english skills are not as good as I would like.
I use Manjaro Linux for one year, previously used Ubuntu for 6 years. Today I got an idea to create small USB electronic device but I don't know how... (6 Replies)
Discussion started by: halfboy
6 Replies
pwconv(1M) System Administration Commands pwconv(1M)
NAME
pwconv - installs and updates /etc/shadow with information from /etc/passwd
SYNOPSIS
pwconv
DESCRIPTION
The pwconv command creates and updates /etc/shadow with information from /etc/passwd.
pwconv relies on a special value of 'x' in the password field of /etc/passwd. This value of 'x' indicates that the password for the user is
already in /etc/shadow and should not be modified.
If the /etc/shadow file does not exist, this command will create /etc/shadow with information from /etc/passwd. The command populates
/etc/shadow with the user's login name, password, and password aging information. If password aging information does not exist in
/etc/passwd for a given user, none will be added to /etc/shadow. However, the last changed information will always be updated.
If the /etc/shadow file does exist, the following tasks will be performed:
Entries that are in the /etc/passwd file and not in the /etc/shadow file will be added to the /etc/shadow file.
Entries that are in the /etc/shadow file and not in the /etc/passwd file will be removed from /etc/shadow.
Password attributes (for example, password and aging information) that exist in an /etc/passwd entry will be moved to the corre-
sponding entry in /etc/shadow.
The pwconv command can only be used by the super-user.
FILES
/etc/opasswd
/etc/oshadow
/etc/passwd
/etc/shadow
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
passwd(1), passmgmt(1M), usermod(1M), passwd(4), attributes(5)
DIAGNOSTICS
pwconv exits with one of the following values:
0 SUCCESS.
1 Permission denied.
2 Invalid command syntax.
3 Unexpected failure. Conversion not done.
4 Unexpected failure. Password file(s) missing.
5 Password file(s) busy. Try again later.
6 Bad entry in /etc/shadow file.
SunOS 5.10 9 Mar 1993 pwconv(1M)