사용자 추가# 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 userdel help
usage: pw userdel [uid|name] [switches]
-V etcdir alternate /etc location
-R rootdir alternate root directory
-n name login name
-u uid user id
-Y update NIS maps
-y path set NIS passwd file path
-r remove home & contents
pw useradd help
usage: pw useradd [name] [switches]
-V etcdir alternate /etc location
-R rootdir alternate root directory
-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
-M mode home directory permissions
-s shell name of login shell
-o duplicate uid ok
-L class user class -h fd read password on fd
-H fd read encrypted password on fd
-Y update NIS maps
-N no update
Setting defaults:
-V etcdir alternate /etc location
-R rootdir alternate root directory
-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
-M mode home directory permissions
-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
출처 : http://linuxchannel.net/board/read.php?table=freebsd&no=10&page
|
|
번 호
카테고리
제 목
이름
조회수
Copyright ⓒ 2001.12. bada-ie.com. All rights reserved.
이 사이트는 리눅스에서 firefox 기준으로 작성되었습니다. 기타 브라우저에서는 다르게 보일 수 있습니다.
[ Ubuntu + GoLang + PostgreSQL + Mariadb ]
서버위치 : 오라클 클라우드 춘천 실행시간 : 0.05465 초 to webmaster... gogo sea. gogo sea.