Skip to main content

Delinea Shorts Video - Leveraging Unix Templates in Secret Server

  • May 21, 2021 10:27 PM UTC
  • Oct 1, 2024 3:34 AM UTC
  • 20 replies
  • 188 views

Post any questions or experiences you have below leveraging Unix Templates in Secret Server.

 

20 replies

  • May 24, 2021 1:28 PM UTC

What’s the name of the 3rd party library that Secret Server uses to communicate via SSH to Unix/Linux machines?


  • May 26, 2021 1:45 PM UTC

How do you perform the verify password change when using root (and root isn’t allowed to SSH)?


  • Author
  • Customer Success
  • Jun 11, 2021 6:53 PM UTC

Hi Spencer,

Thycotic uses SecureBlackBox as the third party library to make the SSH connection.


  • Author
  • Customer Success
  • Jun 11, 2021 6:56 PM UTC

Hi Stefan,

There are two alternatives.

The first is to set up an “admin” account that has access to sudo to make passwd change for users. You can do this by adding the “admin” user to the wheel group. See https://developers.redhat.com/blog/2018/08/15/how-to-enable-sudo-on-rhel# for how to do so on RHEL and Centos. The group is called sudo in Ubuntu.

Using the same commands shown in in the video for the password changer and using the new “admin” account as the associated secret, this will allow for that account to sudo passwd the user.

The second option is to store the root credentials in Secret Server. (Note these will NOT be able to be managed by Secret Server)

Then create a separate password changer as shown below:

This will need two associated secrets added to the secrets. One will be a known admin account that is used to login to the machine, then the second associated secret will be the root account. The admin account will do the authentication then su to the root for the password to be rotated.


  • Jun 14, 2022 5:11 PM UTC

no questions, great information


  • Nov 7, 2022 9:56 PM UTC

This also works great for anything that just has SSH credentials. The custom password changer is really useful, for example, with Cisco TACACS+, which has some unusual methods for changing a password.


  • Feb 16, 2023 6:21 PM UTC

Not applicable, but good to know


  • Feb 24, 2023 3:37 AM UTC

The template work well.


  • Apr 19, 2023 1:52 PM UTC

Seems handy but we tend to disable SSH.


  • Jul 31, 2023 7:15 AM UTC

We don’t currently use for Unix systems, but good information non the less.


  • Sep 21, 2023 1:42 PM UTC

Great information. Although in the current release I have experienced problems with the root account takeover. Hoping they get this fixed in the next release.


  • Jan 25, 2024 1:59 PM UTC

Going to work with TACAS so hope this helps


  • Apr 4, 2024 7:21 PM UTC

Don’t have a ton of Unix, but there are some scenarios where this will be useful/needed.


  • May 15, 2024 1:29 PM UTC

Great information, these shorts have been helping a lot. Makes it easier to first view this video and then go to support for further questions


  • May 23, 2024 11:02 AM UTC

Thanks for the info.


  • Jul 24, 2024 1:12 PM UTC

Going to work with TACAS so hope this helps


  • Aug 7, 2024 3:11 PM UTC

great info, will look into the template


  • Aug 30, 2024 10:38 AM UTC

I guess this topic is known to us so will be ok even without video.


  • Aug 31, 2024 7:19 AM UTC

Using and created some new templates. But video unavailable.


  • Nov 12, 2024 2:08 PM UTC

How do you perform the verify password change when using root (and root isn’t allowed to SSH)?

Well you could choose either a Unix SU takeover template with a dependencie secret or you can make it more sofisticated you could cosider my idea on this topic:

 

  1. You need to create two different paswordchangers : one for root and one for “changer” :

    the “changer” makes the ssh login and will be ask for root passwort imediately (because of shell = /bin/su )  after login was successful. The changer kann change the password for root (beause it is root already) 
    and root can (after you providd roots password after login) change the password for the “changer” 
    You have to take care of the right steps and commands  in the hearbeat and password change section of the newly created paswordchanger (remember one for unix account and one for the “changer” account

  2. then you need to create to tempates: the one for root with out ssh (so no launcher is needed ) and the one for the “changer” with ssh  (launcher is needed) and asinge the right passwordchanger you dreated earlier to it . Mak sure proxying is enabled too!

  3. on unix create a user name it “changer” or what ever your coice of name is, give this user the bash /bin/su and the right to do ssh  login nothing else!
  1. now you need two secrets : one for the root and one for  “changer” account and associate each other ! The assoication is needed for heartbeat and the password change:

so  $[0]username is the user in the secret itself , $[1]username is user of the associated secret 

 

With the su -id (on unix after logged in to the secret server terminal) the root secet still works for this, to become root with every user who has the right to view and use the root secret. But you just cant ssh with root itself ;-) 

and the unix user “changer” is not abel to do other then become root :-) 

Hope this helps you 

 

Greetings 

Diana