Are sesu/sesudo supported by Delphix?

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
I'm trying to setup an environment that it's using sesu/susudo to manage
privilege elevation profiles.
Does Delphix support them?
Photo of Thom T

Thom T

  • 838 Points 500 badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Sandro Latini

Sandro Latini, Employee

  • 420 Points 250 badge 2x thumb
Official Response
Hi Thom,

Mouhssine pointed out a great KB, where you can find more information and some examples on how privilege elevation profiles scripts can be created.
In the specific case of sesudo, you can use the following example of dlpx_pfexec script as a reference:

# Copyright 2016 Delphix. All rights reserved.                      
# - Read the password from stdin.                                   
# - Execute the passed command with elevated privileges.            
# - Output both stdout and stderr of the executed command to stdout.

read passwd                                                         
/usr/bin/sesudo "$@"                         
if [ $response -ne 0 ]; then                                       
   echo "ERROR: Sesudo error ($response)"                          
   echo "$@"                                                       
   exit 1                                                          

Please remember to double check all the security profiles and the permissions for the user you're trying to set up, as we found it's the most cause of issues.