If so, you can force any user to change their password on their next login.
See the man page for the passwd command and, in particular, the -f switch. If doesn't matter whether the account is new or not.
Plenty of other 'security' options for the passwd command. Man page can be viewed on this forum.
Hope that helps.
On Solaris systems, the user database is frequently contained in /etc/passwd, but the command needed to change user's passwords and to change password expiration dates is probably /bin/passwd or /usr/bin/passwd; not /etc/passwd.
These 2 Users Gave Thanks to Don Cragun For This Post:
In Solaris there is no difference between /bin and /usr/bin
So is HP-UX
That depends on which Solaris release is being used. Other than the fact that this thread was posted in the Solaris forum, no operating system version has been provided.
I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login.
Following the provided link I attempted to update my password to one of my own... (1 Reply)
Hi All,
I have an SFTP server where there are user id's created for vendors and given only SFTP access for them (eg: given below)
jim.tran:x:10040:10008:abc.def@ghi.com:/dropbox:/bin/false
They cannot login to the server via SSH and can only do an SFTP. These users are set up as jailed... (1 Reply)
AIX 6.1
User has a password set.
It needs to be a blank password (no password).
smit passwd
enter user name
at change password and confirm password, just press ENTER
Afterwards, I could not log on with blank password or with original password.
How can I change the password to a... (2 Replies)
Hi Gurus
I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails.
Resetting my password reenables the keys.
Do i need to do something to avoid this scenario or is this... (2 Replies)
Hi Friends.
I am new to scripting now i want to change the root password using the script with standard password.
which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
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)
I'm tasked to change a user's password on multiple Linux systems (RH v3). I though copying the encrypted password from one Linux /etc/shadow file to another would work but I was wrong.
The long term solution is to establish an openLDAP Directory service, but for now I'm stuck with a manual... (1 Reply)