LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-08-2004, 10:14 AM   #1
screach
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, 10:23 AM   #2
r0b0
Member
 
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, 10:33 AM   #3
screach
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, 10:34 AM   #4
screach
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
 
  


Reply


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 10:30 AM
Intranet Web Server Dr_Monkey Linux - Networking 1 05-21-2004 12:32 AM
can not remote to server (neither intranet or internet) aardvark667 Linux - Newbie 3 04-12-2004 06:13 PM
can not remote to server (neither intranet or internet) aardvark667 Linux - Newbie 1 04-12-2004 01:17 PM
Intranet Web Server??? timmy_laf Mandriva 1 01-05-2004 11:18 PM


All times are GMT -5. The time now is 06:30 PM.

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