From: T o n g on 9 Aug 2010 22:00 Hi, What's the easiest way to set password for user account via script? The most common tool would be fine, even if it means that the password has to be clear text. Thanks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/i3qbcc$jna$1(a)dough.gmane.org
From: Jordon Bedwell on 9 Aug 2010 23:10 On Tue, 2010-08-10 at 01:52 +0000, T o n g wrote: > Hi, > > What's the easiest way to set password for user account via script? > The most common tool would be fine, even if it means that the password > has to be clear text. > > Thanks > > -- > Tong (remove underscore(s) to reply) > http://xpt.sourceforge.net/techdocs/ > http://xpt.sourceforge.net/tools/ > > You can write passwords directly to /etc/shadow as root, but it's rather dangerous to do, but I shouldn't be here to warn you and caution you since you should already know all this, on to the example: echo "user_password"|openssl passwd -1 -stdin $id$salt$encrypted_password root:$1$RsTbBahJ$2NjYxhHostQUasMcczo1T0:14824:0:99999:7::: -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/1281409266.14430.123.camel(a)envygeeks
From: emmanuel segura on 10 Aug 2010 05:10 openssl passwd -1 test01 output = $1$q.C/Xn5Q$AkvYZAwzTkpGF.Q9O/NC90 usermod -p $1$q.C/Xn5Q$AkvYZAwzTkpGF.Q9O/NC90 your_username i hope this can be enough :-) 2010/8/10 Jordon Bedwell <jordon(a)envygeeks.com>: > On Tue, 2010-08-10 at 01:52 +0000, T o n g wrote: >> Hi, >> >> What's the easiest way to set password for user account via script? >> The most common tool would be fine, even if it means that the password >> has to be clear text. >> >> Thanks >> >> -- >> Tong (remove underscore(s) to reply) >> http://xpt.sourceforge.net/techdocs/ >> http://xpt.sourceforge.net/tools/ >> >> > > You can write passwords directly to /etc/shadow as root, but it's rather > dangerous to do, but I shouldn't be here to warn you and caution you > since you should already know all this, on to the example: > > echo "user_password"|openssl passwd -1 -stdin > $id$salt$encrypted_password > > root:$1$RsTbBahJ$2NjYxhHostQUasMcczo1T0:14824:0:99999:7::: > > > -- > To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian..org > Archive: http://lists.debian.org/1281409266.14430.123.camel(a)envygeeks > > -- esta es mi vida e me la vivo hasta que dios quiera -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/AANLkTik4J8y?YHdDyFf-Uh_6su0bE52d_eu0igvsfU(a)mail.gmail.com
From: Martin Kraus on 10 Aug 2010 06:20 On Tue, Aug 10, 2010 at 11:03:33AM +0200, emmanuel segura wrote: > openssl passwd -1 test01 > output = $1$q.C/Xn5Q$AkvYZAwzTkpGF.Q9O/NC90 > > usermod -p $1$q.C/Xn5Q$AkvYZAwzTkpGF.Q9O/NC90 your_username > > i hope this can be enough echo "user:password" | chpasswd mk -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/20100810101052.GE19715@/bin/hostname
From: emmanuel segura on 10 Aug 2010 06:50 thanks 2010/8/10 Martin Kraus <lists_mk(a)wujiman.net>: > On Tue, Aug 10, 2010 at 11:03:33AM +0200, emmanuel segura wrote: >> openssl passwd -1 test01 >> output = $1$q.C/Xn5Q$AkvYZAwzTkpGF.Q9O/NC90 >> >> usermod -p $1$q.C/Xn5Q$AkvYZAwzTkpGF.Q9O/NC90 your_username >> >> i hope this can be enough > > echo "user:password" | chpasswd > > mk > -- esta es mi vida e me la vivo hasta que dios quiera -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/AANLkTimv+OHOMUdu5TUqvvLDc+2SmQsN0PN37h5pLVeT(a)mail.gmail.com
|
Next
|
Last
Pages: 1 2 Prev: debian-505-i386.netinst.iso -- GRUB Error 18 Next: Netinst Still Installs Trunk Kernel |