Re: Port upgrade change ownership of port installation directory and files

2012-01-31 Thread Damien Fleuriot


On 1/30/12 8:31 PM, Lubomir Matousek wrote:
 
 
 


 On 1/30/12 2:24 PM, Lubomir Matousek wrote:
 I changed apache default user from www to wbserv.

 I changed also file ownership from www to wbserv.


 Is there any way for portupgrade, that the ownership of installed port
 files remains the same? It means wbserv?


 
 On 30.1.2012 14:52, Damien Fleuriot wrote:
 
 You'll want to be more specific, what files do you refer to ?

 If you're talking about the binaries and modules, they're owned by root
 so this is a non issue.

 If you're talking about the configuration files, they're also owned by
 root.

 If you're talking about SSL certificates you've installed them yourself
 and a portupgrade will not change their perms.

 If you're talking about logfiles, these are your responsibility and,
 again, the port won't change them.

 Last, if you're talking about your HTML/php/whatever files, these are
 also your responsiblity and untouched by the port.
 
 
 Sorry for not being more specific.
 
 After port upgrade
 portupgrade -rR squirrealmail
 
 I have to
 chown -R wbserv:wbserv /var/spool/sqirrelmail
 
 Or after upgrade of postfixadmin:
  portupfrade -rR postfixadmin
 I have to change perms again:
  chown -R wbserv:wbserv /usr/local/www/postfixadmin
 
 What is the best aprroach? To specify correct file ownership at
 make.conf? How can I do that?
 
 Lubomir


As pointed out by RW, make use of the WWWOWN and WWWGRP environment
variables in your /etc/make.conf , that should solve the problem for you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Port upgrade change ownership of port installation directory and files

2012-01-30 Thread Lubomir Matousek

I changed apache default user from www to wbserv.

I changed also file ownership from www to wbserv.


Is there any way for portupgrade, that the ownership of installed port 
files remains the same? It means wbserv?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Port upgrade change ownership of port installation directory and files

2012-01-30 Thread Damien Fleuriot


On 1/30/12 2:24 PM, Lubomir Matousek wrote:
 I changed apache default user from www to wbserv.
 
 I changed also file ownership from www to wbserv.
 
 
 Is there any way for portupgrade, that the ownership of installed port
 files remains the same? It means wbserv?


You'll want to be more specific, what files do you refer to ?

If you're talking about the binaries and modules, they're owned by root
so this is a non issue.

If you're talking about the configuration files, they're also owned by root.

If you're talking about SSL certificates you've installed them yourself
and a portupgrade will not change their perms.

If you're talking about logfiles, these are your responsibility and,
again, the port won't change them.

Last, if you're talking about your HTML/php/whatever files, these are
also your responsiblity and untouched by the port.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Port upgrade change ownership of port installation directory and files

2012-01-30 Thread RW
On Mon, 30 Jan 2012 14:24:08 +0100
Lubomir Matousek wrote:

 I changed apache default user from www to wbserv.
 
 I changed also file ownership from www to wbserv.
 
 
 Is there any way for portupgrade, that the ownership of installed
 port files remains the same? It means wbserv?


If you take a look at the Makefile, the port seems to be using the
variables WWWOWN and WWWGRP which are both defaulted to www.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Port upgrade change ownership of port installation directory and files

2012-01-30 Thread Lubomir Matousek







On 1/30/12 2:24 PM, Lubomir Matousek wrote:

I changed apache default user from www to wbserv.

I changed also file ownership from www to wbserv.


Is there any way for portupgrade, that the ownership of installed port
files remains the same? It means wbserv?





On 30.1.2012 14:52, Damien Fleuriot wrote:


You'll want to be more specific, what files do you refer to ?

If you're talking about the binaries and modules, they're owned by root
so this is a non issue.

If you're talking about the configuration files, they're also owned by root.

If you're talking about SSL certificates you've installed them yourself
and a portupgrade will not change their perms.

If you're talking about logfiles, these are your responsibility and,
again, the port won't change them.

Last, if you're talking about your HTML/php/whatever files, these are
also your responsiblity and untouched by the port.



Sorry for not being more specific.

After port upgrade
portupgrade -rR squirrealmail

I have to
chown -R wbserv:wbserv /var/spool/sqirrelmail

Or after upgrade of postfixadmin:
 portupfrade -rR postfixadmin
I have to change perms again:
 chown -R wbserv:wbserv /usr/local/www/postfixadmin

What is the best aprroach? To specify correct file ownership at 
make.conf? How can I do that?


Lubomir
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Port upgrade change ownership of port installation directory and files

2012-01-30 Thread Lubomir Matousek



On Mon, 30 Jan 2012 14:24:08 +0100
Lubomir Matousek wrote:


I changed apache default user from www to wbserv.

I changed also file ownership from www to wbserv.


Is there any way for portupgrade, that the ownership of installed
port files remains the same? It means wbserv?


On 30.1.2012 15:08, RW wrote:
If you take a look at the Makefile, the port seems to be using the
variables WWWOWN and WWWGRP which are both defaulted to www.



Thanks for replies. It means, is it sufficient to change my 
/etc/make.conf like this?


vi /etc/make.conf
WWWOWN=wbserv
WWWGRP=wbserv

Lubomir

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org