TooMayHardDrives Posted May 12, 2020 Posted May 12, 2020 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 Quote
trurl Posted May 12, 2020 Posted May 12, 2020 Why do you want to do this? If you want a general purpose multi user linux create a VM. Quote
TooMayHardDrives Posted May 12, 2020 Author Posted May 12, 2020 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. Quote
trurl Posted May 12, 2020 Posted May 12, 2020 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. 1 Quote
TooMayHardDrives Posted May 12, 2020 Author Posted May 12, 2020 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? Quote
trurl Posted May 12, 2020 Posted May 12, 2020 You would allow the VM to access Unraid storage, and you would let the VM control access to that storage for its multiple users. Quote
TooMayHardDrives Posted May 14, 2020 Author Posted May 14, 2020 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. Quote
trurl Posted May 14, 2020 Posted May 14, 2020 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. Quote
trurl Posted May 14, 2020 Posted May 14, 2020 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. Quote
Recommended Posts
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.