06.12.2012 Aufrufe

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

4.3.6 JumpStart-Scripten 74<br />

# It sets the system's root password to the entry defined in PASSWD.<br />

# The encrypted password is obtained from an existing root password entry<br />

# in /etc/shadow from an installed machine.<br />

echo "setting password for root"<br />

# set the root password<br />

#PASSWD=dKO5IBkSF42lw<br />

mv /a/etc/shadow /a/etc/shadow.orig<br />

nawk -F: '{<br />

if ( $1 == "root" )<br />

printf"%s:%s:%s:%s:%s:%s:%s:%s:%s\n",$1,passwd,$3,$4,$5,$6,$7,$8,$9<br />

else<br />

printf"%s:%s:%s:%s:%s:%s:%s:%s:%s\n",$1,$2,$3,$4,$5,$6,$7,$8,$9<br />

}' passwd="$ROOTPWD" /a/etc/shadow.orig > /a/etc/shadow<br />

# set the flag so sysidroot won't prompt for the root password<br />

sed -e 's/0# root/1 # root/' ${SI_SYS_STATE} > /tmp/state.$$<br />

mv /tmp/state.$$ ${SI_SYS_STATE}<br />

chattr root root 400 /a/etc/shadow<br />

4.3.6.12 etc/shells<br />

# /etc/shells<br />

#<br />

/sbin/sh<br />

/sbin/csh<br />

/bin/ksh<br />

/soft/bin/tcsh<br />

/soft/bin/bash<br />

/soft/bin/zsh<br />

4.3.6.13 etc/resolv.conf<br />

# 19940922 HF init<br />

# 19960222 HF comsun als primary, bis fh-regensburg.de da ist<br />

# 19960722 HF Umstellung auf neue Domain und Nameserver<br />

#<br />

domain fh-regensburg.de<br />

search fh-regensburg.de fh.uni-regensburg.de uni-regensburg.de<br />

nameserver 194.95.104.1<br />

nameserver 132.199.1.2<br />

4.3.6.14 etc/nsswitch.conf<br />

#<br />

# /etc/nsswitch.nis:<br />

# +hf<br />

#<br />

# An example file that could be copied over to /etc/nsswitch.conf; it<br />

# uses NIS (YP) in conjunction with files.<br />

#<br />

# "hosts:" and "services:" in this file are used only if the<br />

# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.<br />

# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.<br />

passwd: files nis<br />

group: files nis<br />

(c) 1996-2003 <strong>Hubert</strong> <strong>Feyrer</strong> Stand: 21. Oktober 2003

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!