PPS: GUI password changer
Ralf Mardorf
ralf.mardorf at alice-dsl.net
Wed Apr 24 09:30:17 CEST 2013
After doing some office work I had some time, so new shebang, new path,
new option, new name:
[rocketmouse at archlinux ~]$ cat /usr/local/bin/chpassword
#!/bin/sh
echo -n "Change password of user: "
read username
echo -n "Do it being user: "
read su_user
if [ "$(id -u)" != "0" ]; then echo -n "$su_user's "; fi
su $su_user -c "passwd $username"
echo "Push enter to quit."
read push_rtn
exit
Then run Alacarte and to "Settings" add a "New Item"
Name: Password
Command: /usr/local/bin/chpassword
Comment:
[x] Launch in Terminal?
This likely will add it to "Menu > Other" instead of "Menu > Settings",
but should work as expected.
More information about the Xfce
mailing list