Creating a Linux user with no specific home directory..
#3

Well, what you can do is to create the user which the home directory is the web server folder you want.
And then, you execute chmod command to give / remove rights.

Like, you have 3 folders in the web server directory, called "system", "design", "modules" for example, then you do things like:
Code:
adduser system -d /var/www/html/system
chmod 700 /var/www/html/system
adduser design -d /var/www/html/design
chmod 700 /var/www/html/design
adduser modules -d /var/www/html/modules
chmod 700 /var/www/html/modules
That should do the trick i guess, the unique thing which can appear is the apache "access denied" error, not sure though
And you may chmod the forum / other files, so they don't have access to it.
Instead of that, i don't have any idea to do such thing.
Reply


Messages In This Thread
Creating a Linux user with no specific home directory.. - by Scenario - 29.06.2013, 18:50
Re: Creating a Linux user with no specific home directory.. - by TheChimpJr - 29.06.2013, 19:01
Re: Creating a Linux user with no specific home directory.. - by GWMPT - 29.06.2013, 19:16
Re: Creating a Linux user with no specific home directory.. - by Scenario - 29.06.2013, 20:00
Re: Creating a Linux user with no specific home directory.. - by Scenario - 29.06.2013, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)