[ TAG ] : Login

[ TITLE    ] : BackupPC - Add logout button
[ CATEGORY ] : //
[ DATE     ] :

BackupPC don’t have a logout button… … … Create a logout buttonAdd the following lines in order to create anothers buttons to the $Conf{CgiNavBarLinks} area of your /etc/BackupPC/config.pl : [...]$Conf{CgiNavBarLinks} = [ { 'link' => '?action=view&type=docs', 'lname' => 'Documentation', 'name' => undef }, { 'link' => 'https://github.com/backuppc/backuppc/wiki'

[ TITLE    ] : Usermod - Modifier le /etc/passwd
[ CATEGORY ] : //
[ DATE     ] :

Pour modifier les informations d’un utilisateur contenues le /etc/passwd on utilise usermod. UtilisationExtrait du manuelExtrait du manuel : -d, --home HOME_DIR new home directory for the user account-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE-f, --inactive INACTIVE set password inactive after expiration to INACTIVE-g, --gid GROUP force use GROUP as new primary group-G, --groups GROUPS new list of supplementary GROUPS-a, --app

[ TITLE    ] : Activer la connexion SSH
[ CATEGORY ] : //
[ DATE     ] :

De base il n’est pas possible de se connecter à distance en root sur un serveur. Pour autoriser la connexion distante SSH pour le compte root, il suffit d’éditer le fichier /etc/ssh/sshd_config Il faut chercher la ligne correspondant à PermitRootLogin  et le passer à yes PermitRootLogin yes Ensuite, il ne restera plus qu’à redémarrer ssh : # systemctl restart ssh Vous pouvez également personnaliser une bannière d’accueil : #Banner noneBanner /etc/nomBannerAccueuil