In this shop root access is being handed out in a way that I'm not familiar with. See below. I have all the access I need, I was just wondering why the sudoers mechanism is not being used. I have to su to root and that by using the
sudo su - root
command. Nothing else works - see below. The /etc/sudoers
file is basically empty.
[linuxuser@lx-vm32 ~]$ sudo -i
[sudo] password for linuxuser:
Sorry, user linuxuser is not allowed to execute '/bin/bash' as root on lx-vm32.company.com.
[linuxuser@lx-vm32 ~]$ sudo ls
[sudo] password for linuxuser:
Sorry, user linuxuser is not allowed to execute '/bin/ls' as root on lx-vm32.company.com.
[linuxuser@lx-vm32 ~]$ sudo su root
[sudo] password for linuxuser:
Sorry, user linuxuser is not allowed to execute '/bin/su root' as root on lx-vm32.company.com.
[linuxuser@lx-vm32 ~]$ sudo su -
[sudo] password for linuxuser:
Sorry, user linuxuser is not allowed to execute '/bin/su -' as root on lx-vm32.company.com.
[linuxuser@lx-vm32 ~]$ sudo su - root
Last login: Tue Mar 5 08:10:58 CST 2019 on pts/3
[root@lx-vm32 ~]#
linuxuser
user, what doessudo -l
show you? It may be that this user is expressly limited tosudo su - root
.sudoers
file's contents to your question#includedir /etc/sudoers.d
?User linuxuser may run the following commands on lx-vm33: (ALL) NOPASSWD: /bin/su - root
And without password!