Something like this should work. This probably isn't the best written shell script you're ever gonna see but I just knocked it out and it works for me
Read the comments in the code to see what each part is doing.
Since you say you want to "automate" this change I'm thinking it's going to be done on a regular basis so my opinion is to add it to the crontab for root, or someone who has privileges to change user passwords. I don't know how much you know about crontabs and their purpose and so on but you can just search the forum/google and you should see plenty of examples. If you wanted to schedule the job to run at midnight on the first of every month your entry into the crontab might look like this:
This User Gave Thanks to _Spare_Ribs_ For This Post:
Is there anyway that I can reset user's password using a script/ssh command?
ie. emulate passwd command with a default password of abc123 or even null value?
> ssh server1 pwdadm user1 < /dev/null
or
> ssh server1 passwd user1 < /dev/null
neither worked for me.. but you know what I... (1 Reply)
All,
I have a Solaris 9 system and I would like to create a script that would reset the password of a local user to something specific on a daily basis.
Someone suggested the following:
passwd --stdin username < passwd_file
However, this doesn't work on Solaris.
Does anyone know of... (3 Replies)
Hey all,
I'm looking for a script to auto-generate a password for users that forget their password.
Currently, we are using a perl script (with cgi-bin) where users update their password, but would like to add to this and make it so that the users can also request a password reset and a... (1 Reply)
Hi folks,
How can we reset the password via shell script...
How can i manage to pass password for the prompt.
gws000i010:/ # passwd test1
New Password: (1 Reply)
Hi all, Please suggest
I want to write a scritp which will send a email to my mail address before the time duration of the password reset,
Should write mail stating that your password will expire in so and so days""
Rgds:b:
Ann. (2 Replies)
i am doing automation of report in unix. i am copying files from different server using scp command.. if i use scp its asking for password for copying files..is there any way to automate this password issue..
can anyone help me out???
tahnks in advance,
Arun Manas (4 Replies)
Hi all,
I am using an command which reset the password for the user, its working fine on Solaris boxes but sometimes the samw was not happening on some of linux boxes.
/bin/echo username | passwd --stdin username
I am new to unix and shell scripting,so it would be very helpful for me... (1 Reply)
Hi All,
We have many number of users.Some times we will receive mail from them like ,
the below USER password got expired and they are requesting us to change the password and send it back to them in a mail. there we are giving Expiray date again.
We are doing this process manually. I want... (2 Replies)
Hi,
I could like to change my remote system user password. Could you please guile me,
If you have any existing scripting there. please let me know
Thanks & Regards,
Mani (8 Replies)
Discussion started by: Mani_apr08
8 Replies
10. Forum Support Area for Unregistered Users & Account Problems
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)
Discussion started by: Rich Marton
1 Replies
LEARN ABOUT MINIX
systemd-ask-password-console.service
SYSTEMD-ASK-PASSWORD-CONSOLE.SERVICE(8) systemd-ask-password-console.service SYSTEMD-ASK-PASSWORD-CONSOLE.SERVICE(8)NAME
systemd-ask-password-console.service, systemd-ask-password-console.path, systemd-ask-password-wall.service, systemd-ask-password-wall.path
- Query the user for system passwords on the console and via wall
SYNOPSIS
systemd-ask-password-console.service
systemd-ask-password-console.path
systemd-ask-password-wall.service
systemd-ask-password-wall.path
DESCRIPTION
systemd-ask-password-console.service is a system service that queries the user for system passwords (such as hard disk encryption keys and
SSL certificate passphrases) on the console. It is intended to be used during boot to ensure proper handling of passwords necessary for
boot. systemd-ask-password-wall.service is a system service that informs all logged in users for system passwords via wall(1). It is
intended to be used after boot to ensure that users are properly notified.
See the developer documentation[1] for more information about the system password logic.
Note that these services invoke systemd-tty-ask-password-agent(1) with either the --watch --console or --watch --wall command line
parameters.
SEE ALSO systemd(1), systemd-tty-ask-password-agent(1), wall(1)NOTES
1. developer documentation
https://www.freedesktop.org/wiki/Software/systemd/PasswordAgents
systemd 237SYSTEMD-ASK-PASSWORD-CONSOLE.SERVICE(8)