0

i have ubuntu 9.10 and there is one directory that i work with which is the www directory for web building. what do i type into the terminal to allow me to add,delete,modify files witout having to sudo everytime?

thanks

2

If you make yourself the owner of the directory used by the webserver, chances are you will experience troubles and - at worst - the webserver will stop to run. Whenever possible, avoid to change owners and permission of system directories and files (see my second alternative proposal). If you still want to use the CLI but can't really suffer to type "sudo " in front to your commands, you could however...

Include yourself in the group that folder is owned by, and make sure group permission is W

ls -l www #let you spot what's the group owning the directory
usermod -a -G www_group laddesign #substitute www_group!
chmod -R g=w www #set the group permissions recursively to write

If you are a GUI person, you can alternatively open the file navigator with gksudo

See the ubuntu wiki for more information and how-to.

0

Rather than granting write access to the whole word, simply make yourself the owner of that directory:

sudo chown -R iaddesign www
-2

The easiest way is giving r/w permissions to every user on the system:

sudo chmod -R 777 www

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.