- 論壇徽章:
- 0
|
本帖最后由 shileiadmin 于 2011-04-05 13:59 編輯
- [root@LINUX ~]# usermod -d /home/shilei/shell -u 500
- usermod: user 500 does not exist
復制代碼 環(huán)境:
[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的用戶此時沒有登錄到系統(tǒng)中,我用ROOT直接登錄系統(tǒng)進行修改的,不知為何
不能修改主目錄,多謝各位! |
|