Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

"adduser" command adds the user to VestaCP as well

General questions about VestaCP
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
stelios
Posts: 6
Joined: Tue Dec 23, 2014 11:00 am

"adduser" command adds the user to VestaCP as well
  • Quote

Post by stelios » Wed Dec 24, 2014 1:40 pm

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 ?
Top

stelios
Posts: 6
Joined: Tue Dec 23, 2014 11:00 am

Re: "adduser" command adds the user to VestaCP as well
  • Quote

Post by stelios » Sat Dec 27, 2014 1:40 am

Am i the only one having this issue ?

Also is it ok to disable root access and change root pass after installing vesta ?
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: "adduser" command adds the user to VestaCP as well
  • Quote

Post by drMacFaulty » Mon Dec 29, 2014 4:33 pm

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 :)
Top

stelios
Posts: 6
Joined: Tue Dec 23, 2014 11:00 am

Re: "adduser" command adds the user to VestaCP as well
  • Quote

Post by stelios » Mon Dec 29, 2014 11:01 pm

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
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: "adduser" command adds the user to VestaCP as well
  • Quote

Post by drMacFaulty » Tue Dec 30, 2014 1:16 am

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.
Top

stelios
Posts: 6
Joined: Tue Dec 23, 2014 11:00 am

Re: "adduser" command adds the user to VestaCP as well
  • Quote

Post by stelios » Tue Dec 30, 2014 1:38 am

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
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: "adduser" command adds the user to VestaCP as well
  • Quote

Post by drMacFaulty » Thu Jan 01, 2015 4:23 pm

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.
Top

iamkingsleyf
Posts: 30
Joined: Sun Nov 23, 2014 4:41 am

Re: "adduser" command adds the user to VestaCP as well
  • Quote

Post by iamkingsleyf » Fri Jan 02, 2015 7:51 am

Try this http://www.servermom.org/basic-centos-s ... erver/414/
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password