You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matt Hannan <ma...@verizon.net> on 2004/02/06 02:49:15 UTC

[users@httpd] Permissions question

Apache rocks. Apache is great. I love Apache.
Heck, I have Apache blood in my Irish veins!

But....
I have a, hopefully, simple question.

I set up my first virtual host the other night and realized I had an
issue.

I have a main web site that I maintain (set that up as Name virtual,
also) and do not mind buggering around with flipping files from my XP
client to my Linux server via assorted SAMBA shares.

The issue is that I have a roommate, who the second site is for, and I
do not think she can handle the file flipping that has become nearly
second nature to me.

I have the /var/www set as a share in SAMBA, but I have never been able
to make edits directly to it. Now that she is onboard with making a web
site, I want to make it as easy as pie for her, hence being able to
write to the SAMABA share in her web sites directory.

I refuse to believe that I am the only knucklehead running a Win client
and a Linux backend armed with Apache.

Please, because I really am at a loss, do I set write access to the
/var/www on the Linux server file system, or thru SAMBA? I have tried
both and get negative results. If I set the file system permissions to
777, which I am obviously loathe to do!!, I can do this, but I do want
to maintain at least a sense of security on my web server!!!

Thanks.
Matt



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Permissions question

Posted by Matt Hannan <ma...@verizon.net>.

Under security=share, you set a user / group (usually nobody) in 
smb.conf which all file operations are done as, you need to make sure 
that the owner / group of the samba share matches this user and that 
your samba share perms are 775.

HTH
Rich

*******************************************

I am running SAMBA as a PDC, so yeah, it is security=user. Thanks for
the replies, especially the one for 775!!! I saw my SAMBA permissions
were out of skew.

**********************************************

Update from the home front:

775 wins the prize!!

You guys rock.

God save Apache!!



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Permissions question

Posted by Matt Hannan <ma...@verizon.net>.

-----Original Message-----
From: Richard Gration [mailto:richard@zync.co.uk] 
Sent: Friday, February 06, 2004 5:49 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Permissions question


Matt Hannan wrote:
> I have a main web site that I maintain (set that up as Name virtual,
> also) and do not mind buggering around with flipping files from my XP 
> client to my Linux server via assorted SAMBA shares.
> 
> The issue is that I have a roommate, who the second site is for, and I

> do not think she can handle the file flipping that has become nearly 
> second nature to me.
> 
> I have the /var/www set as a share in SAMBA, but I have never been 
> able to make edits directly to it. Now that she is onboard with making

> a web site, I want to make it as easy as pie for her, hence being able

> to write to the SAMABA share in her web sites directory.
> 

You leave some details out, but I'm guessing you have security=share 
rather than security=user? If I'm right, then I can help. If not, then I

can't help, 'cos security=user is such a black art :-)

Under security=share, you set a user / group (usually nobody) in 
smb.conf which all file operations are done as, you need to make sure 
that the owner / group of the samba share matches this user and that 
your samba share perms are 775.

HTH
Rich

*******************************************

I am running SAMBA as a PDC, so yeah, it is security=user.
Thanks for the replies, especially the one for 775!!! I saw my SAMBA
permissions were out of skew.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Permissions question

Posted by Richard Gration <ri...@zync.co.uk>.
Matt Hannan wrote:
> I have a main web site that I maintain (set that up as Name virtual,
> also) and do not mind buggering around with flipping files from my XP
> client to my Linux server via assorted SAMBA shares.
> 
> The issue is that I have a roommate, who the second site is for, and I
> do not think she can handle the file flipping that has become nearly
> second nature to me.
> 
> I have the /var/www set as a share in SAMBA, but I have never been able
> to make edits directly to it. Now that she is onboard with making a web
> site, I want to make it as easy as pie for her, hence being able to
> write to the SAMABA share in her web sites directory.
> 

You leave some details out, but I'm guessing you have security=share 
rather than security=user? If I'm right, then I can help. If not, then I 
can't help, 'cos security=user is such a black art :-)

Under security=share, you set a user / group (usually nobody) in 
smb.conf which all file operations are done as, you need to make sure 
that the owner / group of the samba share matches this user and that 
your samba share perms are 775.

HTH
Rich


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org