LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-10-2006, 08:10 AM   #1
bratieres
LQ Newbie
 
Registered: Feb 2006
Posts: 17

Rep: Reputation: 0
Suse 9.3 Password encryption


Hi ,

We have to transfer from an RH 7.2 samba server to a suse 9.3 samba server.
There are about 200 user accounts (all are samba users , and are defined both in passwd and smbpasswd).

We would like to recreate all users without too much work (ie avoiding useradd+passwd+smbpasswd for each).

We are OK to type once for each user: name and password.

We wrote a small perl script to do this , it writes a file containins twice the password followed by <LF> ,
and cat's this file to a pipe to smbpasswd ... and works.

We then tried to do same thing with useradd (OK) and passwd , we have the message 'Reenter password' but then Password change aborted,
Authentification token manipulation error ... and password is not set.

We tried then to use useradd with -p option , but could not crypt the password to set in -p option.

Tried: openssh password , mkpasswd , grub-md-crypt none of them gives the right password seen in /etc/shadow when created by
passwd.

Thanks for any better idea..

J.Bratières
 
Old 10-10-2006, 09:34 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
check this:
http://www.linuxquestions.org/questi...ighlight=crypt
 
Old 10-10-2006, 10:36 AM   #3
bratieres
LQ Newbie
 
Registered: Feb 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks a lot .... it works...

I had searched the forum but missed this thread..


J.Bratieres
 
  


Reply



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
password encryption charafantah Programming 4 10-07-2006 06:13 AM
Java: Password encryption Clemente Programming 3 02-07-2006 09:30 AM
Password Encryption morningkiran Linux - Security 2 10-10-2004 07:17 AM
password encryption Lanmate Linux - Security 2 12-26-2003 04:15 AM
Password encryption???: shakeeb Linux - General 4 11-07-2003 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:47 PM.

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