LinuxSir.cn,穿越时空的Linuxsir!

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

用命令改变当前用户的用户名

[复制链接]
奋斗的毛毛虫 该用户已被删除
发表于 2007-5-3 12:10:50 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2007-5-3 13:55:48 | 显示全部楼层
usermod 帮助中有这么一段:


CAVEATS
      [color="Red"] usermod will not allow you to change the name of a user who is logged
       in.
You must make certain that the named user is not executing any
       processes when this command is being executed if the user’s numerical
       user ID is being changed. You must change the owner of any crontab
       files manually. You must change the owner of any at jobs manually. You
       must make any changes involving NIS on the NIS server.
回复 支持 反对

使用道具 举报

发表于 2007-5-5 02:19:20 | 显示全部楼层
貌似这样改比较烦琐
回复 支持 反对

使用道具 举报

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

本版积分规则

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