Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2007 22:12:16 +0200
From:      Erik Norgaard <norgaard@locolomo.org>
To:        Agus <agus.262@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: NFS and apache...
Message-ID:  <465DDAA0.8060204@locolomo.org>
In-Reply-To: <fda61bb50705291654q115a9420m1546ceaa62f40115@mail.gmail.com>
References:  <fda61bb50705291654q115a9420m1546ceaa62f40115@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms030805000605040206000800
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Agus wrote:
> Hi all,
> I got the following scenario. Freebsd with Apache22 and NFS. I want to
> export the /usr/local/www/apache22/data/site so that the content of that
> site can be modified from my personal machine.
> The permissions on site/ are rwx for root and group webadm, and rx for
> others...
> 
> 
> How can i do this? I am trying but im getting permission denied...while
> trying to create a file...

NFS is insecure (No File Security) since there is no authentication. You 
get access with the user id of your current user.

When working with NFS make sure that you have the same users/groups with 
the same user id/group id on all machines.

One security measure is implemented though: root user on client is 
treated as nobody on the server. There is an option you can add to the 
exports file (forgot which), to override this see the exports manpage.

> Also if you have a different solution for updating the site..they are
> welcome..

Unless you have problems with diskspace, why not just use rsync? Do it 
manually and you get time to correct blunders before they become public, 
or do it as a cronjob.

Cheers, Erik

-- 
Ph: +34.666334818                      web: http://www.locolomo.org

--------------ms030805000605040206000800
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIK6DCC
BXAwggRYoAMCAQICBEVUK6IwDQYJKoZIhvcNAQEFBQAwMTELMAkGA1UEBhMCREsxDDAKBgNV
BAoTA1REQzEUMBIGA1UEAxMLVERDIE9DR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ASBgJdvBuNyzO09LMGS11tTibA7Ri/i
IRmK1g13mHxlPsmJy/1WZCAPFJ0asHi8FEAZ3fwuVzJYX0MgiJpSwKEi8oc2+k5g5xyhKyhf
LsQyMK0F9UFIeE59gvpEP3CRAj2aO7Ahlxq4shOwzOS2UYYnKACgKqhC82WDUPJxVQHy0E1f
AAAAAAAA
--------------ms030805000605040206000800--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?465DDAA0.8060204>