아래 질문드렸던 su에 관해서... 다시 심각한 문제에 봉착했습니다. T.T
리눅스 서버에서는 su가 -s 옵션이나 --shell이 있어서 될줄 알았는데..
정작 문제의 Soloaris서버에서 실행해보니 -s옵션이나 --shell이 아예 없습니다.. T.T
아래는 문제의 su의 man페이지입니다..
Maintenance Commands su(1M)
NAME
su - become super user or another user
SYNOPSIS
su [ - ] [ username [ arg ... ] ]
DESCRIPTION
su allows one to become another user without logging off.
The default user name is root (super user).
To use su, the appropriate password must be supplied (unless
the invoker is already root). If the password is correct,
su creates a new shell process that has the real and effec-
tive user ID, group IDs, and supplementary group list set to
those of the specified username. The new shell will be the
shell specified in the shell field of username's password
file entry (see passwd(4)). If no shell is specified,
/usr/bin/sh is used (see sh(1)). To return to normal user
ID privileges, type an EOF character (CTRL-D) to exit the
new shell.
Any additional arguments given on the command line are
passed to the new shell. When using programs such as sh, an
arg of the form -c string executes string using the shell
and an arg of -r gives the user a restricted shell.
The following statements are true only if either /usr/bin/sh
or NULL is named in the specified user's password file
entry. If the first argument to su is a ' - ' (dash), the
environment is passed along unchanged, as if the user actu-
ally logged in as the specified user. Otherwise, the
environment is passed along, with the exception of $PATH,
which is controlled by PATH and SUPATH in etc/default/su.
All attempts to become another user using su are logged in
the log file /var/adm/sulog (see sulog(4)).
제가 배운 영어가 틀리지 않다면.. 여기서 su는 무조건 passwd파일을 참조해서
쉘을 실행시키는 것 같습니다.. T.T
그러니 아무리 su -s /bin/csh이나 su - --shell=/bin/csh을 줘도 소용이
없습니다..
아.. 어찌해야하나요..