We are using ISPConfig 3 on our servers of our webdevelopment company. We are the only user on the server, customers don't have access to their websites. Does ISPConfig 3 has an option to add a SSH user which can access all sites on the server ?
Posts: 32,071
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
Quote:
well, I guess it is possible to manually create a user that has access to everything under var/www ?
No, at least not one that will work. You can create a user with root priveliges that has access to all files or use the root user. But as soon as you use the user to upload files, you will have to chown every file and folder to the owner of the web afterwards. If you dont do this, then suexec and suphp wil deny access to these files.
Posts: 302
Thanks: 26
Thanked 32 Times in 30 Posts
I regularly work on my sites as root simply because I work on multiple sites at the same time. Have written some small scripts that chown the appropriate files as needed.
We just
chown -R user:www-data web12
or whatever the directory name is. Works great.
The problem is that updates on the site in ispconfig often results in a change back to the default directory owner. The web directory usualy stays the same and its not that big a deal to repeat the action.
It would be nice removing that chown on site update - but I havent find that line in the code.
Posts: 32,071
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
Thats makes the sites insecure, if a site gets hacked then the hacker can damage the whole server easily and each customer has access to all other customers sites. I wont do that on a server that is connected to the internet. For a intranet or local dev system it miht be ok.
Regarding the permission updates, thats configurable under system > server config.
Since youre not giving the group www-data write access, any php-injections and so on can not harm the system. Only "user"(in my example) has writing permisions.
We usualy dont give clients shell access - but if we would they would not be a part of the www-data group, so even if they would get out of the root-jail they would not acces the sites controled by "user". A normal ipsconfig account could coexist with such webmaster-controled accounts - and in fact the ownership can be reverted even if it has never been requested.
Of course is the webmasteraccount ("user") a weak point - I admit that. But the alternative is using the root account a lot - and that is even worse - and with proper security routines that should not be a problem.
The permisions updates - I don't find them. I guess they are under "system > server config> my.server -> Webb" - but I dont find such variable.
Last edited by tuxfan; 16th September 2012 at 17:46.
Recent comments
5 hours 42 min ago
6 hours 41 min ago
10 hours 28 min ago
11 hours 42 min ago
15 hours 19 min ago
22 hours 34 min ago
1 day 7 hours ago
1 day 8 hours ago
2 days 11 sec ago
2 days 2 hours ago