scubanarc Posted July 10, 2021 Share Posted July 10, 2021 Unraid 6.9.1 I'm not 100% what is going on here, but it seems that when I reboot I lose the ability to SSH with a keyfile. This is not about passwordless keyfiles, but about all keyfiles. I understand the /root/.ssh symlink and I know how to login with keyfiles. However, after a reboot they do not work anymore, and the error in /var/log/syslog is: Authentication refused: bad ownership or modes for directory / If I run "ls /" then I can see that the / filesystem is 775 (group has write). The solution for me is: chmod 755 / (group does not have write) Then my SSH keys work again. Is this normal Unraid behavior or do I have something doing this to me? Quote Link to comment
JorgeB Posted July 11, 2021 Share Posted July 11, 2021 Try booting is safe mode, a plugin can cause this. Quote Link to comment
scubanarc Posted July 11, 2021 Author Share Posted July 11, 2021 I rebooted in safe mode and it helped, the root permissions stayed 755. Then I rebooted back to normal mode and the root permissions broke to 775 again. I'm running the following plugins: Community Applications Intel GPU TOP Nerd Tools ProFTPd 1.3.6 (Plugin Version: 2020.03.10.1) Unraid.net User Scripts zabbix_agent Nerd Tools (Nerd Pack) enabled packages: - ncurses-terminfo-6.1.20191130-x86_64-1.txz - tmux-3.1.0-x86_64-1.txz User scripts: - Just a simple delete script, does this: #!/bin/bash find /mnt/user/camera/ -mtime +44 -type f -exec rm {} \; find /mnt/user/camera/ -empty -type d -delete Anything look suspicious? Quote Link to comment
JorgeB Posted July 12, 2021 Share Posted July 12, 2021 First make sure all plugins are up to date, if yes you can remove them all and then add one by one until you find the culprit then please report that in the appropriate plugin support thread. Quote Link to comment
noe Posted December 17, 2022 Share Posted December 17, 2022 Unraid 6.11.5 Nearly the same here: the .ssh directory is a symlink to the USB stick where (/boot). I tried to adapt the needed right on files like ssh wants it - no chance: chmod is not working on USB stick (somehow protected?) So I decided to delete the symlink an d rsync everything to the user (root) .ssh directory - adapted the file-rights according to ssh needs and that works for me by now. I do not really like to cut that link but otherwise I can not log in with the key. Might it be that "My Servers" plugin is the roor cause? At least I saw that "My Servers" changed the config file Quote Link to comment
JorgeB Posted December 18, 2022 Share Posted December 18, 2022 19 hours ago, noe said: chmod is not working on USB stick (somehow protected?) It won't work because the flash drive uses FAT fs. Quote Link to comment
noe Posted December 19, 2022 Share Posted December 19, 2022 You're absolutely right THX But then I do not understand why it once worked and after a reboot the file permissions are not the right to work with ssh (this is the message I get)? Something must have changed the permissions although it is not possible due to FAT ? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.