Re: [CentOS] Set hostname via DHCP ?

2009-06-29 Thread Andreas Pedersen
If your trying to make CentOS/Fedora boxes to get hostname remember you need
to have localhost.localdomain in /etc/sysconfig/network.
HOSTNAME=localhost.localdomain

see around line 252-261
/etc/sysconfig/network-scripts/network-functions
need_hostname ()
{
CHECK_HOSTNAME=`hostname`
if [ $CHECK_HOSTNAME = (none) -o $CHECK_HOSTNAME = localhost -o
\
$CHECK_HOSTNAME = localhost.localdomain ]; then
return 0
else
return 1
fi
}


__
Andreas Pedersen


On Sun, Jun 28, 2009 at 11:35 PM, Rob Townley rob.town...@gmail.com wrote:

 # i do NOT have any kind of use-host-decl-names on; entry.  Do you use
 dnsmasq or dhcpd?
 # /etc/dhcpd.conf   Not sure if a dnsmasq entry would be the same anymore.
 host babasse {
hardware ethernet 00:0d:61:ae:6b:8f;
fixed-address 192.168.1.249;
 option host-name
 PutClientHostNameHereNotSureIfItHasToBeSameAsAbove-babasse;
 }

 #Don't remember what happens when a linux client machine has already
 been configured.
 #But know for a fact that all pxe booted and live linux booted and
 Windows Vista and WinXP
 #machines use the hostname from the dhcpd entry.

 On Sun, Jun 28, 2009 at 10:38 AM, Niki Kovacscont...@kikinovak.net
 wrote:
  Hi.
 
  I just setup one of my machines as a DHCP server. I'd like it to handle
  the hostnames of clients. Don't know if this is an orthodox thing to do
  (feel free to add your comments :oD). Here's the server's relevant lines
  of dhcpd.conf:
 
  --8---
  ...
  # Envoyer les noms d'hôtes aux clients
  use-host-decl-names on;
 
  # Adresses statiques
  host babasse {
hardware ethernet 00:0d:61:ae:6b:8f;
fixed-address 192.168.1.249;
  }
  --8---
 
  Now the question is: how should the configuration look like on the
  client side, so the hostname gets effetively fetched from the DHCP
  server? During the initial install, I assigned hostnames manually to
  every machine.
 
  Cheers,
 
  Niki Kovacs
  ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to enable SHA1 passwords after migration from OpenSUSE?

2008-06-27 Thread Andreas Pedersen
On Fri, Jun 27, 2008 at 2:03 PM, Papalagi Pakeha
[EMAIL PROTECTED] wrote:
 On Fri, Jun 27, 2008 at 12:11 PM, Andreas Pedersen
 [EMAIL PROTECTED] wrote:
 On Thu, Jun 26, 2008 at 2:05 PM, Papalagi Pakeha
 [EMAIL PROTECTED] wrote:
 Hi there!

 I have recently migrated my old server from OpenSUSE 10.0 to CentOS 5.
 Almost everything works great, except for one thing - user passwords.
 In the old system they were in a form:

 root:$2a$05$9V.P3/KV2fd0r/O8hs0gNueaidF35edj3DL6skb32qZJNpvwVHiUO:12183:0:9:7:::

 and that format doesn't seem to be understood by CentOS. When I change
 the password I get something like:

 root:$1$Z0HGYkIb$fbkW0gR6c.k7rENE1NlzE0:14055:0:9:7:::

 Note the encrypted password begins with $2a$... in OpenSUSE while in
 CentOS it starts with $1$... CentOS passwords (MD5?) are understood by
 OpenSUSE but OpenSUSE passwords (SHA1?) are not understood by CentOS.

 First: '$2a' is not SHA1 its Blowfish.

 I belive you need libxcrypt support, I'm not sure just google fast I
 hope this will help you.

 # OpenSUSE 10.2 box
 $ ldd /lib/security/pam_unix2.so

 I can't find pam_unix2 for CentOS. It's doesn't seem to be in any of
 the repos I know of. Any hint as where to get hold of it?

show all pam packages
$ rpm -qa \*pam\*
list files for pam
$ rpm -ql pam

I believe you need to rebuild pam modules (pam_unix2), see arch wiki.

http://wiki.archlinux.org/index.php/Blowfish_passwords
Quote: You must download libxcrypt PKGBUILD and build it. That's
because libcrypt from glibc only supports md5 and DES algorithms,
which we don't want.



 PaPa
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to enable SHA1 passwords after migration from OpenSUSE?

2008-06-26 Thread Andreas Pedersen
On Thu, Jun 26, 2008 at 2:05 PM, Papalagi Pakeha
[EMAIL PROTECTED] wrote:
 Hi there!

 I have recently migrated my old server from OpenSUSE 10.0 to CentOS 5.
 Almost everything works great, except for one thing - user passwords.
 In the old system they were in a form:

 root:$2a$05$9V.P3/KV2fd0r/O8hs0gNueaidF35edj3DL6skb32qZJNpvwVHiUO:12183:0:9:7:::

 and that format doesn't seem to be understood by CentOS. When I change
 the password I get something like:

 root:$1$Z0HGYkIb$fbkW0gR6c.k7rENE1NlzE0:14055:0:9:7:::

 Note the encrypted password begins with $2a$... in OpenSUSE while in
 CentOS it starts with $1$... CentOS passwords (MD5?) are understood by
 OpenSUSE but OpenSUSE passwords (SHA1?) are not understood by CentOS.
 Is there any way around that? Perhaps get some PAM module from
 OpenSUSE? Or just some setting somewhere? Having to reset passwords
 for all my users would be a royal pain.

 Thanks!

 PaPa
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


First: '$2a' is not SHA1 its Blowfish.

I belive you need libxcrypt support, I'm not sure just google fast I
hope this will help you.

# OpenSUSE 10.2 box
$ ldd /lib/security/pam_unix2.so
   linux-gate.so.1 =  (0xfbffe000)
   libpam.so.0 = /lib/libpam.so.0 (0xb7fd2000)
   libnsl.so.1 = /lib/libnsl.so.1 (0xb7fbb000)
   libdl.so.2 = /lib/libdl.so.2 (0xb7fb7000)
libxcrypt.so.1 = /lib/libxcrypt.so.1 (0xb7f81000) # ---
   libc.so.6 = /lib/libc.so.6 (0xb7e4e000)
   libaudit.so.0 = /lib/libaudit.so.0 (0xb7e3a000)
   /lib/ld-linux.so.2 (0x8000)

http://wiki.linuxfromscratch.org/hints/browser/trunk/blowfish-passwords.txt
http://osdir.com/ml/linux.lfs.hardened/2007-01/msg3.html
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SSH Question relating to Public and Private Keys

2008-04-16 Thread Andreas Pedersen
On Tue, Apr 15, 2008 at 11:48 AM, Fajar Priyanto [EMAIL PROTECTED] wrote:
 On Tuesday 15 April 2008 16:13:55 William L. Maltby wrote:
   How sensitive is the data and how critical are the functions that that
   could be disrupted? What is the scope of exposure to intrusion from
   outside the organization (LAN, firewalls, in place, etc.).

  For example rsync functions.
  It won't work automatically anymore in cron if we use passphrase.

Use restricted shells if your doing cronjobs with rsync, You sould
take a look at rssh http://dragontoe.org/rssh/.

Andreas Pedersen


  --
  Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
  http://linux2.arinet.org
  16:48:28 up 8:02, 2.6.22-14-generic GNU/Linux
  Let's use OpenOffice. http://www.openoffice.org
  The real challenge of teaching is getting your students motivated to learn.

 ___
  CentOS mailing list
  CentOS@centos.org
  http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Slightly OT: How to learn UNIX

2008-03-07 Thread Andreas Pedersen
I'm also interested into learning more about other system as well, my
question is what should I take a closer look in Solaris?
Things like why people choose Solaris over Linux.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos