LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-21-2009, 03:04 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
Help on chown ?


I want to provide write access to a user on apache DOCROOT.
I have DOCROOT under /var/www_91.
I tried with the following:
Code:
usermod -G apache john
id john
[root@mont ~]# id ben
uid=500(john) gid=500(john) groups=500(john),48(apache)
[root@mont ~]#
cd /var
chown -R apache:ben www_91
Is it enough?
Shall I also do :
Code:
chown -R apache:ben /var  ---<<< Pls Suggest?

Last edited by your_shadow03; 11-21-2009 at 03:14 AM.
 
Old 11-21-2009, 03:16 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

I might be wrong but shouldn't the user be member of the www-data group instead of the apache group? Not an expert in Apache but I seem to remember coming across a similar issue and solved it by making user member of the www-data group. All depends of how it's setup of course.

Kind regards,

Eric
 
Old 11-21-2009, 03:39 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
www-data is for Ubuntu whereas apache user and group is for Red Hat.
 
Old 11-21-2009, 03:43 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Ah ok, thanks for the info, I'm used to Debian, hence the confusion.

Kind regards,

Eric
 
Old 11-21-2009, 03:58 AM   #5
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Eric..I need your help on PHP..Can You please look into the programming section?
Thanks.
 
  


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
chown strycnine Slackware 5 12-07-2006 10:39 AM
chown loopoo Linux - Newbie 5 08-09-2005 10:38 AM
Chown -R Jakeh2k1 Linux - General 3 10-31-2004 05:23 PM
chown -R ujotne Programming 3 02-25-2004 01:02 PM
chown Sathe Linux - General 13 10-14-2002 12:25 PM


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