我是 Ubuntu 操作系统的新手(已安装 14.04.2)。我尝试安装 Oracle 软件,但出现“权限被拒绝”错误。我已经使用“chmod 777”更改了文件的权限,我也尝试以 root 用户身份操作,但还是无济于事。
oracle@sysadmin-Lenovo-B460e:~$ pwd
/home/oracle
oracle@sysadmin-Lenovo-B460e:~$ ls -ltr
total 32
drwxr-xr-x 2 oracle oinstall 4096 Apr 17 17:57 Videos
drwxr-xr-x 2 oracle oinstall 4096 Apr 17 17:57 Templates
drwxr-xr-x 2 oracle oinstall 4096 Apr 17 17:57 Public
drwxr-xr-x 2 oracle oinstall 4096 Apr 17 17:57 Pictures
drwxr-xr-x 2 oracle oinstall 4096 Apr 17 17:57 Music
drwxr-xr-x 2 oracle oinstall 4096 Apr 17 17:57 Downloads
drwxr-xr-x 2 oracle oinstall 4096 Apr 17 17:57 Documents
drwxr-xr-x 3 oracle oinstall 4096 Apr 17 17:59 Desktop
oracle@sysadmin-Lenovo-B460e:~$ cd Desktop
oracle@sysadmin-Lenovo-B460e:~/Desktop$ ls -ltr
total 4
drwxrwxrwx 3 oracle oinstall 4096 Apr 17 12:42 linux_11gR2_database
oracle@sysadmin-Lenovo-B460e:~/Desktop$ cd linux_11gR2_database
oracle@sysadmin-Lenovo-B460e:~/Desktop/linux_11gR2_database$ ls -ltr
total 4
drwxrwxrwx 8 oracle oinstall 4096 Apr 12 17:32 database
oracle@sysadmin-Lenovo-B460e:~/Desktop/linux_11gR2_database$ cd database
oracle@sysadmin-Lenovo-B460e:~/Desktop/linux_11gR2_database/database$ ls -ltr
total 40
-rwxrwxrwx 1 oracle oinstall 4352 Aug 13 2009 runInstaller
-rw------- 1 oracle oinstall 5400 Aug 17 2009 welcome.html
drwxrwxrwx 12 oracle oinstall 4096 Apr 12 17:29 doc
drwxrwxrwx 4 oracle oinstall 4096 Apr 12 17:30 install
drwxrwxrwx 2 oracle oinstall 4096 Apr 12 17:30 response
drwxrwxrwx 2 oracle oinstall 4096 Apr 12 17:30 rpm
drwxrwxrwx 2 oracle oinstall 4096 Apr 12 17:30 sshsetup
drwxrwxrwx 14 oracle oinstall 4096 Apr 12 17:32 stage
oracle@sysadmin-Lenovo-B460e:~/Desktop/linux_11gR2_database/database$ sh runInstaller
runInstaller: 137: runInstaller: /home/oracle/Desktop/linux_11gR2_database/database/install/.oui: Permission denied
oracle@sysadmin-Lenovo-B460e:~/Desktop/linux_11gR2_database/database$ sudo su root
[sudo] password for oracle:
root@sysadmin-Lenovo-B460e:/home/oracle/Desktop/linux_11gR2_database/database# sh runInstaller
runInstaller: 137: runInstaller: /home/oracle/Desktop/linux_11gR2_database/database/install/.oui: Permission denied
root@sysadmin-Lenovo-B460e:/home/oracle/Desktop/linux_11gR2_database/database#
任何建议/帮助对我来说都会很有帮助。
多谢..
答案1
您需要检查.oui
位于 的文件的权限/home/oracle/Desktop/linux_11gR2_database/database/install/.oui
。请授予其读取、写入、执行权限。
chmod 777 -R /home/oracle/Desktop/linux_11gR2_database/database/
请检查oraInst.loc
位于的权限 权限/etc/oraInst.loc
应该是
-rw-r--r-- root root /etc/oraInst.loc
通过以 root 用户身份执行来设置此权限
chmod 755 oraInst.loc