我正在尝试在 Linux Ubuntu 10.04 上安装 Cisco VPN 客户端。安装程序创建目录,将所有必需的文件放入其中,然后无法启动二进制文件。我试着自己启动它,系统也责备我。仔细检查会得出以下结果:
eugene@eugene-desktop:/opt/cisco/vpn/bin$ sudo chmod u+x vpnagentd
eugene@eugene-desktop:/opt/cisco/vpn/bin$ ls -la
total 5124
drwxr-xr-x 2 root root 4096 2010-10-23 11:51 .
drwxr-xr-x 6 root root 4096 2010-10-23 11:51 ..
-rwxr-xr-x 1 root root 1607236 2010-10-23 11:51 vpn
-rwsr-xr-x 1 root root 1204692 2010-10-23 11:51 vpnagentd
-r--r--r-- 1 root root 697380 2010-10-23 11:51 vpndownloader.sh
-rwxr-xr-x 1 root root 1712708 2010-10-23 11:51 vpnui
-rwxr-xr-x 1 root root 3654 2010-10-23 11:51 vpn_uninstall.sh
eugene@eugene-desktop:/opt/cisco/vpn/bin$ ./vpnagentd
bash: ./vpnagentd: No such file or directory
eugene@eugene-desktop:/opt/cisco/vpn/bin$ sudo ./vpnagentd
sudo: unable to execute ./vpnagentd: No such file or directory
Run Code Online (Sandbox Code Playgroud)
文件名“vpnagentd”以红色背景的白色字母显示。正如预期的那样,其他三个可执行文件是黑色背景的绿色字母。
有任何想法吗?
通过系统设置ls(或更具体地说ls --color)查看文件时的颜色。使用dircolors -p查看您的配置的完整列表。
在该输出中,我看到:
# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
Run Code Online (Sandbox Code Playgroud)
您的示例具有红色背景和白色前景,因此我会查找带有 37(白色)和 41(红色)的代码。
$ dircolors -p | grep 37 | grep 41
SETUID 37;41 # file that is setuid (u+s)
Run Code Online (Sandbox Code Playgroud)
我们看到它是 setuid (根据 Ignacio 之前的回答)。
它是 setuid,如您的清单中所示。
| 归档时间: |
|
| 查看次数: |
13553 次 |
| 最近记录: |