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

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

페이지 정보

작성자 MintState 댓글 0건 조회 14,847회 작성일 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건 11 페이지
Linux 목록
번호 제목 글쓴이 조회 날짜
160 MintState 15325 10-30
159 MintState 15325 11-05
158 MintState 15318 11-10
157 MintState 15305 11-05
156 MintState 15293 11-20
155 MintState 15261 11-10
154 MintState 15186 12-04
153 MintState 15144 01-05
152 MintState 15117 11-20
151 MintState 15063 11-10
150 MintState 15027 11-05
149 MintState 14992 01-05
148 MintState 14984 01-05
147 MintState 14968 11-05
146 MintState 14958 11-20
145 MintState 14930 11-10
144 MintState 14903 11-10
143 MintState 14901 11-05
142 MintState 14901 11-20
141 MintState 14901 12-04
게시물 검색
모바일 버전으로 보기
CopyRight ©2004 - 2024, YesYo.com MintState. ™