ログイン時のディフォルトPATH設定

 GNU ZIPなどをインストールした際に、パス設定をしないでも実行ができるように、テキストファイル「/etc/default/login」を書き換えることでログイン時のディフォルトパスを設定する。



$su
#chmod +w /etc/default/login
#vi /etc/default/login


#ident "@(#)login.dfl 1.8 96/10/18 SMI" /* SVr4.0 1.1.1.1 */

# Set the TZ environment variable of the shell.
#
#TIMEZONE=EST5EDT

# ULIMIT sets the file size limit for the login. Units are disk blocks.
# The default of zero means no limit.
#
#ULIMIT=0

# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
CONSOLE=/dev/console

# PASSREQ determines if login requires a password.
#
PASSREQ=YES

# ALTSHELL determines if the SHELL environment variable should be set
#
ALTSHELL=YES

# PATH sets the initial shell PATH variable
#
#PATH=/usr/bin:
PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/local/bin


# SUPATH sets the initial shell PATH variable for root
#
#SUPATH=/usr/sbin:/usr/bin
SUPATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/local/bin


# TIMEOUT sets the number of seconds (between 0 and 900) to wait before
# abandoning a login session.
#
#TIMEOUT=300

# UMASK sets the initial shell file creation mode mask. See umask(1).
#
#UMASK=022

# SYSLOG determines whether the syslog(3) LOG_AUTH facility should be used
# to log all root logins at level LOG_NOTICE and multiple failed login
# attempts at LOG_CRIT.
#
SYSLOG=YES

 


カテゴリー「Solaris」 のエントリー