sun's longitude:263 04 47.20 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  
FreeBSD
FreeBSD study ....
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
8 번 글: 사용자 추가 삭제
글쓴이: 산이 [홈페이지] 글쓴날: 2003년 10월 23일 13:39:16 목(오후) 조회: 5689
사용자 추가

# pw useradd [-n] user1 [-u uid] [-g groupname] [-G group1,...]
     -c 'comment' { -m [-k /home/user1] | -d /home/user1 }
     -s /bin/sh

사용자 삭제

# pw userdel [-n] user1 -r
  pw userdel [-u] uid -r

암호변경

# passwd user1

========================================

# pw useradd help
usage: pw useradd [name] [switches]
        -V etcdir      alternate /etc location
        -C config      configuration file
        -q             quiet operation
  Adding users:
        -n name        login name
        -u uid         user id
        -c comment     user name/comment
        -d directory   home directory
        -e date        account expiry date
        -p date        password expiry date
        -g grp         initial group
        -G grp1,grp2   additional groups
        -m [ -k dir ]  create and set up home
        -s shell       name of login shell
        -o             duplicate uid ok
        -L class       user class
        -h fd          read password on fd
        -Y             update NIS maps
        -N             no update
  Setting defaults:
        -V etcdir      alternate /etc location
        -D             set user defaults
        -b dir         default home root dir
        -e period      default expiry period
        -p period      default password change period
        -g group       default group
        -G grp1,grp2   additional groups
        -L class       default user class
        -k dir         default home skeleton
        -u min,max     set min,max uids
        -i min,max     set min,max gids
        -w method      set default password method
        -s shell       default shell
        -y path        set NIS passwd file path


---------------------

# pw userdel help
usage: pw userdel [uid|name] [switches]
        -V etcdir      alternate /etc location
        -n name        login name
        -u uid         user id
        -Y             update NIS maps
        -r             remove home & contents

 
이전글 : FreeBSD 시그널 번호 /usr/include/sys/signal.h
다음글 : LANG=ko_KR.eucKR 한글 파일명 보기  
 from 211.44.63.181
JS(Redhands)Board 0.4 +@

|글쓰기| |답장쓰기| |수정| |삭제|
|이전글| |다음글| |목록보기|
인쇄용 

apache lighttpd linuxchannel.net 
Copyright 1997-2024. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds