Results 1 to 3 of 3
hi,
i want to change the password of root by non-root user using shell file.
i am trying
echo user_password | sudo passwd --stdin root
here user_password is the password ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-15-2003 #1Just Joined!
- Join Date
- Aug 2003
- Posts
- 3
URGENT- Help for Shell Scripting
hi,
i want to change the password of root by non-root user using shell file.
i am trying
echo user_password | sudo passwd --stdin root
here user_password is the password entered by the user
it works fine from the command line, but from shell i am trying
echo $1 | sudo passwd --stdin root
and it just prints the
$1 | sudo passwd --stdin root
solution to this problem will be highly appreciated.
thanx
vishal angrish
- 08-15-2003 #2Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
Please dont cross-post, we dont like that!,
Dolda or sykkn can you move this topic that where posted under admin to generelascripting and delete the other 2...i didnt see that i answered under the wrong category..Regards
Andutt
- 08-15-2003 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
I've locked this thread now. For the other thread, see this link:
http://www.linuxforums.org/viewtopic.php?t=3591



