YesYo.com MintState Forums
뒤로    YesYo.com MintState BBS > Tech > Linux
검색
멤버이름    오토
비밀번호 
 

유저생성시 디폴트그룹으로 생성하기

페이지 정보

작성자 MintState 댓글 0건 조회 14,908회 작성일 08-11-20 12:27

본문

유저생성시 디폴트그룹으로 생성하기

보통 솔라리스의 경우 /usr/sbin/useradd abc 라고 하면 그룹이 other 로 설정 하면서 계정을 생성 합니다.
그렇지만 레드햇의 경우 /usr/sbin/useradd abc 라고 하면 그룹이 abc 로 해서 생성 됩니다. 그래서 이 부분이 어떤가 man 페이지를 뒤져 보다가 아래와 같이 알아 내어서 조금 적어봅니다.

man 페이지를 보면
...
-n A group having the same name as the user being added to the system will be created by default. This option will turn off this Red Hat Linux specific behavior
...
Changing the default values
When invoked with the -D option, useradd will either display the current default values, or update the default values from the command line. The valid options are
...

의 내용이 있습니다.


이락고 나옵니다.

[root@host root]# /usr/sbin/useradd abc -n
라고 하면 디폴트 그룹이 users 로 등록 됩니다. 

/etc/adduser.conf 에서 adduser에 대한 설정을 합니다.[데비안] 레드햇에는 설정파일이 /etc/default/useradd 에 위치합니다.

그 안에 보면 adduser 할 때 그룹을 id와 같은 것으로 할 것인지, default 그룹으로 할 것인지에 대한 기본값을 설정할 수 있습니다.

마찬가지로 default 그룹으로 한다면 어느 그룹을 default로 할 것 인지에 대해서도 설정할 수 있습니다. default 값으려 users 를 하도록 설정되어 있고, 관리자 맘대로 바꿀 수 있습니다.

댓글목록

등록된 댓글이 없습니다.

Total 360건 12 페이지
Linux 목록
번호 제목 글쓴이 조회 날짜
140 MintState 14962 11-20
139 MintState 14960 11-10
열람중 MintState 14909 11-20
137 MintState 14894 01-05
136 MintState 14871 11-10
135 MintState 14865 11-05
134 MintState 14829 10-30
133 MintState 14813 10-30
132 MintState 14795 10-30
131 MintState 14788 11-10
130 MintState 14712 01-05
129 MintState 14711 11-10
128 MintState 14704 01-05
127 MintState 14695 11-05
126 MintState 14695 12-23
125 MintState 14692 10-30
124 MintState 14687 01-05
123 MintState 14685 12-24
122 MintState 14682 11-20
121 MintState 14677 11-17
게시물 검색
모바일 버전으로 보기
CopyRight ©2004 - 2024, YesYo.com MintState. ™