Root filesystem permissions changed to 775 at every bootup


Recommended Posts

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?

Link to comment

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?

Link to comment
  • 1 year later...

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

 

Link to comment

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 ?

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.