Jump to content

ALLOW NON-ROOT SSH/SFTP ACCESS


Recommended Posts

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

 

Link to comment
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.

Link to comment
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!

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.

×
×
  • Create New...