File Permissions

Hi,

I am a newer linux user. Basically I am trying to set up a web server with php. I have done that. The problem I am running into is with file permissions. I am certain that I am simply overlooking something really basic here. I can’t save my html file in the /srv/www/htdocs - I get an error:

Error saving the document hello:
/srv/www/htdocs/hello.html does not exist.

I am able to save the file elsewhere. Can someone please tell me what I am missing? I have done sudo and chmod - Anytime I do I totally mess everything up and have to reinstall the O/S.

chmod og=rw /srv (or any variation)

I also have tried changing permissions through Nautilus - But it will not allow me to. The error that comes up is:

Could not change the permissions of folder “srv”. I am guessing that I could do this if I could sudo Nautilus.

Any help would be appreciated.

I answered my own question. Logged in as root and changed permissions. I’m always overcomplicating this stuff.

to save anything to your www folder, you need to su to root first,as it’s a system file & not alterable by ordinary users.Or, save the file then open a console,su to root, then cp the files over

Andy

chompersthedog wrote:
> Logged in as root and changed permissions.

do not log into KDE or Gnome (or whatever) as root…ever!

always log in as yourself (a normal user) and THEN become root to do
what you need to do as root…see the right ways here:
http://en.opensuse.org/SDB:Login_as_root

do not vary from the right way…to do so is very hazardous to the
safety and security of your system…


secondary