-   Linux - Newbie (
-   -   file premissions (

longbow99 02-01-2005 02:37 PM

file premissions
I have recently installed mandrake linux as part of a website project. I have not done this before. I tried to change some files in the /var/www folder, however it says i do not have rights to change them. I believe i need to login as "root". can you tell me how to do this using the konsol?

Thank you:)

rjlee 02-01-2005 02:47 PM

Login as a normal user.

When prompted, enter the root password. When you are finished, log out of the root sub-shell by pressing Ctrl+D or typing

You should only use the root account where you have to, as it has the capability to seriously damage your system. In particular, programs run by root are more susceptible to security attacks and viruses, unless they are specifically designed to be run as root.

For this purpose you can also run individual commands as root:

su -c 'command'
However, this way you have to keep entering your password each time.

All times are GMT -5. The time now is 08:39 PM.