I'm trying to copy files to the /var/www folder on Ubuntu 10.04. But I think I don't have the permissions.
How can I do this? Maybe I have to set the rights permissions. I dont know.
|
I'm trying to copy files to the How can I do this? Maybe I have to set the rights permissions. I dont know. | |||||||
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Since
| ||||
|
feedback
|
|
You're missing the basics. Take a look here: http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/getting-started-guide/s1-navigating-ownership.html Now if you don't want to read everything: If you regularly need to edit files in /var/www, you should consider changing the owner/group and permissions on that directory. If your username is 'user', try this:
OR:
Now you can copy a file with: If you just want to copy 1 file without messing with permissions, use:
| |||
|
feedback
|
|
Messing with /var/www directly when you don't have to is such a bad pitfall. If you have apache, learn about user directories, have a public_html in your home directory and be happy. Web hosting providers are doing this for years. | |||
feedback
|
|
Try using
in the terminal, then navigate to | ||||
|
feedback
|