When creating new virtual domain Virtualmin creates with permissions 750

3 posts / 0 new
Last post
#1 Wed, 03/28/2012 - 11:03
dbach

When creating new virtual domain Virtualmin creates with permissions 750

This is on a box running Debian Linux, how can I change Virtualmin so that it creates new Virtual Servers with permissions 755 instead of 750? I've been looking through config files in /etc/webmin/virtual-server and found where to change the shell from /bin/sh to /bin/false but nothing relating to the home directory permissions. Thank you, Darryl

Wed, 03/28/2012 - 12:57
Locutus

You could add scripts to be executed after virtual server creation (in the Virtualmin config, section "Actions upon server and user creation"), which can in turn set the home directory to the permissions you desire.

Fri, 03/30/2012 - 12:29 (Reply to #2)
dbach

In case others are looking the file was config in /etc/webmin/useradmin - changed homedir_perms=0750 to homedir_perms=0755

Also to set shell to /bin/false had to change config in /etc/webmin/virtual-server/ from unix-shell=/bin/sh to unix-shell=/bin/false

And last comment, to set file permissions to 755 within home directory changed the config file in /etc/webmin/virtual-server (same as previous entry) to html_perms=0755, was at 0750.

Darryl

Topic locked