- 论坛徽章:
- 0
|
本帖最后由 shileiadmin 于 2011-04-05 13:59 编辑
- [root@LINUX ~]# usermod -d /home/shilei/shell -u 500
- usermod: user 500 does not exist
复制代码 环境:
[root@LINUX ~]# uname -a
Linux LINUX 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 i686 i686 i386 GNU/Linux
[root@LINUX ~]# file /home/shilei/shell
/home/shilei/shell: directory
[shileiadmin@LINUX ~]$ id
uid=500(shileiadmin) gid=500(shilei) groups=500(shilei)
[root@LINUX ~]# grep 500 /etc/passwd
shileiadmin :500:500:shilei:/home/shilei:/bin/bash
另外,确认ID为500的用户此时没有登录到系统中,我用ROOT直接登录系统进行修改的,不知为何
不能修改主目录,多谢各位! |
|