LinuxQuestions.org
Visit Jeremy's Blog.
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-04-2007, 09:55 PM   #1
brokenpromises
Member
 
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 99

Rep: Reputation: 21
Help with chown command


Hello,

I've got a web server set up, and have been told that the most secure way of allowing apache to write to directories (for running CMS software such as Joomla). Everything is running it with chmod 777 at the moment, so is not overly secure, and for once, I'd like to do things 'properly',

How can I use chown to add apache to the group? I'm not sure where to start, or which group to add apache even

Any help appreciated
 
Old 09-04-2007, 11:32 PM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,291

Rep: Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587
chown -R user:group directory
 
Old 09-05-2007, 04:24 AM   #3
rishipandit007
Member
 
Registered: Oct 2006
Distribution: Debian, Ubuntu, Centos
Posts: 36

Rep: Reputation: 17
Smile Thinking of security

If you are thinking about security of your files then better not give 777 instead use 755 and do check if you are using selinux.
 
  


Reply

Tags
apache, chown


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
help req in chown command vishnu Solaris / OpenSolaris 1 07-21-2006 08:05 AM
!!!! Urgent, using chown command ? AQG Linux - Security 8 08-12-2005 04:21 PM
I Have a problem with the CHOWN command AnnePeter Linux - Software 5 03-12-2004 08:37 AM
So... I used Chown command and screwed my pc... Nosram Linux - Newbie 3 01-20-2004 07:09 AM
chown command help ksgill Linux - Newbie 9 04-28-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:26 AM.

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