LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Centos 6 File Systeem (user and permissions) (https://www.linuxquestions.org/questions/linux-newbie-8/linux-centos-6-file-systeem-user-and-permissions-4175520714/)

roellings 10-01-2014 05:24 AM

Linux Centos 6 File Systeem (user and permissions)
 
Hello,

I'm planning to resale parts of my server for some extra earnings.
Now I want to setup a directory structure with the correct permissions for users, I want to start selling game servers including a small webhost.
In the following image you can see what I want to create;
Afbeelding

My question is; is this possible in Linux Centos 6 ??

TB0ne 10-01-2014 09:36 AM

Quote:

Originally Posted by roellings (Post 5247391)
Hello,
I'm planning to resale parts of my server for some extra earnings. Now I want to setup a directory structure with the correct permissions for users, I want to start selling game servers including a small webhost. In the following image you can see what I want to create;Afbeelding

My question is; is this possible in Linux Centos 6 ??

Yes, as much as it's also possible in any version of Linux, Windows, or Mac. It's call virtual hosts, and is widely done, and VERY well documented. And why are you going to load CentOS 6, when 7 is the latest??

roellings 10-01-2014 09:54 AM

Quote:

Originally Posted by TB0ne (Post 5247484)
Yes, as much as it's also possible in any version of Linux, Windows, or Mac. It's call virtual hosts, and is widely done, and VERY well documented. And why are you going to load CentOS 6, when 7 is the latest??

Thankyou for your reply, but I know what virtual hosts are, and as far as I know this has nothing to do with my question.
My question is about the permissions a user has to get over thoses files you see in the picture.

TB0ne 10-01-2014 10:20 AM

Quote:

Originally Posted by roellings (Post 5247499)
Thankyou for your reply, but I know what virtual hosts are, and as far as I know this has nothing to do with my question.

Really?? You said you wanted to set up a webhost for multiple users. Would seem that virtual hosting has a LOT to do with your question.
Quote:

My question is about the permissions a user has to get over thoses files you see in the picture.
Since you know what virtual hosts are, you should also know about doing a chroot'ed FTP/SFTP environment. That way, each user will only be able to see their own files.

You could also set permissions to only allow that one user to read a certain directory that they own. That would be mode 700, where ONLY that user can read/write/execute in that directory, and no one else can.
http://www.linux.com/learn/tutorials...le-permissions

szboardstretcher 10-01-2014 10:29 AM

The current trend is Docker and Containers for this kind of reselling. I would suggest looking into it, as it is very simple to make a container that can be copied and deployed for as many users as you wish, without having to resort to the brainbending chroot environment setups.


All times are GMT -5. The time now is 08:53 AM.