Skip to content

[BUG] sudo password not autofilling on a shared host #717

@K0SS4

Description

@K0SS4

Title

sudo password not autofilling on a shared host

Platform

Website - Chrome

Server Installation Method

Docker

Version

2.2.1

Troubleshooting

The Problem

Hey. We have 4 users and around 30 SSH hosts with credentials. I created all of the credentials and hosts on one user and then shared the hosts to a role I created and assigned to every user. Every host has sudo auto-fill checked and it works on the user that created the host. When I try to auto-fill the password on a different user then it doesn't work. The only clue I have is that when clicking the confirm button on the "Insert password?" popup it generates some network traffic with an error:

Image

How to Reproduce

  1. Create a new user(not the admin)
  2. Create a new role
  3. Assign the role to the new user and the admin
  4. Log in to the new user
  5. Create a new credential and host
  6. Check the sudo auto-fill option
  7. Share the host with the created role
  8. Logout and log back in on the admin user
  9. Connect to the shared host
  10. Run something like sudo -l and try inserting the password

Additional Context

I tried adding the password in the optional field below the sudo auto-fill switch but it also doesn't work

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions