LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-30-2007, 09:09 AM   #1
ericnmu
LQ Newbie
 
Registered: Jul 2004
Location: Madison, WI
Posts: 21

Rep: Reputation: 15
Samba access to Apache root


To start, I am Linux novice.

I am trying to setup a small web server for a coworker. I would like to use Samba for him to upload the files. The only share I need is the apache web root (/var/www/html).

In the samba config I can easily setup the share, but he will not have write access to the directory. I understand this is because he doesn’t have write permission within the file system.

How can I assign write permission to a group of Samba users without crippling Apache's or PHP's access to the same folder?
Thanks.
 
Old 08-30-2007, 09:14 AM   #2
nan0meter
Member
 
Registered: Aug 2007
Location: The Netherlands
Distribution: Fedora 7 x86_64
Posts: 119

Rep: Reputation: 15
I don't know if you created a local user for him and in what group it is etc. but you can give everyone permission to write in your http root by running this:

Code:
su -
cd /var/www/
chmod +w /var/www/html
Or to also give the other directories and files under /var/www/html write access then run this:

Code:
su -
cd /var/www/
chmod -R +w /var/www/html
 
Old 08-30-2007, 09:35 AM   #3
ericnmu
LQ Newbie
 
Registered: Jul 2004
Location: Madison, WI
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks nan0meter.
 
Old 08-30-2007, 09:37 AM   #4
nan0meter
Member
 
Registered: Aug 2007
Location: The Netherlands
Distribution: Fedora 7 x86_64
Posts: 119

Rep: Reputation: 15
No problem!
 
Old 08-30-2007, 10:18 AM   #5
ericnmu
LQ Newbie
 
Registered: Jul 2004
Location: Madison, WI
Posts: 21

Original Poster
Rep: Reputation: 15
For the record, I had to use the command:
Code:
chmod -R a+rw /var/www/html
 
  


Reply



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
how to give apache root access Roll Linux - Software 2 03-02-2005 07:55 AM
Root access to html in apache RJDavison Linux - Newbie 1 05-12-2004 06:45 PM
Can't access non-server-root directories in Apache jenna_h Linux - Networking 13 10-29-2003 06:22 PM
Apache doesn't allow non-document-root access in default setup jenna_h Mandriva 1 10-28-2003 07:07 PM
Apache access by samba Dweezil Linux - Newbie 4 04-21-2001 06:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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