Page 1 of 1
"adduser" command adds the user to VestaCP as well
Posted: Wed Dec 24, 2014 1:40 pm
by stelios
Hi there,
When adding a new unix user via ssh using the "adduser" command it also adds the user to VestaCP as well and can't be deleted, is this how it should be ?
Re: "adduser" command adds the user to VestaCP as well
Posted: Sat Dec 27, 2014 1:40 am
by stelios
Am i the only one having this issue ?
Also is it ok to disable root access and change root pass after installing vesta ?
Re: "adduser" command adds the user to VestaCP as well
Posted: Mon Dec 29, 2014 4:33 pm
by drMacFaulty
stelios wrote:Am i the only one having this issue ?
Also is it ok to disable root access and change root pass after installing vesta ?
I guess this is normal behavior (code snippet from v-add-user). Notice the
useradd function. This script also checks whether the user exists in /etc/passwd (where all linux users are present).
Code: Select all
# Adding user
/usr/sbin/useradd "$user" -s "$shell" -c "$email" -m -d "$HOMEDIR/$user"
if [ $? -ne 0 ]; then
echo "Error: user creation failed"
log_event "$E_INVALID" "$EVENT"
exit $E_INVALID
fi
What do you mean by disabling root access? SSH? VestaCP Admin user? MySQL?
Please specify :)
Re: "adduser" command adds the user to VestaCP as well
Posted: Mon Dec 29, 2014 11:01 pm
by stelios
What do you mean by disabling root access? SSH? VestaCP Admin user? MySQL?
Please specify :)
Hi there...thank you very very much for you reply :)
I meant SSH, i'm trying to make a vps using VestaCP as secure as possible but still open enough so a client can add his sites etc. So i'm open to any suggestions.
Cheers,
Stelios
Re: "adduser" command adds the user to VestaCP as well
Posted: Tue Dec 30, 2014 1:16 am
by drMacFaulty
stelios wrote:What do you mean by disabling root access? SSH? VestaCP Admin user? MySQL?
Please specify :)
Hi there...thank you very very much for you reply :)
I meant SSH, i'm trying to make a vps using VestaCP as secure as possible but still open enough so a client can add his sites etc. So i'm open to any suggestions.
Cheers,
Stelios
You can deny root login from SSH. Will post the code and location tomorrow, as I'm currently on mobile.
Re: "adduser" command adds the user to VestaCP as well
Posted: Tue Dec 30, 2014 1:38 am
by stelios
You can deny root login from SSH. Will post the code and location tomorrow, as I'm currently on mobile.
I think it's in /etc/sss/sshd_config
Any more suggestions to make the VPS even more secure are more than welcome and appreciated :)
By the way in /root/ there are 4 files, deb_signing.key , vst-install-ubuntu.sh , vst-install.sh , vst_install_backups . Should we keeping vst-install-ubuntu.sh , vst-install.sh , vst_install_backups or is it safer to delete those ?
cheers
Re: "adduser" command adds the user to VestaCP as well
Posted: Thu Jan 01, 2015 4:23 pm
by drMacFaulty
stelios wrote:You can deny root login from SSH. Will post the code and location tomorrow, as I'm currently on mobile.
I think it's in /etc/sss/sshd_config
Any more suggestions to make the VPS even more secure are more than welcome and appreciated :)
By the way in /root/ there are 4 files, deb_signing.key , vst-install-ubuntu.sh , vst-install.sh , vst_install_backups . Should we keeping vst-install-ubuntu.sh , vst-install.sh , vst_install_backups or is it safer to delete those ?
cheers
- You could of course only allow ssh-key based logins :)
- You could close all unneeded ports.
- And so on...
I would leave those files where they are, the could come in handy in the future during troubleshooting or something.
Re: "adduser" command adds the user to VestaCP as well
Posted: Fri Jan 02, 2015 7:51 am
by iamkingsleyf