Changes

Jump to navigation Jump to search
Line 5: Line 5:  
This contrib provides a new shell command/tool called '''randpw''', which is a ''Random Strong Password Generator''. '''randpw''' can generate strong passwords of any given length based on a randomized set of ASCII characters and symbols.
 
This contrib provides a new shell command/tool called '''randpw''', which is a ''Random Strong Password Generator''. '''randpw''' can generate strong passwords of any given length based on a randomized set of ASCII characters and symbols.
 
   
 
   
 +
=== Version ===
 +
{{ #smeversion: randpw}}
    
== Installation ==
 
== Installation ==
Currently the randpw RPM is available from the [http://wiki.contribs.org/Stephdl '''stephdl'''] repository, and this repository should be enabled. Please see here on how to enable the [http://wiki.contribs.org/Stephdl '''stephdl'''] repository.
+
{{Note box|Please be aware that the current available version in the smecontribs repo is broken. Please see [[Talk:Random_Strong_Password_Generator|'''here''']] for how the code should look like. Install the contrib and change it to match the code}}
 
+
The installation procedure for both SME 8 and SME 9 are the same. To install ''randpw'' enter the following command as root:
= For SME 8 =
+
  yum install randpw --enablerepo=smecontribs
TBA
  −
 
  −
= For SME 9=
  −
To install ''randpw'' enter the following command as root:
  −
  yum install randpw --enablerepo=stephdl --disableplugin=smeserver
  −
<headertabs/>
      
After installation the ''randpw'' tool is immediately available to be used.
 
After installation the ''randpw'' tool is immediately available to be used.
      
== Usage ==
 
== Usage ==
The ''randpw'' command requires an positive number argument. This number stands for the length of the to be generated password. Although any positive number can be given, a sensible length for a password should be considered. e.g. SME user passwords have a minimum length of 7 and the MySQL root password has a length of 70. Obviously a user password length is limited to what is humanly reasonable to remember, where as automated mechanisms that require a password, such as site to site VPN connections or the above MySQL example, can have longer, and thus stronger, passwords.
+
The ''randpw'' command requires a positive number as an argument. This number stands for the length of the to be generated password. Although any positive number can be given, a sensible length for a password should be considered. e.g. SME user passwords have a minimum length of 7 and the MySQL root password has a length of 70. Obviously a user password length is limited to what is humanly reasonable to remember, where as automated mechanisms that require a password, such as site to site VPN connections or the above MySQL example, can have longer, and thus stronger, passwords.
    
Syntax:
 
Syntax:
Line 50: Line 45:     
Failures to generate a password are being logged in /var/log/messages. This may be helpful if a certain routine passes a non valid argument to randpw.
 
Failures to generate a password are being logged in /var/log/messages. This may be helpful if a certain routine passes a non valid argument to randpw.
 +
 +
 +
==Password strength check==
 +
You can check the strength of generated passwords [http://www.passwordmeter.com/ '''here'''.]
 +
 +
And if you would like to learn more in 2 minutes about predictability go [https://www.youtube.com/watch?v=DaWcL3oOd-E '''here'''].
      Line 76: Line 77:  
To make have haveged start at boot, enter the following commands:
 
To make have haveged start at boot, enter the following commands:
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99haveged
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99haveged
chkconfig haveged on
   
  config set haveged service
 
  config set haveged service
 
  config setprop haveged status enabled
 
  config setprop haveged status enabled
    +
Then start to the haveged service without rebooting
 +
service haveged start
 +
 +
== Discussion ==
 +
This contrib can be discussed on the forums [http://forums.contribs.org/index.php/topic,51173.msg259403.html#msg259403 '''here''']
 +
 +
=== Bugs ===
 +
Please raise bugs under the SME-Contribs section in {{BugzillaFileBug|product=|component=|title=bugzilla}}and select the randpw component or use {{BugzillaFileBug|product=SME%20Contribs|component=srandpw|title=this link}}.
 +
 +
 +
{{#bugzilla:columns=id,product,version,status,summary |sort=id |order=desc |component=randpw|noresultsmessage="No open bugs found."}}
 +
 +
===Changelog===
 +
Only released version in smecontrib are listed here.
 +
{{ #smechangelog: randpw}}
    
[[Category:Security]]
 
[[Category:Security]]
 
[[Category:Contrib]]
 
[[Category:Contrib]]

Navigation menu