Hi all,
How a non-root user can change his password some what like this: <commandToChangePassword> -oldpassword old -newpassword new.
"usermod" command will get password as argument. But this can only used by the root. I want to know is similar command avialable for normal-users? Any one plz help me.....
Thanks in advance.
"passwd <username>" or just "passwd"
On Fri, 11 Apr 2003, Srinivas wrote:
- GLUG Meet - 4.00pm Sun. 13th April, 2003 @ HBCSE *
Hi all,
How a non-root user can change his password some what like this: <commandToChangePassword> -oldpassword old -newpassword new.
"usermod" command will get password as argument. But this can only used by the root. I want to know is similar command avialable for normal-users? Any one plz help me.....
Thanks in advance.
On Friday 11 April 2003 11:04 am, you wrote:
Thanx for your advice....
using passwd command how can i pass password argument?
Exactly I want like this in normal user:
Command -u <user> -op <old password> -np <new passwpod>
- GLUG Meet - 4.00pm Sun. 13th April, 2003 @ HBCSE *
"passwd <username>" or just "passwd"
On Fri, 11 Apr 2003, Srinivas wrote:
- GLUG Meet - 4.00pm Sun. 13th April, 2003 @ HBCSE *
Hi all,
How a non-root user can change his password some what like this: <commandToChangePassword> -oldpassword old -newpassword new.
"usermod" command will get password as argument. But this can only used by the root. I want to know is similar command avialable for normal-users? Any one plz help me.....
Thanks in advance.
you use "expect" ----------------------------------------- #!/usr/bin/expect -f set user devuser set password PASSWORD
spawn passwd
expect "user name:" send "$user\r"
expect "password:" send "$password\r"
--------------------------------------
Home Page :http://expect.nist.gov/ Exmaple :http://expect.nist.gov/example/mkpasswd.man.html http://expect.nist.gov/example/passmass.man.html
On Fri, 11 Apr 2003, Srinivas wrote:
using passwd command how can i pass password argument? Exactly I want like this in normal user: Command -u <user> -op <old password> -np <new passwpod>