Archive for the ‘Sécurité’ Category
Jeudi, mars 4th, 2010
Génération des clés privées et publiques
machine-locale:$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/login/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/login/.ssh/id_dsa.
Your public key has been saved in /home/login/.ssh/id_dsa.pub.
The key fingerprint is:
11:ee:bc:47:b0:c8:40:03:4f:a0:09:a4:71:39:93:93 login@machine-locale
The key's randomart image is:
+--[ ...
Posted in Shell, Sécurité | No Comments »
Mercredi, juillet 26th, 2006
L'idée est d'avoir un .htaccess permettant l'authentification avec LDAP afin d'accéder à l'interface web de Nagios (version 2.0).
Extrait de mon httpd.conf (apache version 2.2) :
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
Options ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Alias /nagios "/usr/local/nagios/share"
...
Posted in Supervision, Sécurité | No Comments »
Jeudi, avril 6th, 2006
En temps que root, exécuter /usr/sbin/visudo afin d'éditer la liste des utilisateurs pouvant invoquer sudo.
Pour l'instant, la liste ne doit contenir qu'un item :
root ALL=(ALL) ALL
Pour que l'utilisateur arnaud ait un accès super-utilisateur modifier ainsi :
root ALL=(ALL) ALL
arnaud ALL =(ALL) ALL
Par exemple, pour que l'utilisateur arnaud ait un accès sur ...
Posted in Sécurité | No Comments »