Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: How to activate "sudo" for normal SSH user? #1875

Closed
jedie opened this issue Sep 15, 2021 · 3 comments
Closed

Docs: How to activate "sudo" for normal SSH user? #1875

jedie opened this issue Sep 15, 2021 · 3 comments

Comments

@jedie
Copy link

jedie commented Sep 15, 2021

Think https://github.com/yunohost/doc/blob/master/pages/01.administrate/06.overview/04.commandline/ssh.md should include the information about how to allow "sudo" for a normal SSH user.

I didn't find it in the docs.

I use usermod -aG sudo <username> for this.

@tituspijean tituspijean changed the title Docs: How to activate "sudo" for normal SSH user?!? Docs: How to activate "sudo" for normal SSH user? Sep 15, 2021
@alexAubin
Copy link
Member

(In the future™ once we get rid of the infamous admin user, we shall have an admins group which should be sudo-allowed)

@scottwh
Copy link

scottwh commented Oct 14, 2022

I use usermod -aG sudo <username> for this.

An alternative is to use phpLDAPadmin, which might be more future-proof. Log in with DN "cn=admin,dc=yunohost,dc=org" and the admin password. Find the branch for "ou=sudo". That has one object "cn=admin". Screenshot that for reference. Make a new object using the "Default" template. Pick objectClass sudoRole. Set cn to be <your login>. Copy the other attibutes from the "ou=sudo" object, but consider setting sudoOption to "authenticate" rather than "!authenticate".

@alexAubin
Copy link
Member

Closing because new admins group merged in 11.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants