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.

ALLOW NON-ROOT SSH/SFTP ACCESS

Featured Replies

Will it ever be a thing?  It pains me to use the root user for things that don't require root.  I need to use SFTP instead of SMB to transfer a file between mobile and Unraid and the only user that can accomplish this is root.

 

The owner, group, and file permissions are reset to root root 644 which creates problems accessing over SMB on Windows machines.  I could set a cronjob to periodically set the permissions, but that's a hack.  Is there a better way?

 

-rw-r--r--  1 root root  23998 Dec  7 23:51 myfile.txt

 

You should not connect directly to unRAID via ssh or sftp to transfer files. A better option would be to setup a docker container (or LXC container if thats more your style) to host an ssh or sftp server for file transfer. You could configure whatever usernames and permissions you need in the container.

  • Author
8 hours ago, primeval_god said:

You should not connect directly to unRAID via ssh or sftp to transfer files.

Other than because I'm connecting as root, why not?  Just to be clear, it's a local lan connection, not public.

Edited by dboonthego

13 hours ago, dboonthego said:

Other than because I'm connecting as root, why not?

Well that is the big one. The root user (which is the only real user) is meant for management and should be used sparingly. And your asking whether other uses accounts can have access to the unRAID os which is not how its meant to be used.

But more generally docker is the preferred way of extending functionality on unRAID. Anything that can be done with docker, should be done with docker. It helps to isolate user customization from the unRAID os. In this case it would allow you to easily ensure your file transfer client only has access to the specific folders that it needs access to.

This is a *unix system after all so at least it should mimic same basic security principles :) I don't think that's asking for too much. 

After all is *unix that invented the security principles and not Al Gore :)

Edited by DivideBy0

  • Author
On 12/9/2023 at 7:48 AM, primeval_god said:

The root user (which is the only real user) is meant for management and should be used sparingly.

Precisely why I wish I could connect as a limited user, but I get your point and understand why it's not supported; I just wish it was.

 

I believe I can switch from SFTP to Nextcloud and accomplish my goal so I'll try that first since I already have the Nextcloud docker.  A dedicated SFTP docker to transfer this one file isn't appealing, but I'll keep it in mind for the future.  Thanks for your input!

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.