How to encrypt password

2008-04-07 Diskussionsfäden Walter den Besten

In the examples for FAI, the password for root is setup as fai.

I want to use the same way to define a password for an  other local  
user which should exist on all our servers.
However, I can't find the way to translate fai to something like  
$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1


Could someone tell me how?

Tanks,

Walter


Re: How to encrypt password

2008-04-07 Diskussionsfäden Thomas Lange
 On Mon, 7 Apr 2008 14:54:49 +0200, Walter den Besten [EMAIL PROTECTED] 
 said:

 In the examples for FAI, the password for root is setup as fai.
 I want to use the same way to define a password for an  other local  
 user which should exist on all our servers.
 However, I can't find the way to translate fai to something like  
 $1$kBnWcO.E$djxB128U7dMkrltJHPf6d1

 Could someone tell me how?
echo yoursecrectpassword | mkpasswd -Hmd5 -s

-- 
regards Thomas


Re: How to encrypt password

2008-04-07 Diskussionsfäden Henning Glawe
On Mon, Apr 07, 2008 at 02:54:49PM +0200, Walter den Besten wrote:
 I want to use the same way to define a password for an  other local  
 user which should exist on all our servers.
 However, I can't find the way to translate fai to something like  
 $1$kBnWcO.E$djxB128U7dMkrltJHPf6d1
 
 Could someone tell me how?

this is an MD5 hash; there are several ways to generate it:

1) change the password of a user to the password and copy the hash from
/etc/shadow

2) in a script, you can e.g. use the grub shell:

[...]
MD5=`/usr/sbin/grub --batch --device-map=/dev/null EOF \
| grep ^Encrypted:  | sed 's/^Encrypted: //'
md5crypt
$PASSWD
quit
EOF
`
[...]


-- 
c u
henning


Re: How to encrypt password

2008-04-07 Diskussionsfäden Holger Levsen
Hi,

a better solution can be found at 
http://faiwiki.debian.net/index.php/Generate_random_root_password_during_installation,_encrypt_and_send_by_mail


regards,
Holger


pgpCenXDE9i2s.pgp
Description: PGP signature


RE: Setup_hardisk lvm Cannot determine size

2008-04-07 Diskussionsfäden Tsapline Sylvain
hello

I've been trying the last SVN version of parser.pm

It seems you missed a couple of brace ;)


# diff -hu parser.pm  /appli/fai-deb4-amd64/config/store/lib/parser.pm
--- parser.pm   2008-04-07 15:07:38.0 +0200
+++ /appli/fai-deb4-amd64/config/store/lib/parser.pm 2008-04-07
16:03:01.0 +0200
@@ -546,7 +546,7 @@
 my $short_dev = $FAI::disks[ $1 - 1 ];
 my $part_no = $2;
 $dev = /dev/$short_dev;
-if ($dev =~
m{^/dev/(cciss/c\dd\dp|ida/c\dd\dp|rd/c\dd\dp|ataraid/d\dp)$}) $dev =
${dev}p;
+if ($dev =~
m{^/dev/(cciss/c\dd\dp|ida/c\dd\dp|rd/c\dd\dp|ataraid/d\dp)$}) { $dev =
${dev}p;}
 $dev = $dev$part_no;
   } else {
 $dev = /dev/$dev;


I'll try up some LVM setup on a HP G5 and i'll get back to you


Regards

Sylvain



ubuntu make-fai-bootfloppy is currently broken.

2008-04-07 Diskussionsfäden Goesta Smekal
Hi folks,

  migrating our ancient Ubuntu Dapper-Drake FAI to Hardy Heron I
encountered a very annoying message:

 [EMAIL PROTECTED]:~# make-fai-bootfloppy -B -d d -f /tmp/dummy -i 
 /tmp/hardy.iso FAI_FLAGS=verbose
 make-fai-bootfloppy is currently broken. It does not support kernels with 
 initrd.

Installing Hardy on up to 140 Desktops aged 0 to 5 years I simply can't
do without initrd. Besides the default kernels of most distros nowadays
are initrd.

Is there any remedy? By the way: fai-server 3.2.4+svn4837-0ubuntu2

  any hints welcome ...

  Goesta

-- 
#!/usr/bin/perl
foreach $c (split(/ /,47 6f 65 73 74 61 20 53 6d 65 6b 61 6c 0d 0a)) {
print pack(C, hex($c));}



signature.asc
Description: OpenPGP digital signature


Re: ubuntu make-fai-bootfloppy is currently broken.

2008-04-07 Diskussionsfäden Henning Sprang

Goesta Smekal wrote:

Installing Hardy on up to 140 Desktops aged 0 to 5 years I simply can't
do without initrd. Besides the default kernels of most distros nowadays
are initrd.

Is there any remedy? 


* Looking at the code and try to fix the problem
* boot with PXE


Both sound quite some work, or impossible if your hardware doesn't 
support PXE and etherboot doesn't work for you, but these are the 
current ways to solve it.


Or: try to use a pre-3.2 version (don't know if that works well)

Henning


Re: ubuntu make-fai-bootfloppy is currently broken.

2008-04-07 Diskussionsfäden Michael Tautschnig
 Goesta Smekal wrote:
 Installing Hardy on up to 140 Desktops aged 0 to 5 years I simply can't
 do without initrd. Besides the default kernels of most distros nowadays
 are initrd.

 Is there any remedy? 

 * Looking at the code and try to fix the problem
 * boot with PXE

[...]

Use FAI-CD ...

Best,
Michael



pgpDhHD3obJiT.pgp
Description: PGP signature


Re: ubuntu make-fai-bootfloppy is currently broken.

2008-04-07 Diskussionsfäden Goesta Smekal
Michael Tautschnig schrieb:
 
 Use FAI-CD ...

Sounds promising. And quite obvious too ;-)

I got an ISO now, but no machine at hand. I will try and report ...

  thanks

  Goesta

-- 
#!/usr/bin/perl
foreach $c (split(/ /,47 6f 65 73 74 61 20 53 6d 65 6b 61 6c 0d 0a)) {
print pack(C, hex($c));}



signature.asc
Description: OpenPGP digital signature