![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
|
Thread Tools | Display Modes |
|
|||
|
Hi,
I try to write a batch file to add a user or multiple users with encrypted passwords in the batch. What i have done : encrypt yeti give me -> $2a$06$dY6sS5vY1l7xD/CXHH2ezuMK5TVUiqEkmDvYUBJct9/Zfksjcm97C So i try it in my batch : useradd -c "YETI" -d /home/yeti -m -s /bin/ksh \ -p $2a$06$dY6sS5vY1l7xD/CXHH2ezuMK5TVUiqEkmDvYUBJct9/Zfksjcm97C \ -G users,wheel yeti The problem, when i launch the batch file, shell give me the value of $2 of my encrypted password, how can i fix it ? Thanks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Encrypted == secure? | passthejoe | OpenBSD Security | 13 | 9th November 2010 04:45 PM |
| Cannot change user password | mzainal | OpenBSD General | 1 | 1st July 2010 05:27 AM |
| OpenBSD: create user sh script | J65nko | Guides | 3 | 31st January 2010 07:29 PM |
| Encrypted disk compatibility issue | TheLogicInverter | FreeBSD Security | 3 | 30th January 2009 01:59 PM |
| Enforce a better user password policy | anomie | Guides | 8 | 7th November 2008 08:10 PM |