码迷,mamicode.com
首页 > 系统相关 > 详细

linux笔记_day06

时间:2017-05-13 12:26:20      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:logs   info   job   form   home   ntc   基本   named   usr   

1.用户:表示符,凭证

2.用户组:表示符

进程也是有属主和属组的

安全上下文(secure context):

 

技术分享

 

用户:UID,/etc/pawwd

组:GID ,/etc/group

影子口令:

  用户:/etc/shadow

    组:/etc/gshadow

用户类别:

  管理员:uid=0

  普通用户:1-65535

    系统用户1-499(后台进程的属主)

    一般用户500-60000

用户组类别:

  基本组:用户的默认组

  私有组: 在创建用户时,如果没有给用户指定其所属的组,系统会默认给用户创建一个和用户同名的组。

  附加组:

进程被发起之前是个可执行文件,文件执行之前的权限,进程的权限是进程发起者的身份(进程可以使用那些资源文件,由发起者决定,不是文件的所属者)

[root@good eric usr]# whatis passwd
passwd               (1)  - update user‘s authentication tokens
passwd               (5)  - password file
passwd [sslpasswd]   (1ssl)  - compute password hashes
[root@good eric usr]# man 5 passwd


The field descriptions are:

              account   the name of the user on the system.  It should not contain capital letters.

              password  the encrypted user password, an asterisk (*), or the letter ‘x‘.  (See pwconv(8) for an  expla-
                        nation of ‘x‘.)

              UID       the numerical user ID.

              GID       the numerical primary group ID for this user.

              GECOS     This field is optional and only used for informational purposes.  Usually, it contains the full
                        username.  GECOS means General Electric Comprehensive Operating System, which has been  renamed
                        to  GCOS  when GE’s large systems division was sold to Honeywell.  Dennis Ritchie has reported:
                        "Sometimes we sent printer output or batch jobs to the GCOS machine.  The  gcos  field  in  the
                        password file was a place to stash the information for the $IDENTcard.  Not elegant."

              directory the user’s $HOME directory.

              shell     the  program to run at login (if empty, use /bin/sh).  If set to a non-existing executable, the
                        user will be unable to login through login(1).用户默认shell

 

linux笔记_day06

标签:logs   info   job   form   home   ntc   基本   named   usr   

原文地址:http://www.cnblogs.com/jycjy/p/6848506.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!