Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- formacion@ubuntu:~$ cd /var/www
- formacion@ubuntu:/var/www$ ls -la
- total 12
- drwxr-xr-x 3 root root 4096 abr 2 19:17 .
- drwxr-xr-x 14 root root 4096 abr 2 19:17 ..
- drwxr-xr-x 3 root root 4096 abr 9 20:23 html
- formacion@ubuntu:/var/www$ sudo chown www-data:www-data html
- formacion@ubuntu:/var/www$ ls -la
- total 12
- drwxr-xr-x 3 root root 4096 abr 2 19:17 .
- drwxr-xr-x 14 root root 4096 abr 2 19:17 ..
- drwxr-xr-x 3 www-data www-data 4096 abr 16 17:06 html
- formacion@ubuntu:/var/www$ groups formacion
- formacion : formacion adm cdrom sudo dip plugdev lxd lpadmin sambashare
- formacion@ubuntu:/var/www$ sudo usermod -a -G www-data formacion
- formacion@ubuntu:/var/www$ groups formacion
- formacion : formacion adm cdrom sudo dip www-data plugdev lxd lpadmin sambashare
- formacion@ubuntu:/var/www$ sudo chmod g+w html
- formacion@ubuntu:/var/www$ ls -la
- total 12
- drwxr-xr-x 3 root root 4096 abr 2 19:17 .
- drwxr-xr-x 14 root root 4096 abr 2 19:17 ..
- drwxrwxr-x 3 www-data www-data 4096 abr 16 17:06 html
- Salir de la sesión y volver a entrar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement