Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Root filesystem permissions changed to 775 at every bootup

Featured Replies

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?

  • Community Expert

Try booting is safe mode, a plugin can cause this.

  • Author

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?

  • Community Expert

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.

 

 

  • 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

 

  • Community Expert
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.

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 ?

 

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.