网站大量收购独家精品文档,联系QQ:2885784924

Linux-Redhat用户管理.doc

  1. 1、本文档共16页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Linux-Redhat用户管理

User Administrator Overview: User policy Considerations The User Account Database - /etc/passwd Adding a New User Account User Private Groups Group Administration Modifying/Deleting Accounts Password Aging Policies Login Shell Scripts Non Login Shell Scripts Switching Accounts Sudo Network Users Authentication Configuration Example:NIS Configuration Example:LDAP Configuration File Ownership Linux File Permissions SUID/SGID Executables The Sticky Bit The Setgid Access Mode Default File Permissions Access Control Lists(ACLs) User Policy Considerations (管理user时需要考量的因素) Amount of system access except the user’s account (除了系统中已有的用户外有谁需要访问) The amount of access on system files and resources (有多少人来访问系统中的档案和资源) Whether to limit logins at certain times and places (是否限制某些用户在特定时间和地点才能访问系统) Expiration of password and accounts (用户密码使用的期限) Whether to force periodic password changes (是否需要强制定期修改密码) DISK usage and CPU limits (磁盘空间和CPU限制) Whether to enforce CPU and memory limits (是否限制用户使用的CPU和memory资源) Whether to enable disk quotas (是否需要使用磁盘配额) The User Account Database - /etc/passwd Contains account information used at login and by other programs (所有用户登陆的信息和其它程式) One account per line with seven colon-delimited fields (每个帐号使用1个行用5个冒号分为7个栏位) 第1栏为帐号名,第2栏X表示需要密码登陆,删除X表示无需密码即可登陆 第3栏是uid,其中root的uid是0,1-499保留为系统服务或 应用程式使用 手动建立的帐号uid从500开始 第4栏为gid,其中root的gid是0 第5栏为finger information可以编辑关于这个帐号的注解 可以使用finger命令查看帐号的注解 可以使用chfn命令来变更帐号的注解 第6栏为帐号的家目录位置 第7栏为帐号对应的shell类型 nologin表示这个帐号只能通过ftp进行登陆 False表示这个帐号只能收发邮件不能登陆系统 Should have permissions rw-r—r— (/ect/passwd 文档的权限不要更改否则其他用户可能登陆不了) Adding a New User Account Most common method is useradd useradd username Running useradd is equivalent to: Edit /etc/passwd,/etc/shadow,/etc/group Create and populate home directory Set permissions and ownership 实例: /home/user3中的文件都是从/etc/skel中复制过来的 Set account password using passwd Ac

您可能关注的文档

文档评论(0)

cgtk187 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档