Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
fb41bbf9
Commit
fb41bbf9
authored
Jul 05, 2009
by
tbrehm
Browse files
Add the website user to the sshusers group
parent
6fb6029a
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
fb41bbf9
...
...
@@ -476,6 +476,11 @@ class apache2_plugin {
exec
(
"chmod 711 "
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
])
.
"/*"
);
exec
(
"chmod 710 "
.
escapeshellcmd
(
$data
[
"new"
][
"document_root"
]
.
"/web"
));
$command
=
'usermod'
;
$command
.
=
' --groups sshusers'
;
$command
.
=
' '
.
escapeshellcmd
(
$data
[
"new"
][
"system_user"
]);
exec
(
$command
);
//* add the apache user to the client group
$app
->
system
->
add_user_to_group
(
$groupname
,
escapeshellcmd
(
$web_config
[
'user'
]));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment