Chinaunix

标题: linxu 的 系统用户用来干什么用的? [打印本页]

作者: qiuggv    时间: 2010-04-21 10:24
标题: linxu 的 系统用户用来干什么用的?
在 redhat 企业版4中

useradd -r 是添加一个系统用户,但是发现这个用户和普通用户没什么区别

echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/alex_super/bin

从环境变量来看,和普通用户可执行的命令好像也一样

----------------
请问一下高手,到底root超级用户、普通用户和这个系统用户有什么关系,这个系统用户主要是用来干什么用的?
作者: qiuggv    时间: 2010-04-21 11:08
自己帮顶下,希望各位帮忙解释一下
作者: linux初学三月    时间: 2010-04-21 12:44
用来专门使用比如打印等专用帐号
作者: dooros    时间: 2010-04-21 13:17
 -r

  此 参 数 是 用 来 建 立 系 统 帐 号 。 系 统 帐 号 的 UID 会 比 定 义 在 系 统 档 上 /etc/login.defs. 的 UID_MIN 来 的 小 。 注 意 useradd 此 用 法 所 建 立 的 帐 号 不 会 建 立 使 用 者 目 录 , 也 不 会 在 乎 纪 录 在 /etc/login.defs. 的 定 义 值 。 如 果 你 想 要 有 使 用 者 目 录 须 额 外 指 定 -m 参 数 来 建 立 系 统 帐 号 。 这 是 RED HAT 额 外 增 设 的 选 项 。
作者: dooros    时间: 2010-04-21 13:18
本帖最后由 dooros 于 2010-04-21 13:22 编辑

系统用户不等于超级用户。
作者: linux初学三月    时间: 2010-04-21 13:24
最好不要使用 -m ,可能会造成系统 不必要的错误
作者: vermouth    时间: 2010-04-21 18:41
没什么区别吧?
作者: missuniverse110    时间: 2010-04-21 21:14
UIDs are numbers from zero to 65534. The numbers are grouped as follows:

UIDs 0-99 are globally allocated by the Debian project and are used for system accounts. The "root" account, for instance, is UID 0.

UIDs 100-999 are for system users which have not been allocated by the Debian project.

UIDs 1000-29999 are normal user accounts.

UID 65534 is user "nobody", an account with no rights or permissions.
   
创建另一个root帐号:adduser -u 0 -o -g 0 -G 0,1,2,3,4,6,10 -M root2
Adduser command explanations:
       

Set the value of user id to 0.
       

Set the initial group number or name to 0
       

Set supplementary  group to:

0 = root

1 = bin

2 = daemon

3 = sys

4 = adm

6 = disk

10 = wheel
作者: linuxcorn    时间: 2010-04-22 13:35
没什么区别吧?
作者: qiuggv    时间: 2010-04-25 21:21
UIDs 100-999 are for system users which have not been allocated by the Debian project.


是不是这个用户只是逻辑上说是为系统用户准备的,其实和普通用户权限还是一样的




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2