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 08-24-2012, 11:31 PM   #1
hansfordmc
LQ Newbie
 
Registered: Aug 2012
Posts: 4

Rep: Reputation: Disabled
Granting Apache write access


I'm on RedHat Linux and have php scripts which run under user:apache group:apache. Now, the php files are owned by another group. How do I grant apache write access to files owned by this other group. As it is now, the only way apache can write to these files is by chmod 0777 the file. 0775 does not work.

Thanks.
 
Old 08-24-2012, 11:47 PM   #2
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
I am not sure but, you can try to make apache member of another group by the command
Code:
usermod -a -G othergroupname apache
 
1 members found this post helpful.
Old 08-25-2012, 12:13 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
I use ACL for it; unfortunately no notes at hand how I did it.
 
  


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
Granting same access rights to two users? Ajit Gunge AIX 4 07-19-2012 12:23 AM
Granting write permission to subdirectory Fooshnik Linux - Security 12 01-13-2011 06:50 PM
Granting full write access to another users web directory acctman Linux - Server 2 02-12-2009 06:32 PM
Granting full read/write permissions to all files for a specific user laserjim Linux - Security 10 01-31-2009 12:17 PM
Apache write access helpmhost Linux - Server 1 06-20-2007 02:22 PM

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

All times are GMT -5. The time now is 12:03 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