this is what I want to be able to script with a password in variable $pass.
htdigest -c /etc/apache2/pw/$user $user $user
At the moment it asks me to manually enter a password, this is not going to be possible since it will be an automated setup by a PHP script.
Could someone please show me how to script this? Or an equivalent scriptable function?
Thanks :)
I am writing a self service password reset tool for users in my test domain. I would like them to be able to change passwords and not generate a random password.
Can someone tell me where the password policy control is?
There seems to be two places to change passwords:
from user>system settings>user accounts>click password field
and activities>applications>other>users and groups>user.properties
In the 'user accounts' option, the screen prompts with secure passwords - if the password is weak, it won't allow the password at all
I am trying to manage Unix users with puppet. Puppet provides enough tools to create accounts and provide authorized_keys files for instance, but no to set up user password, and it tell to the user.
What I have done is a python script which generate a random password and send it to the user by email.
I posted this under security, though i fear it was the wrong place..
If i had two boxes, i added a user to one and set a password.
I then add the user to the second box using useradd.
How can i take the encrypted password from box 1 for input into box 2 - ideally something i can use in a shell script.
I've tried so far, searching and replacing, but the passwords contain "/$." etc, I
okay here I go again...
I have created a script which adds new user to /etc/password and which inturn creating a locked password in /etc/shadow but I am expecting to have *NP* for that particular user.Can someone help me with a script which can set the password for a particular user to NP in /etc/shadow..Thanks
---------- Post updated 07-31-12 at 01:11 AM ---------- Previous update was 07-30-12 a
The user is set to login without a password. When trying to use that user to make a directory the user is asked to prvide a password. Since they don't have a password the system keeps rejecting them and denies them access to the command. Is there a default password that may be in use?
I have a 10000 users with different OUs, groups. We have a windows 2008 AD server and a exchange 2010 mail server. clients are using windows 7 64bit OS and outlook 32 bit. When ever users change their password, outlook and lyncs keep on prompting passwords from the user even the users enter the correct user name and password. This causes the account lockout issue.
i want to change user to "root" from another user while running a script. how can i automatically feed the password? for example, i want to write a script say "script.sh"... it will first run the command "p" as mhmn user, and then it will change the user to "root" by using "su - root" command. at this point it asks for the password for root.