LINUX下用户要访问 其它 用户下面的目录和命令

发表时间:2014-11-05 12:22:08 78 linux
[tuxedo@yxfktux ~]$ id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba)
[tuxedo@yxfktux ~]$ id tuxedo
uid=54322(tuxedo) gid=54321(oinstall) groups=54321(oinstall),54322(dba)    
[tuxedo@yxfktux ~]$  cd $ORACLE_HOME 
-bash: cd: /home/oracle/app/oracle/product/11.2.0/dbhome_1: Permission denied

tuxedo 用户要访问 tuxedo 用户下面的目录加命令都没权限,应该怎么改?求答案

🎖️ 优质答案

  • anonymous
    8年前
    1. 切换为 oracle 用户或者root用户,给$ORACLE_HOME目录增加其他组用户访问目录的权限:chmod o+rx $ORACLE_HOME。 一劳永逸
    2. sudo cd $ORACLE_HOME
  • anonymous
    8年前

    答案:
    [oracle@yxfktux home]$ ll
    total 24

    drwx------. 6 oracle oinstall 4096 Nov 5 12:01 oracle

    [oracle@yxfktux home]$ chmod -R 775 oracle
    chmod: changing permissions of `oracle/app/oracle/product/11.2.0/dbhome_1/install/root_yxfktux_2014-11-05_10-19-10.log': Operation not permitted
    [oracle@yxfktux home]$ ls
    lost+found oracle tuxedo
    [oracle@yxfktux home]$ ll
    total 24

    drwxrwxr-x. 6 oracle oinstall 4096 Nov 5 12:01 oracle

  • 🚀 相关问题