LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-11-2007, 11:13 AM   #1
chaosboy
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
password crypt


My goal is to create a kickstart script which adds a list of users with predefined passwords. I would like to pass in pre-crypted passwords. I have used marozsas' crypt code(http://www.linuxquestions.org/questi...ighlight=crypt). If i do something like:
Code:
useradd -p `crypt password` testuser
the password is set correctly. However, if i run 'crypt password' by itself and copy/paste the output to useradd -p ... testuser, the password is not set correctly. I need to be able to do this in the kickstart script. Can anyone explain why this is happening and suggest what I need to do?

Any help would be appreciated!

~robert
 
Old 01-11-2007, 05:08 PM   #2
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
Yeah, there are some problematic characters in the encrypted string. My guess is, it includes characters that the shell tries to interpret ($ /)

Try to paste that stuff within single-quotes ('') or escape the problematic characters with \
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No Crypt AMMullan Linux - Software 4 08-08-2007 04:48 AM
Password generation failed for scheme {CRYPT}: scheme not recognized olva Linux - General 0 11-05-2006 12:21 PM
Compare LDAP password with php crypt password coolamit78 Linux - Networking 1 01-30-2006 06:35 AM
dm-crypt rino.caldelli Linux - Security 1 07-28-2005 01:46 PM
using a random file as password to dm-crypt qwijibow Linux - Security 6 11-08-2004 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration