Testing a lot on your servers can sometimes lead to the problem, that you receive this error message:
‘Received disconnect from Too many authentication failures for root’
or of course for other users, try faillog!
There are some options to view / reset the authentication failures for the given user(s)
This is the man page of this very useful command:
faillog --help
Syntaxe : faillog [options]
Options :
-a, --all afficher les enregistrements « faillog » pour tous
les utilisateurs
-h, --help afficher ce message d'aide et quitter
-l, --lock-time SEC après une connexion refusée, verrouiller le compte
pendant SEC secondes
-m, --maximum MAX positionner les compteurs de connexions refusées à
MAX
-r, --reset remettre à zéro les compteurs de connexions refusées
-t, --time NB_JOURS afficher les échecs de connexions datant de moins de
NB_JOURS jours
-u, --user LOGIN afficher l'enregistrement « faillog » ou gérer les
compteurs et les limites (si utilisé conjointement aux
options -r, -m ou -l) d'échecs uniquement pour
l'utilisateur dont le compte est LOGIN
Backup same directories or files and compress them with tar.gz
#!/bin/bash
#
# creates backups of essential files
#
TRAC="/opt/trac_root"
SVN="/opt/svn_root"
SMB="/opt/smb_root"
LIST="/tmp/backlist_$$.txt"
set $(date)
# full backup: TRAC / SVN
#
tar cfz "/var/MyBackup/trac/trac_full_$6-$2-$3.tgz" $TRAC
#
tar cfz "/var/MyBackup/svn/svn_full_$6-$2-$3.tgz" $SVN
if test "$1" = "dim" ; then
# weekly a full backup of smb
#
tar cfz "/var/MyBackup/smb/smb_full_$6-$2-$3.tgz" $SMB
rm -f /var/MyBackup/smb/smb_diff*
else
# incremental backup:
#
find $SMB -depth -type f \( -ctime -1 -o -mtime -1 \) -print > $LIST
tar cfzT "/var/MyBackup/smb/smb_diff_$6-$2-$3.tgz" "$LIST"
rm -f "$LIST"
fi
Installation of a Subversion repository, with apache configuration:
Link: svnbook.red-bean.com
$ svnadmin create /path/to/repos
$ mkdir trunk branches tags
$svn import /home/moi/monprojet file:///path/to/repos
// for print out
$svn list --verbose file:///home/svn/monprojet
$ ### First time: use -c to create the file
$ ### Use -m to use MD5 encryption of the password, which is more secure
$ htpasswd -cm /etc/svn-auth-file harry
New password: *****
Re-type new password: *****
Adding password for user harry
$ htpasswd -m /etc/svn-auth-file sally
New password: *******
Re-type new password: *******
Adding password for user sally
$
httpd.conf
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module modules/mod_dav_svn.so
<Directory /home/job/Devel/svn_root>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Location /svn>
DAV svn
SVNParentPath /home/job/Devel/svn_root
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /home/job/Devel/svn_root/svn.htpasswd
Require valid-user
</Location>