fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] /usr/bin/wall through fab


From: Jonathan Reed
Subject: Re: [Fab-user] /usr/bin/wall through fab
Date: Tue, 24 Jan 2012 15:51:03 -0500

or perhaps this might be easier?
echo username:password | chpasswd

as mentioned here http://www.debian-administration.org/article/668/Changing_a_users_password_inside_a_script

On Tue, Jan 24, 2012 at 3:27 PM, Paul Hoffman <address@hidden> wrote:
Christian has the right idea here. For example, when changing the
password for a user, it turned out much easier to do it with sending a
file and executing it than trying to juggle the inputs. So, for
Ubuntu, I could use three commands:
    echo "usertochange:newpassword" > foo
    sudo /usr/sbin/chpasswd <foo
    rm foo

_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user


reply via email to

[Prev in Thread] Current Thread [Next in Thread]