Entradas

Cómo crear un nuevo usuario habilitado para sudo en Ubuntu

 Thank to: https://www.digitalocean.com/ Introducción El comando  sudo  ofrece un mecanismo para conceder privilegios de administrador; normalmente solo está disponible para el usuario  root  para usuarios normales. En esta guía, aprenderá a crear un nuevo usuario con acceso  sudo  en Ubuntu 18.04 sin necesidad de modificar el archivo  /etc/sudoers  de su servidor. Si desea configurar  sudo  para un usuario existente, proceda directamente con el paso 3. Paso 1: Iniciar sesión en su servidor Realice SSH a su servidor como el usuario  root : ssh root@ your_server_ip_address Copy Paso 2: Añadir un nuevo usuario al sistema Utilice el comando  adduser  para añadir un nuevo usuario a su sistema: adduser sammy Copy Asegúrese de sustituir  sammy  con el nombre del usuario que desea crear. Se le solicitará que cree y verifique una contraseña para el usuario: Output Enter new UNIX password: Retype new UNIX pas...

Installing Webalizer with nginx Websever in Ubuntu

 Thanks to: https://ixnfo.com/ Webalizer  – a program for reporting and statistics on log files. The Webalizer installation command in Ubuntu: 1 sudo apt-get install webalizer After installation, move the created directory /var/www/webalizer to the root of the Apache2 /var/www/html/ web server: 1 sudo mv /var/www/webalizer /var/www/html/ Open the configuration file Webalizer in any text editor, for example nano: 1 sudo nano /etc/webalizer/webalizer.conf Let’s specify what log files should be analyzed, by default there is already indicated: 1 2 LogFile /var/log/apache2/access.log.1 LogType clf You can specify ftp logs as follows: 1 2 LogFile /var/log/proftpd/xferlog LogType ftp You can also specify the type of logs squid or w3c. And also change the directory where reports will be created: 1 OutputDir /var/www/html/webalizer If necessary, we specify the encoding of HTML pages: 1 HTMLHead <META http-equiv="Content-Type" CONTENT="text/html" charset="UTF-8"...