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.

Creating a Real Linux user not UNRAID share user / Non ROOT user file access permissions

Featured Replies

Hello

 

Trying to figure out how to create a LINUX user that obeys file/folder permissions and does not act like ROOT.

 

I did the following:

 

groupadd NEWGROUPNAME -g NEWGROUPID

 

useradd -g  NEWGROUPNAME -m /mnt/user/NEWUSERNAME -u 1000 NEWUSERNAME

 

Then I make the home directory and public/private key for the NEWUSERNAME.

 

I change the permissions of the SHARES that I DO NOT want the NEWUSERNAME to have access to.

 

drwxr-x---  1  UNRAID-SHARE-PRIVATE   UNRAID-SHARE-PRIVATE   118 May 11 19:03 UNRAID-SHARE-PRIVATE/    

 

I verify that the UNRAID SHARE USER can still access the UNRAID-SHARE-PRIVATE.

 

I DO NOT setup NEWUSERNAME as a user within the UNRAID GUI.

 

I then ssh into the UNRAID server using NEWUSERNAME.

 

To my surprise NEWUSERNAME ignores the file permissions set on UNRAID-SHARE-PRIVATE.

 

NEWUSERNAME can READ & WRITE to the UNRAID-SHARE-PRIVATE.

 

Is this doable? Does UNRAID treat everyone that SSHs in the server as ROOT? Is it that every file & folder is treated as if they have drwxrwxrwx permissions?

 

Add yes I found this out AFTER I had created scripts to keep things persistent after reboots.

 

-TooManyHardDrive 

 

 

Why do you want to do this? If you want a general purpose multi user linux create a VM.

 

 

  • Author
7 minutes ago, trurl said:

Why do you want to do this?

Hello and thank you for the fast reply.

 

Would like to have linux user ( NEWUSERNAME ) that has limited abilities.

 

For example NEWUSERNAME could be used to SFTP files from other systems on the network to unshared directories on UNRAID.  If needed scripts could then move files to desired shares.

And why can't you do this in a VM? The Unraid host isn't intended to be a general purpose multi user linux OS.

  • Author
1 minute ago, trurl said:

And why can't you do this in a VM?

? ? ?

 

The VM (virtual machine) would be another OS running on top of UNRAID correct?

 

So how would / what would allow the VM user to access UNRAID any differently and place files on the system?

 

I'm confused with your suggestion?

 

Can you provide details?

You would allow the VM to access Unraid storage, and you would let the VM control access to that storage for its multiple users.

  • Author
On 5/12/2020 at 9:40 AM, trurl said:

 

Not sure if that would accomplish what I am trying to do and it seems like a lot of jumping thru hoops to achieve what I am trying to do.

 

Is there no undocumented or should I say unofficial way to enable REAL linux accounts/users?

 

Or is there a method to install on full blown OS.  I see that was possible in the past but now not so sure.

Unraid is a customized and stripped down version of slackware linux. It would probably be missing a lot of the things you would like to have in a multipurpose multiuser linux. I don't think it has ever been possible to install Unraid on top of another OS.

You might also take a look at the literally hundreds of dockers available on Unraid and see if any of those might work for what you are trying to do.

Archived

This topic is now archived and is closed to further replies.

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.