Article 57K3N sudo works for some commands and doesn't work for others

sudo works for some commands and doesn't work for others

by
JockVSJock
from LinuxQuestions.org on (#57K3N)
Started a new job, where I use RHEL physical servers, I'm npt the Linux admin.

I'm installing Nexus software and the Linux admin stated he put my user in the sudoers file (there is no way for me to confirm this).

I was able to create the following user by using sudo:

Code:sudo useradd -c "nexus admin user" nexusHowever when it came to create the directory structure for the software install under /opt

Code:sudo mkdir -p /opt/nexusI wasn't successful as root:root owns /opt.

So I'm not understanding why sudo works and sometimes it doesn't.

thankslatest?d=yIl2AUoC8zA latest?i=B6aK5c4iXEA:uorQtG2DXeY:F7zBnMy latest?i=B6aK5c4iXEA:uorQtG2DXeY:V_sGLiP latest?d=qj6IDK7rITs latest?i=B6aK5c4iXEA:uorQtG2DXeY:gIN9vFwB6aK5c4iXEA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments