Unable to copy files into /var/www.html

Asked by Hisham

Installed Apache 2.0 via Synoptic Package manager .Trying to copy files (website) to /var/www.html .Unable paste anything into these folders .I am linux newbie and any advice would be appeiciated .I am sure it is about permissions but how too with no root user .

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Phil Bull
Solved:
Last query:
Last reply:
Revision history for this message
Douglas Ward (douglas-ward) said :
#1

there is a root user actually. but that's not the point.

via command line you really just need to add sudo in front of your cp command. 'sudo cp -r /path/to/site/ /var/www.html/'

if you prefer using a graphical to copy you can launch a terminal and 'sudo nautilus'
the password it asks for it your user password, not your root password.

Revision history for this message
Phil Bull (philbull) said :
#2

Alternatively, if you want to bypass the terminal, press <Alt> + F2 and type:

gksudo nautilus

then click Run. You will (normally) be prompted for your password. Nautilus will then start with root permissions, so you can change anything you like. This has the exact same effect as the method mentioned by Douglas, above.

Try to only use nautilus with root permissions when you ABSOLUTELY NEED TO. Otherwise, you run the risk of mistakenly deleting something important, for example.

Hope this helps

Revision history for this message
Hisham (hisham-hpcs) said :
#3

thanks for your assitance