Four Ways to Get Rid of a Shared Admin Password
ON THIS PAGE
Every organisation has at least one: the root password of a server, the sa account of a database, a shared user left behind by a former administrator. Three people know it, in reality ten do, and nobody changes it because nobody knows what would break. This post covers four ways to remove it and when each one fits.
The problem is not the password, it is that it is shared
Whoever signs in with a shared password shows up in the server log only as "root". You cannot tell who it was, you should change the password when someone leaves, and you do not. All four fixes do the same thing: they shorten the life of the password or take it out of a person's hands.
1. Rotate the password automatically
This takes the least effort. The Connector changes the account's password one minute after a session ends, or every 7, 30 or 90 days: it generates a random 24-character password, changes it on the target and checks that it signs in. It works for Linux, Windows (local and Active Directory) and database accounts.
2. Lend the real password for a set time
Sometimes the password itself is needed: a vendor tool that cannot go through Captivo, or a repair during an outage. With check-out, a person with the right entitlement writes a reason and takes the password for 1, 4, 8 or 24 hours. Only one person can hold it at a time, it is opened only in their browser and shown once. When the time runs out or it is returned, it is changed. Who took it, with what reason, until when and how it ended is written to the audit log.
3. Keep no password at all on Linux
With an SSH certificate, no password or key sits on the resource. For every session the Connector signs a certificate for that account that is valid for two minutes. The server's own log shows on whose behalf the sign-in was made. The server has to accept certificate sign-in (TrustedUserCAKeys in OpenSSH); you set that up once, as an administrator.
4. Give each database connection its own user
On PostgreSQL and MySQL / MariaDB each connection gets a throwaway user that holds only the role you named, dropped when the connection closes. No standing login is left to steal, and each connection is separate in the database log.
Which to choose
- If you and your services are the only users of the password: do not switch anything on blindly; first find out which service uses it.
- If a vendor works with their own tool: check-out.
- On Linux servers: SSH certificates.
- On PostgreSQL and MySQL / MariaDB: a user per connection.
- Everywhere else: rotation.
Know the limits
Rotation turns passwords only; it does not touch SSH keys, VNC passwords or credentials in your own vault. Check-out gives a password only, never an SSH key or a Kubernetes token. A user per connection does not exist on SQL Server, Redis and MongoDB. When a resource is out of scope, the console says so on the form.
With Captivo Access
The four methods, and the option to keep secrets in HashiCorp, CyberArk, Azure Key Vault or AWS Secrets Manager, are on the credential management page. To prove what was done with the access, read recording vendor sessions.