This is now live - passwordless sude, password auth and webssh port can now be set through the API
Ouhiachi Said
•
Oct 17, 2024
yeah great it’s work success 100%
Arni Johannesson
Team•
Oct 17, 2024
Hello! Can you please expand on this feature request to let us know exactly what you need?
The obvious answer is that you would want to toggle passwordless sudo through an api endpoint. If this is the case, great - good suggestion :)
As a workaround for now, you can in theory just run a script on the server through the API to do the same thing, here is an example script:
#!/bin/bash#Turns off password requirement for sudo commands for all members of the sudo groupecho"%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
#Here is an example of how you can limit passwordless sudo to just a single user, where admin is the user#echo "admin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
Log in to comment and vote
Comments3
Arni Johannesson
Feb 17
This is now live - passwordless sude, password auth and webssh port can now be set through the API
Ouhiachi Said
Oct 17, 2024
yeah great it’s work success 100%
Arni Johannesson
Oct 17, 2024
Hello! Can you please expand on this feature request to let us know exactly what you need?
The obvious answer is that you would want to toggle passwordless sudo through an api endpoint. If this is the case, great - good suggestion :)
As a workaround for now, you can in theory just run a script on the server through the API to do the same thing, here is an example script:
#!/bin/bash #Turns off password requirement for sudo commands for all members of the sudo group echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers #Here is an example of how you can limit passwordless sudo to just a single user, where admin is the user #echo "admin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers