HOWTO: Discovery of SLES machine with sudo account may fail if sudoer file is default

  • 7970593
  • 16-Jul-2009
  • 26-Apr-2012

Environment

PlateSpin Portability Suite 8.1


Situation

Discovery of a SLES machine with a sudo account may fail if the user did not remove the 2 config lines in default configuration in sudo.  

The conversion of a SLES machine may fail when removing controller from target during configuration of target OS. 

 

 
By default, SLES configures sudo account to ask for the root password. In sudo configuration, SLES 11 has a comment to tell the user to delete the 2 following lines when configuring sudo: 
 
Defaults targetpw 
ALL ALL=(ALL) ALL 
 
  
Relevant part of sudo configuration file will look like this: 
# In the default (unconfigured) configuration, sudo asks for the root password. 
# This allows use of an ordinary user account for  administration of a freshly installed system. When configuring sudo, delete the two following lines: 
Defaults targetpw   # ask for the password of the target user i.e. root 
ALL ALL=(ALL) ALL   # WARNING! Only use this together with 'Defaults targetpw'! 
  
With these two lines, executing sudo commands will prompt for root's password.