以root身份登录redhat linux3.9。进入目录/opt/backup/jes5/Linux_x86
# ls -l
-rw-r--r-- 1 root root 8370 2007-08-20 installer
drwxr-xr-x 15 root root 4096 2007-08-20 Product
-rw-r--r-- 1 root root 94 2007-08-20 release_info
# chmod a+x installer
# ls -l总用量 20
-rwxr-xr-x 1 root root 8370 2007-08-20 installer
drwxr-xr-x 15 root root 4096 2007-08-20 Product
-rw-r--r-- 1 root root 94 2007-08-20 release_info
#./installer
/var/sadm/prod/sun-app-entsys5u1i/Linux_x86/install: line 186: /var/sadm/prod/sun-app-entsys5u1i/Linux_x86/.install/j2se_jre/bin/java: 权限不够
/var/sadm/prod/sun-app-entsys5u1i/Linux_x86/install: line 1: /var/sadm/prod/sun-app-entsys5u1i/Linux_x86/.install/j2se_jre/bin/java: 权限不够
但是,在同事机器上(环境一样)执行上面那段命令则能够进入安装。
请教大虾这是为何?
|
说的意思是你没有权限执行下面的
/var/sadm/prod/sun-app-entsys5u1i/Linux_x86/.install/j2se_jre/bin/java
而不是当前目录下的installer 去确认一下吧
|
# ls -al
看看是否是ln文件
chmod 777 试试
|
对哦,直接777