LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 853|回复: 6

如何使用户登陆系统后看到一个欢迎信息?

[复制链接]
发表于 2004-10-13 02:33:08 | 显示全部楼层 |阅读模式
要使用户登陆系统后看到一个欢迎信息
应该在系统中如何实现?

应该修改什么文件??????

谢谢!
发表于 2004-10-13 09:14:18 | 显示全部楼层
修改/etc/issue
发表于 2004-10-13 12:41:48 | 显示全部楼层
修改/etc/motd
发表于 2004-10-13 17:36:25 | 显示全部楼层
最初由 河边星星 发表
修改/etc/motd

我怎么没有/etc/motd?
发表于 2004-10-15 10:40:31 | 显示全部楼层

空的

我的/etc/motd是空的??
发表于 2004-10-15 11:19:10 | 显示全部楼层
。那就填写东西进去咯
发表于 2004-10-16 09:53:57 | 显示全部楼层
/etc/issue is the first message that is displayed immediately before the login prompt, while /etc/motd (Message Of The Day) is displayed once a user has successfully logged in.  I'm not sure about other distributions, but if you use Gentoo, the "message of the day" file is defined in /etc/login.defs.  Also you might like to try the following:
# echo 'date > /etc/motd && cal >> /etc/motd' >> /etc/conf.d/local.start
so every time you log in you get to know the date and the time.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表