Professional Documents
Culture Documents
HP-UX Admin
HP-UX Admin
===========
other than: ngoi tr cn rather than = instead of : thay v :))
======================Overview of SAM=========================
The System Administrator's Tool Kit: The System Administration Manager is a user
interface for performing most routine
administrative tasks without using the underlying HP-UX commands.
To use SAM on the X Window System, the DISPLAY environment variable must be set
correctly to reflect the display on which you want SAM to appear.
POSIX, Korn or
export DISPLAY= hostname :0.0
.profile or
Bourne shells
.dtprofile
C shell
export DISPLAY= hostname :0.0
.login
===================User and Group==================
What Defines a User Account?
/etc/passwd
/etc/shadow
/etc/group
/usr/sbin/vipw to edit/etc/passwd
/usr/sbin/pwck to check the/etc/passwd file syntax
/usr/sbin/pwconv to move passwords from /etc/passwd to /etc/shadow
/usr/sbin/grpck to check the/etc/group file syntax
Managing Users and Groups from the Command Line
Commands for Managing User Accounts: useradd, usermod, userdel
-u 101 Use userid 101.
-g finance Define the user's primary group.
-G finance,accounts Define the user's other group memberships.
-c "111-1111" Define the user's comment field in /etc/passwd.
-d /home/guest Define the user's home directory.
-m
Define the user's home directory.
-s /usr/bin/csh Define the user's default login shell.
Commands for Managing Groups: groupadd, groupmod, groupdel
Some Sample Customizations
export TERM=vt100
export PS1=$PWD $
export LPDEST=laser
export PATH=$PATH:/usr/local/bin
export EDITOR=vi
export HISTSIZE=50
export HISTFILE=~/.sh_history
=================================HP UX File System========================
/sbin, /usr, /stand, /etc, /dev, /var(OS-related directories)
/opt, /etc/opt, and /var/opt(application-related directories)
find, which, and whereis to find files in the HP-UX file system
============Connecting Peripherals=================
Determining your Processor Type
# machinfo
Determining your Operating System Version
# uname -a
# uname -r
Determining your System Model Type
# model
Viewing Interfaces & Devices with ioscan
# ioscan # short listing of all devices
#
#
#
#
#
#