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


Recommended Posts

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 

 

 

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

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

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

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.