>> Read No. 38582 article  
Solaris su에서는 --shell옵션이..

등록 2002-01-02 14:35:00     조회 1
이름 woo    

 아래 질문드렸던 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을 줘도 소용이
없습니다..
아.. 어찌해야하나요..
이름
암호


>> 관련글
38582 Solaris su에서는 --shell옵션이..  woo  2002.01.02  ....
  답장 RE: 저도 똑같은 경험 있습니다. -_-a  성찬  2002.01.03  ....
Register [ localhost 목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 0.79 초 ] 작업시간: [ 0.11 초 ]

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved
[TOP]

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1789470172
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.