So what I have already is a user by the name of “nginx” and I’m wanting to have this go into a certain directory, being on another mounted drive called “devwork” I’m wanting it to have access to basically only need access to that one directory, which will be called website.
So the structure would look like /home/nginx/somethinghere?/devwork/website
Meaning it will also need access to allow the user to run the website and have all the bells and whistles a website would need to do.
However I’m not entirely sure on how I would do this, someone from an earlier topic told me to do this this way:
Make a dedicated partition on it, a filesystem too ;), and mount it to /home/that_users_name
just create one partition
and one dedicated directory on it
and mount that directory to /home/that_users_name
That way, the entire drive capacity is accessible to it
but you can create other directories on that drive and mount them to other places
using the drives capacity for those as well.
But like I said above I have no idea on where I would begin. Since I’m still learning, I talked to a friend of mine and they said it would be hard for me since I’ve not worked with Linux extensively. But they also mentioned to get something like this I would need to work with a program called “gparted”.
I’m honestly looking for someone to point me in the correct direction, since I’m just wanting to make this secure and also just let me and a friend mess around with HTML, CSS and JScript and anything else that may crop up.
(I also intend in installing Discourse behind nginx for some community stuff.)
I want to use the whole drive as devwork but the nginx account won’t need access to all that storage since it will only be needing to run a webserver.
I have other projects on that drive hence the name, the entire drive is for devwork however there are different dev projects I’m working on, for instance I have game servers on there and I’m going to be setting up some java and maybe python projects later on.
TLDR; Entire drive is used for devwork, but nginx only needs to be in the webside of the drive.
Okay so currently I’ve mounted the drives to mnt since I’m wanting this for all my drives. (Allowing all users to access them)
However the part I’m confused by is giving them the permissions as I’m not sure what permissions they would need etc.
Along with you saying mount them in mnt and then mount something in /home/bloodshotpico/mounts I’m not sure what would be mounted here sorry?