免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1270 | 回复: 0
打印 上一主题 下一主题

Linux用户管理解 影响useradd的文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-21 15:17 |只看该作者 |倒序浏览

Linux 影响useradd的文件
按照①=》②=》③的模式进行用户的建立
*①:【/etc/login.defs       文件是当创建用户时,系统对账户管理的宏观规划】
[root@rhel52 etc]# vim /etc/login.defs
1 # *REQUIRED*
2 # Directory where mailboxes reside, _or_ name of file, relative to the
3 # home directory.If you _do_ define both, MAIL_DIR takes precedence.
4 # QMAIL_DIR is for Qmail
5 #
6 #QMAIL_DIRMaildir
7 MAIL_DIR/var/spool/mail
8 #MAIL_FILE.mail
9
10 # Password aging controls:
11 #
12 # PASS_MAX_DAYS Maximum number of days a password may be used.
13 # PASS_MIN_DAYS Minimum number of days allowed between password changes.
14 # PASS_MIN_LENMinimum acceptable password length.
15 # PASS_WARN_AGE Number of days warning given before a password expires.
16 #
17 PASS_MAX_DAYS 99999
18 PASS_MIN_DAYS 0
19 PASS_MIN_LEN2
20 PASS_WARN_AGE 7
21
22 #
23 # Min/max values for automatic uid selection in useradd
24 #

*②:【/etc/default/useradd   文件是当创建用户时,系统对账户本身的共通属性】
[root@rhel52 etc]# vim /etc/default/useradd
1 # useradd defaults file
2 GROUP=100
3 HOME=/home #user home
4 INACTIVE=-1#not stop the account when expire
5 EXPIRE=#this day it will stop
6 SHELL=/bin/bash#shell cat
7 SKEL=/etc/skel #copy these file to new user's home【注意他的指向】
*③:【/etc/skel/*             文件是当创建用户时,系统对账户模板的个性应用】
[root@rhel52 etc]# vim /etc/skel/
" =============================================================
" Netrw Directory Listing(netrw v102)
"   /etc/skel
"   Sorted by      name
"   Sort sequence: [\/]$,*,\.bak$,\.o$,\.h$,\.info$,\.swp$,\.obj$
"   Quick Help: :help  -:go up dir  D:delete  R:rename  s:sort-by  x:exec
" =============================================================
../
./
.kde/
.bash_logout
.bash_profile
.bashrc
.emacs
.zshrc


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/99388/showart_2002539.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP