Chpasswd error

Ian Coetzee ubuntu at iancoetzee.za.net
Tue Jan 19 10:31:06 UTC 2010


On Tue, Jan 19, 2010 at 12:16 PM, shali Kallumpuram <
vidyaserveradmin at gmail.com> wrote:

> Dear all,
>
> i have script called createstaff.sh ,in that script chpasswd not working if
> i run
> echo "usename:passwd" | chpasswd
> its working,
>
>
> what is the problem??
>

have you tried changing this line to either


chpasswd < /root/Desktop/programming_lab/tp

or


cat /root/Desktop/programming_lab/tp | chpasswd

and see if that solves your problem

Regards
Ian

>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100119/5e54ff13/attachment.html>


More information about the ubuntu-users mailing list