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

Vesta password policy Topic is solved

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
mlopez
Posts: 21
Joined: Mon Nov 05, 2018 7:26 am
Contact:
Contact mlopez
Website Twitter

Os: CentOS 6x
Web: apache + nginx
Vesta password policy
  • Quote

Post by mlopez » Sat May 25, 2019 8:05 am

1. Where can I find and how can I modify passwords policies, I mean, the constraints/restrictions applied to passwords for mail accounts when entered in panel?

2. Is there a way to raise the number of characters of generated passwords?

Thank you
ML
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Vesta password policy
  • Quote

Post by skurudo » Tue May 28, 2019 11:15 am

/root/vesta/func/main.sh

Code: Select all

# Random password generator
generate_password() {
    matrix=$1
    lenght=$2
    if [ -z "$matrix" ]; then
        matrix=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
    fi
    if [ -z "$lenght" ]; then
        lenght=10
    fi
    i=1
    while [ $i -le $lenght ]; do
        pass="$pass${matrix:$(($RANDOM%${#matrix})):1}"
       ((i++))
    done
    echo "$pass"
}
Top

mlopez
Posts: 21
Joined: Mon Nov 05, 2018 7:26 am
Contact:
Contact mlopez
Website Twitter

Os: CentOS 6x
Web: apache + nginx
Re: Vesta password policy
  • Quote

Post by mlopez » Tue May 28, 2019 6:00 pm

Thank you, skurudo, but the web-interface has no restrictions at all! You can add a one character password for email accounts, i.e.
And also you can add an email account from cli using this:

Code: Select all

v-add-mail-account myuser example.com peter e
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Vesta password policy
  • Quote

Post by skurudo » Wed May 29, 2019 7:16 am

mlopez wrote: ↑
Tue May 28, 2019 6:00 pm
Thank you, skurudo, but the web-interface has no restrictions at all! You can add a one character password for email accounts,
mlopez, some admins/users like simple stuff.. do you think we should resrict all like Apple? It's a choice for everyone.
Top

mlopez
Posts: 21
Joined: Mon Nov 05, 2018 7:26 am
Contact:
Contact mlopez
Website Twitter

Os: CentOS 6x
Web: apache + nginx
Re: Vesta password policy
  • Quote

Post by mlopez » Wed May 29, 2019 11:22 pm

skurudo wrote: ↑
Wed May 29, 2019 7:16 am
mlopez, some admins/users like simple stuff.. do you think we should resrict all like Apple? It's a choice for everyone.
No way! I think that, as a security measure Vesta CP should offer a way for the administrator to set the passwords restrictions for users.
Hosting (final) users don't necessarily know or care about server security or passwords policies, but in order to accomplish standard security procedures, as a sysadmin I must establish them. Dont' you think, skurudo?

Anyway, where can I add this password restrictions?

Thank you for your attention!
Top


Post Reply
  • Print view

5 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