Chinaunix

标题: 有關adduser的問題. [打印本页]

作者: 惠繪洋    时间: 2005-02-04 09:57
标题: 有關adduser的問題.
各位大大想問一個很菜的問題.
useradd 和 adduser 的分別在那麼呢, 好像在slackware中, useradd是沒有在/home下開啟使用者空間, 要用adduser系統才會在/home內建立使用者空間. 請問這二個分別在那? 還是沒有分別呢?

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

請各位指教.
作者: 零二年的夏天    时间: 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.
作者: linuxsir_XP    时间: 2005-02-06 22:33
标题: 有關adduser的問題.
他们其中一个是另一个的符号连接
或者一个是另一个的脚本实现
(在不同版本上是不同的)
作者: 寂寞烈火    时间: 2005-02-06 23:03
标题: 有關adduser的問題.
man useradd




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