fujiefujie 于 2011-01-13 01:35:28发表:
以下是我的实验过程:
[root@localhost /]# useradd ggg
[root@localhost /]# passwd ggg
Changing password for user ggg.
New UNIX password:
BAD PASSWORD: it is WAY too short
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost /]# tail -1 /etc/passwd
ggg:x:502:502::/home/ggg:/bin/bash
[root@localhost /]# mkdir ggg
[root@localhost /]# ls ./
bin etc lib misc net root srv tmp var
boot ggg lost+found mmm opt sbin sys ttt
dev home media mnt proc selinux tftpboot usr
[root@localhost /]# chmod 777 ggg
[root@localhost /]# ls -ld /ggg
drwxrwxrwx 2 root root 4096 01-13 01:28 /ggg
[root@localhost /]# mount -o uid=501,gid=501 /dev/web/web_v1 /ggg
[root@localhost /]# cd ggg
[root@localhost ggg]# ls -ld ./
drwxrwxrwx 4 root root 4096 01-13 01:25 ./
[root@localhost ggg]# su sunyu
[sunyu@localhost ggg]$ ls -ld ./
drwxrwxrwx 4 root root 4096 01-13 01:25 ./
[sunyu@localhost ggg]$ cd /
[sunyu@localhost /]$ ls -ld /ggg
drwxrwxrwx 4 root root 4096 01-13 01:25 /ggg
[sunyu@localhost /]$ cd ggg
[sunyu@localhost ggg]$ mkdir ggg
[sunyu@localhost ggg]$ ls -ld ggg
drwxrwxr-x 2 sunyu sunyu 4096 01-13 01:32 ggg
[sunyu@localhost ggg]$ cd ggg
[sunyu@localhost ggg]$ touch ggg
[sunyu@localhost ggg]$ ls
ggg
[sunyu@localhost ggg]$ ls -l ggg
-rw-rw-r-- 1 sunyu sunyu 0 01-13 01:32 ggg
[sunyu@localhost ggg]$