this is obsolete doc -- see http://doc.nethence.com/ instead
Configuring the user environment and services on HP/UX 11i v1 (part 3)
System environment and daemons
Do not forget to check and fix your umask, just in case.
Enable the Korn Shell and use it for root's shell,
cat >> shells <<EOF9
chsh root /bin/ksh
Eventually give a home to the root user,
ls -ld root/
mkdir -p root/
ln -s ../.profile .profile
Note. The full file name is needed for the target symlink on 11i v1.
Fix the file mode creation mask
cat >> .profile <<EOF9
You should now have a nice KSH environment (vi mode by default). I would love to make ksh the default shell when creating users but eventhough the -D argument exists for useradd on 11i v1, it cannot be used togeather with -s.
Eventually create some system administration user (secondary group root) to log who's connecting through Telnet (by default), RSH (by default) or SSH,
useradd -m -s /bin/ksh -G root adminuser
then clean up the skeletons so that new users get an empty directory (e.g. for FTP),
ls -l skel/
mv skel/ skel.dist/
Note. HP/UX fortunately won't warn about the non-existant skel folder when creating a user directory, that's nice !
Configure syslog for a server with no heavy load,
mv -i syslog.conf syslog.conf.dist
fix the file permissions
ls -l syslog.log
chmod 440 syslog.log
ls -l syslog.log
Eventually synchronize the time,
ntpdate -u ntp.obspm.fr
Note. "ntpdate" is included in the default system.
Note. Change the ntp server address accordingly.
Eventually add the rc.local feature to the system,
cp -i rc rc.dist
cat >> rc <<EOF9
Note. I am placing it in /sbin/ instead of /etc/, just like the rest of the HP/UX rc scripts.