Add a GNU/Linux standard user to ssh.main

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.0.11
How are you able to access your server: Direct access via physical keyboard/screen

Describe your issue

Hi,

I installed Debian with a user name “supervisor”. I need to login using this user though SSH. However, it is not added to SSH.

I tried to add this user to ssh.main group using this:

yunohost user permission add ssh.main supervisor

But get the error:

Error: The group 'supervisor' is unknown

I am a bit surprised that default user (supervisor) is not added automatically to allowed SSH users or at least that an information message about how to add it to the authorized user is not present (the message “SSH login using root will be disabled (except from local network). Instead, you should login using the first YunoHost user.” is confusing to me)

Also, manpage says this about yunohost user permission add permission names:

names  Group or usernames to grant this permission to

So I understand that UNIX users do not seem to be taken into account. But is it possible to do so (or not) and how ?

Share relevant logs or error messages

2025-02-22 19:19:46,681 DEBUG moulinette.core.acquire - acquiring lock…
2025-02-22 19:19:46,690 DEBUG moulinette.core.acquire - lock has been acquired
2025-02-22 19:19:46,694 DEBUG moulinette.actionsmap.process - loading python module yunohost.user took 0.003s
2025-02-22 19:19:46,694 DEBUG moulinette.actionsmap.process - processing action ‘yunohost.user.permission.add’
2025-02-22 19:19:46,739 DEBUG yunohost.utils.ldap.init - initializing root ldap interface
2025-02-22 19:19:46,743 DEBUG moulinette.actionsmap.process - action executed in 0.049s
2025-02-22 19:19:46,743 DEBUG moulinette.core.release - lock has been released
2025-02-22 19:19:46,744 ERROR moulinette.cli - The group ‘supervisor’ is unknown
2025-02-22 19:23:47,130 DEBUG moulinette.actionsmap.process - loading python module yunohost.user took 0.012s
2025-02-22 19:23:47,130 DEBUG moulinette.actionsmap.process - processing action ‘yunohost.user.group.list’
2025-02-22 19:23:47,169 DEBUG yunohost.utils.ldap.init - initializing root ldap interface
2025-02-22 19:23:47,170 DEBUG moulinette.actionsmap.process - action executed in 0.040s
2025-02-22 19:24:08,460 DEBUG moulinette.core.acquire - acquiring lock…
2025-02-22 19:24:08,469 DEBUG moulinette.core.acquire - lock has been acquired
2025-02-22 19:24:08,473 DEBUG moulinette.actionsmap.process - loading python module yunohost.user took 0.004s
2025-02-22 19:24:08,473 DEBUG moulinette.actionsmap.process - processing action ‘yunohost.user.group.add’
2025-02-22 19:24:08,513 DEBUG yunohost.utils.ldap.init - initializing root ldap interface
2025-02-22 19:24:08,514 DEBUG moulinette.actionsmap.process - action executed in 0.041s
2025-02-22 19:24:08,515 DEBUG moulinette.core.release - lock has been released
2025-02-22 19:24:08,515 ERROR moulinette.cli - Unknown user: supervisor

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.