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

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

페이지 정보

작성자 MintState 댓글 0건 조회 14,848회 작성일 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건 8 페이지
Linux 목록
번호 제목 글쓴이 조회 날짜
220 MintState 14902 11-05
219 MintState 14902 11-10
218 MintState 14902 11-20
217 MintState 14904 12-04
216 MintState 14905 11-10
215 MintState 14931 11-10
214 MintState 14960 11-20
213 MintState 14970 11-05
212 MintState 14989 01-05
211 MintState 14996 01-05
210 MintState 15031 11-05
209 MintState 15067 11-10
208 MintState 15120 11-20
207 MintState 15147 01-05
206 MintState 15193 12-04
205 MintState 15261 11-10
204 MintState 15294 11-20
203 MintState 15308 11-05
202 MintState 15319 11-10
201 MintState 15328 11-05
게시물 검색
모바일 버전으로 보기
CopyRight ©2004 - 2024, YesYo.com MintState. ™