Page 1 of 1
Change default path for users
Posted: Wed Nov 26, 2014 4:05 am
by Milu
Hi,
is it possible to change the default path of created users to /var/www/html/USERNAME/ and change its CHMOD automaticly to 777? I use now the way with editing /etc/passwd manually but as you know, this is kinda stupid. Thanks
Greetings from switzerland
Re: Change default path for users
Posted: Fri Nov 28, 2014 12:42 pm
by Milu
Isnt this possible?
Re: Change default path for users
Posted: Tue Mar 03, 2015 1:17 am
by KeiroD
Milu wrote:Hi,
is it possible to change the default path of created users to /var/www/html/USERNAME/ and change its CHMOD automaticly to 777? I use now the way with editing /etc/passwd manually but as you know, this is kinda stupid. Thanks
Greetings from switzerland
Sure it is. Look in /usr/local/vesta as that is where all the scripts for VestaCP is located.
Milu wrote:Isnt this possible?
Yup!
Re: Change default path for users
Posted: Fri Mar 06, 2015 2:58 pm
by ScIT
Milu wrote:Hi,
is it possible to change the default path of created users to /var/www/html/USERNAME/ and change its CHMOD automaticly to 777? I use now the way with editing /etc/passwd manually but as you know, this is kinda stupid. Thanks
Greetings from switzerland
Hi Milu
You can setup the homedir path in {VestaDirectory}/func/main.sh
Also have a look about the permission request in file {VestaDirectory}/bin/v-add-user.
Greetings back from switzerland to switzerland :-).
Regards
Raphael