Ubuntu: sudo adduser to set default directory


I used sudo adduser to add a new user for webmaster, so I set home directory to /var/www to let this user have rights to save file on the web server.

I just realized that I use webmaster account to log in the computer, Ubuntu created all directory for home like Documents, Download folders etc...

Since those folders Ubuntu created on the /var/www folder are public folder, I would like to know can I delete those folders or I have leave there for the folders system created.

Your help and information is great appreciated,




If you're certain you don't need those folders then using sudo privileges you should be able to delete the folders as you would do any others.

sudo rm -r /var/www/Documents/  

If you're concerned about doing this then look into a .htaccess file to prevent other people from being able to view your folders.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »