linux 提示无法执行二进制文件! 用的CentOS和RH都是这个提示!Ubuntu没有提示!
发布网友
发布时间:2022-04-28 16:15
我来回答
共3个回答
热心网友
时间:2023-09-12 06:53
那你就自己把QQ在重新编译一次然后安装
热心网友
时间:2023-09-12 06:53
希望你能看得懂下面的演示
[fenggz@localhost ~]$ ll
total 20
-rw-r--r-- 1 root root 60 Dec 12 00:37 helloworld.c
-rw-r--r-- 1 root root 4734 Dec 12 00:37 Helloworld.out
[fenggz@localhost ~]$ ./Helloworld.out
-bash: ./Helloworld.out: Permission denied
[fenggz@localhost ~]$ chmod +x Helloworld.out
chmod: changing permissions of `Helloworld.out': Operation not permitted
[fenggz@localhost ~]$ su root
Password:
[root@localhost fenggz]# chmod +x Helloworld.out
[root@localhost fenggz]# exit
exit
[fenggz@localhost ~]$ ll
total 20
-rw-r--r-- 1 root root 60 Dec 12 00:37 helloworld.c
-rwxr-xr-x 1 root root 4734 Dec 12 00:37 Helloworld.out
[fenggz@localhost ~]$
[fenggz@localhost ~]$ ./Helloworld.out
Hello world.
[fenggz@localhost ~]$
[fenggz@localhost ~]$ ll
total 20
-rw-r--r-- 1 root root 60 Dec 12 00:37 helloworld.c
-rwxr-xr-x 1 root root 4734 Dec 12 00:37 Helloworld.out
[fenggz@localhost ~]$ su root
Password:
[root@localhost fenggz]# chmod g-x Helloworld.out
[root@localhost fenggz]# exit
exit
[fenggz@localhost ~]$ ll
total 20
-rw-r--r-- 1 root root 60 Dec 12 00:37 helloworld.c
-rwxr--r-x 1 root root 4734 Dec 12 00:37 Helloworld.out
[fenggz@localhost ~]$ ./Helloworld.out
Hello world.
[fenggz@localhost ~]$ su root
Password:
[root@localhost fenggz]# chmod 774 Helloworld.out
[root@localhost fenggz]# ll
total 20
-rw-r--r-- 1 root root 60 Dec 12 00:37 helloworld.c
-rwxrwxr-- 1 root root 4734 Dec 12 00:37 Helloworld.out
[root@localhost fenggz]# ./Helloworld.out
Hello world.
[root@localhost fenggz]# exit
exit
[fenggz@localhost ~]$ ll
total 20
-rw-r--r-- 1 root root 60 Dec 12 00:37 helloworld.c
-rwxrwxr-- 1 root root 4734 Dec 12 00:37 Helloworld.out
[fenggz@localhost ~]$ ./Helloworld.out
-bash: ./Helloworld.out: Permission denied
[fenggz@localhost ~]$ ll
total 20
-rw-r--r-- 1 root root 60 Dec 12 00:37 helloworld.c
-rwxrwxr-- 1 root root 4734 Dec 12 00:37 Helloworld.out
[fenggz@localhost ~]$
热心网友
时间:2023-09-12 06:54
输入ls -l xx,看是否有执行权限,没有权限输入chmod 777 xx修改权限