Calendar
<<  < 2009 - 12 >  >>
12
3456789
10111213141516
17181920212223
24252627282930
31
Placard
Category
Latest Entries
Latest Comments
Last Messages
User Login
    
 用户注册 忘记密码
Links
Information
  • 日志:153
  • 评论:14
  • 留言:0
  • 访问:78067
Search
Other


Welcome to my blog!
  linux 能否实现用户登录运行脚本? 
  可以。用户登录时,Bash 首先执行全局登录脚本(由 root 建立) /etc/profile,然后在用户起始目录下依次寻找 .bash_profile、.bash_login、.profile 三个文件,执行最先找到的一个。可以用这种办法像 Netware 一样为不同的用户定制运行环境。
此外,用户退出登录时还可以运行 .bash_logout 脚本。
[ 阅读全文(230) | 回复(0) | 引用通告(0) | 编辑

  Post  by  badboy 发表于 2006-12-26 7:04:00
发表评论:
粗体 斜体 下划线 插入引用 插入表情
坏男孩