/etc/skel建立使用起来非常简单。它使所有在LFS系统上面的 新用户拥有一样的初始设置。 /etc/skel目录是被 /usr/sbin/useradd 使用的。 阅读man useradd可以得到更多信息 开始需要建立一个/etc/skel 目录,最好使用root用户。然后把 你想要新用户拥有的配置文件拷贝到/etc/skel目录。比如: .bash_profile, .bashrc, .bash_logout, dircolors, .inputrc, 和 .vimrc。 当使用 /usr/sbin/useradd建立新用户的时候使用 -m 参数,例如...
by coldrainsunc - Linux文档专区 - 2006-04-30 13:53:41 阅读(909) 回复(0)
galeki postin 基础知识 前两天在 Mumonitor 那里看到 /etc/skel 这个目录,忽然想起来还有这么个东西,估计很多人都忽略了这个目录的作用了吧。 那么这个 /etc/skel 目录是干啥的呢? skel 是 skeleton 的缩写,每当你新建一个用户的时候 (通过 useradd 命令),/etc/skel 目录下的文件,都会原封不动的复制到新建用户的家目录下~ 让我们看看 /etc/skel 目录下都有啥吧: localhost ~ # ls -a /etc/skel . .. .bash_logou...
各位老兄: 我的linux版本是:redhat linux AS4 为什么/etc/skel目录下什么文件都没有呀?我创建的用户/home/***/ 自然也是任何文件都没有? 那位大侠知道为什么呀?
各位老兄: 我的linux版本是:redhat linux AS4 为什么/etc/skel目录下什么文件都没有呀?我创建的用户/home/***/ 自然也是任何文件都没有? 那位大侠知道为什么呀?
/etc/skel/local.cshrc 是csh的模板 /etc/skel/local.profile 是Ksh和Bsh的模板 :em02: 那么 /etc/skel/local.login 是哪种shell的模板呢? 谢谢 :) :em02:
/etc/skel/local.cshrc 是csh的模板\r\n/etc/skel/local.profile 是Ksh和Bsh的模板\r\n :em02: 那么 /etc/skel/local.login 是哪种shell的模板呢?\r\n 谢谢 :) :em02: