What type of hardware are you using: Old laptop or computer What YunoHost version are you running: 11.3.0 How are you able to access your server: SSH Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no
Describe your issue
Hello,
I would like to log with my “normal” user (i.e. not user “admin”) with SSH. My Yunohost was installed with a previous version (one with the “admin” user). I have already add my user (which is “joris”) to the admin group, but the SSH login doesn’t work. I’ve also regenerated the SSHD config file with yunohost tools regen-conf and there is no warning about SSH in my diagnose.
In the SSH log, i’ve found the error :
nov. 19 23:06:36 sshd[1873]: User joris from [...] not allowed because none of user's groups are listed in AllowGroups
the groups of user “joris” are :
joris@jirem:~ $ groups
joris cdrom floppy audio dip video plugdev netdev
I’ve also done a test by creating another user “joris_test” and adding it to the admin group. In this case, I can log to SSH and the groups are
One thing’s for sure, though: the admin user is supposed to be deleted once you’ve confirmed that you’re able to log in with your other admins group member if you really want to keep the admin user for the long term,
(or it’s better to delete it and recreate it… ). But first make sure that a user can still connect via ssh and keep the terminal open.
I don’t understand! joris is in the admins group. And joris can’t find his group!
I’m not sure this part of the log is really relevent:
joris@jirem:~ $ echo $UID $EUID
1000 1000
No I don’t have nologin, there is even no initscripts dir
root@jirem:~# cd /var/lib/initscripts/
-bash: cd: /var/lib/initscripts/: No such file or directory
Something is not correctely configured with my user joris but I don’t know what. For the record this user has been created before the yunohost upgrade with the admins group.
No I don’t. In fact I was in the process to add a ssh key when I discovered that I’m unable to log on ssh with this account.
I may be wrong but, but I do not think the .ssh folder is mandatory. I should be able to log anyway.
I think the key of the issue is the groups of the user joris, maybe something related to the ldap configuration? Unfortunately I don’t have knowledge about ldap…
If I’m remembering well, I think I have created this account myself during debian installation, and then I’ve launched the yunohost installer.