EM13c在受控主机上安装agent,oracle用户需要添加sudo权限
添加文件的写权限
chmod u+w /etc/sudoers
编辑/etc/sudoers文件。也就是输入命令
vi /etc/sudoers
root ALL=(ALL) ALL --这行下面增加一行
oracle ALL=(ALL) ALL
撤销文件的写权限
chmod u-w /etc/sudoers
测试
[root@dfmc-dbaasp-02 ~]# su - oracle
[oracle@dfmc-dbaasp-02 ~]$ sudo ls /root --第一次需要输入密码
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for oracle:
anaconda-ks.cfg install.log install.log.syslog zxq.sh ?????? ????????? ?????? ?????? ?????? ?????? ?????? ??????
[oracle@dfmc-dbaasp