碰见一个奇怪的问题
我把一个路径权限改成750了之后,sudo ls -l 就不能用*去查了,把路径打全是没有问题的
root@172-16-3-109:/var/# chmod 750 www
root@172-16-3-109:/var/# cd www
root@172-16-3-109:/var/www# mkdir xxx
root@172-16-3-109:/var/www# cd xxx
root@172-16-3-109:/var/www/xxx# touch lcgogo
root@172-16-3-109:/var/www/xxx# exit
logout
# sudo ls -l 全路径查询没有问题
sysadmin@172-16-3-109:/tmp$ sudo ls -l /var/www/xxx
total 0
-rw-r--r-- 1 root root 0 Jan 24 11:14 lcgogo
# sudo ls -l 加*就找不到
sysadmin@172-16-3-109:/tmp$ sudo ls -l /var/www/xx*
ls: cannot access '/var/www/xx*': No such file or directory
# 改成755就正常能找到
sysadmin@172-16-3-109:/tmp$ sudo chmod 755 /var/www
sysadmin@172-16-3-109:/tmp$ sudo ls -l /var/www/xx*
total 0
-rw-r--r-- 1 root root 0 Jan 24 11:14 lcgogo
# 改成750就又不行了
sysadmin@172-16-3-109:/tmp$ sudo chmod 750 /var/www
sysadmin@172-16-3-109:/tmp$ sudo ls -l /var/www/xx*
ls: cannot access '/var/www/xx*': No such file or directory
sysadmin@172-16-3-109:/tmp$ sudo ls -l /var/www/xxx
total 0
-rw-r--r-- 1 root root 0 Jan 24 11:14 lcgogo
sysadmin@172-16-3-109:/tmp$
sysadmin@172-16-3-109:/tmp$ ls -l /var/
total 48
drwxr-xr-x 2 root root 4096 Jan 24 06:25 backups
drwxr-xr-x 14 root root 4096 Jan 18 15:31 cache
drwxrwxrwt 2 root root 4096 Aug 3 2021 crash
drwxr-xr-x 44 root root 4096 Jan 22 18:40 lib
drwxrwsr-x 2 root staff 4096 Apr 15 2020 local
lrwxrwxrwx 1 root root 9 Aug 3 2021 lock -> /run/lock
drwxrwxr-x 8 root syslog 4096 Jan 24 00:00 log
drwxrwsr-x 2 root mail 4096 Aug 3 2021 mail
drwxr-xr-x 2 root root 4096 Aug 3 2021 opt
lrwxrwxrwx 1 root root 4 Aug 3 2021 run -> /run
drwxr-xr-x 6 root root 4096 Jan 18 06:27 snap
drwxr-xr-x 4 root root 4096 Aug 3 2021 spool
drwxrwxrwt 7 root root 4096 Jan 24 10:54 tmp
drwxr-x--- 3 root root 4096 Jan 24 11:14 www
--
修改:lcgogo FROM 123.127.2.*
FROM 123.127.2.*