Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-08-2004, 09:14 AM   #1
LQ Newbie
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Configure for intranet server

Hey all:

I am new to linux, I have been managing linux servers from web front ends for years so I understand some of the basic princiiples. I am also a Windows Networking guy so fundementals I understand.

Here is the skinny.

Mandrake 10 Distro
Apache configured and working (can localhost and get a website)
PHP - Installed but cannot test (see below)
MySQL - Installed and appears to be working.

Problem I am having is even under root I cannot change the permissions of the /var/www folders to allow for me to upload and or modify the html files.

I have tried both GUI - Admin login (which I dont like and will disable once server goes production) as well as command line chown root /var/ and chmod ing the /var/ with no luck.

Basically its acting as if it is a system folder and will not allow even root to make changes to this.

Can you help a windows guy out?

P.S. I have started attending Windows Annonymous and am planning on jumping the windows ship completely in the very near future...though I have alot to learn.

The forums are a great help been reading straighht fo rthe last couple of hours.

SCREACH - The sound of your life coming to an end at Windows BSOD!
Old 09-08-2004, 09:23 AM   #2
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
There is no way it can disallow root user any changes. This is linux.

Anyway, it is a very good idea not to upload/download web content as root. So you need a user for that. Create one. I guess you know how to create new users. Say, the user will be called webadmin.
So do this:
chown -R webadmin: /var/www
chmod -R 755 /var/www

and to be on the safe side:
chmod 755 /var
chmod 755 /

This will allow user webadmin modify, delete and add files in /var/www

Hope that helps. If not, could you please post exact commands you type and exact output you get.
Old 09-08-2004, 09:33 AM   #3
LQ Newbie
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Ok did exactly as you suggested.

chown -R webadmin /var/www

It scrolled through all the files/folders but at the end of each scrolled command it said.
"Operation not permitted"
Old 09-08-2004, 09:34 AM   #4
LQ Newbie
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Nevermind I am a dork! BAH Windows has corrupted me.

I forgot to $ su first


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
The best Intranet Mail Server !! hitesh_linux Linux - Networking 8 01-02-2005 09:30 AM
Intranet Web Server Dr_Monkey Linux - Networking 1 05-20-2004 11:32 PM
can not remote to server (neither intranet or internet) aardvark667 Linux - Newbie 3 04-12-2004 05:13 PM
can not remote to server (neither intranet or internet) aardvark667 Linux - Newbie 1 04-12-2004 12:17 PM
Intranet Web Server??? timmy_laf Mandriva 1 01-05-2004 10:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration