Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
replaced http://superuser.com/ with https://superuser.com/
Source Link

The following happened to me:

$ sudo su - superman Sorry, user clarkkent is not allowed to execute '/bin/su - superman' as root in krypton101. 

However the following worked fine:

$ sudo su superman 

When is it useful to allow a user to do sudo su but not sudo su -? How is this setting set / unset? I read this pagethis page but it didn't help.

More details:

  • I am not the administrator
  • I don't have access to /etc/sudoers
  • the distribution is Centos 7

The following happened to me:

$ sudo su - superman Sorry, user clarkkent is not allowed to execute '/bin/su - superman' as root in krypton101. 

However the following worked fine:

$ sudo su superman 

When is it useful to allow a user to do sudo su but not sudo su -? How is this setting set / unset? I read this page but it didn't help.

More details:

  • I am not the administrator
  • I don't have access to /etc/sudoers
  • the distribution is Centos 7

The following happened to me:

$ sudo su - superman Sorry, user clarkkent is not allowed to execute '/bin/su - superman' as root in krypton101. 

However the following worked fine:

$ sudo su superman 

When is it useful to allow a user to do sudo su but not sudo su -? How is this setting set / unset? I read this page but it didn't help.

More details:

  • I am not the administrator
  • I don't have access to /etc/sudoers
  • the distribution is Centos 7
added 125 characters in body
Source Link
usual me
  • 151
  • 1
  • 3

The following happened to me:

$ sudo su - superman Sorry, user clarkkent is not allowed to execute '/bin/su - superman' as root in krypton101. 

However the following worked fine:

$ sudo su superman 

When is it useful to allow a user to do sudo su but not sudo su -? How is this setting set / unset? I read this page but it didn't help.

More details:

  • I am not the administrator
  • I don't have access to /etc/sudoers
  • the distribution is Centos 7

The following happened to me:

$ sudo su - superman Sorry, user clarkkent is not allowed to execute '/bin/su - superman' as root in krypton101. 

However the following worked fine:

$ sudo su superman 

When is it useful to allow a user to do sudo su but not sudo su -? How is this setting set / unset? I read this page but it didn't help.

The following happened to me:

$ sudo su - superman Sorry, user clarkkent is not allowed to execute '/bin/su - superman' as root in krypton101. 

However the following worked fine:

$ sudo su superman 

When is it useful to allow a user to do sudo su but not sudo su -? How is this setting set / unset? I read this page but it didn't help.

More details:

  • I am not the administrator
  • I don't have access to /etc/sudoers
  • the distribution is Centos 7
edited tags
Link
terdon
  • 252.7k
  • 69
  • 481
  • 719
Source Link
usual me
  • 151
  • 1
  • 3
Loading