PPS: GUI password changer

killermoehre killermoehre at gmx.net
Wed Apr 24 09:49:06 CEST 2013


Am 24.04.2013 09:30, schrieb Ralf Mardorf:
> 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.

Alacarte is deprecated and shouldn't be used anymore.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20130424/ac26be80/attachment.pgp>


More information about the Xfce mailing list