免费注册 查看新帖 |

Chinaunix

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

有關adduser的問題. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-02-04 09:57 |只看该作者 |倒序浏览
各位大大想問一個很菜的問題.
useradd 和 adduser 的分別在那麼呢, 好像在slackware中, useradd是沒有在/home下開啟使用者空間, 要用adduser系統才會在/home內建立使用者空間. 請問這二個分別在那? 還是沒有分別呢?

再請問, 如何在系統內開啟一個新用戶帳號, 但它是system用的. 即沒有使用者空間在/home內呢?
我查看像 useradd -system -g group xxx

請各位指教.

论坛徽章:
0
2 [报告]
发表于 2005-02-04 10:06 |只看该作者

有關adduser的問題.

很多系统中,adduser是一个脚本。在RedHat9.0中,adduser是useradd的连结。

原帖由 "man useradd<RedHat9.0>;" 发表:

-m     The  user's home directory will be created if it does not exist.
              The files contained in skeleton_dir will be copied to  the  home
              directory  if  the  -k  option is used, otherwise the files con-
              tained in /etc/skel will be used instead.  Any directories  con-
              tained  in  skeleton_dir  or  /etc/skel  will  be created in the
              user's home directory as well.  The -k option is only  valid  in
              conjunction  with  the  -m option.  The default is to not create
              the directory and to not copy any files.
        
                                                                       
       -M     The user home directory will not be created, even if the  system
              wide settings from /etc/login.defs is to create home dirs.

论坛徽章:
0
3 [报告]
发表于 2005-02-06 22:33 |只看该作者

有關adduser的問題.

他们其中一个是另一个的符号连接
或者一个是另一个的脚本实现
(在不同版本上是不同的)

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
4 [报告]
发表于 2005-02-06 23:03 |只看该作者

有關adduser的問題.

man useradd
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP