LinuxQuestions.org
Help answer threads with 0 replies.
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, 10: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, 10: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-24-2012, 11:13 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

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

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

All times are GMT -5. The time now is 02:43 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
Open Source Consulting | Domain Registration