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"


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"


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"


rmuser error - shared memory

2008-02-18 Thread Lubomir Matousek
Thanks very much Bill and James. Hana vs hanka is only typo at this mail
(hana is correct, as it is in my box).
I apologize for this incorrect information.


Bill, you are right, the kernel was build without shared memory support.
Option SYSVSHM is not included in the kernel.

As I cannot recompile the kernel on this production server now, can be there
any impact on instability of my system with missing SYSVSHM option?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Moran
Sent: Saturday, February 16, 2008 6:04 PM
To: [EMAIL PROTECTED]
Cc: Lubomir Matousek; freebsd-questions@freebsd.org
Subject: Re: (no subject)

James <[EMAIL PROTECTED]> wrote:
>
> 
> On Sat, 2008-02-16 at 09:11 +0100, Lubomir Matousek wrote:
> > Dear list, 
> > 
> >  
> > 
> > I have the following problem when using rmuser (freebsd 6.2)
> > 
> >  
> > 
> > --
> > 
> > rmuser -v hana
> > 
> > Matching password entry:
> > 
> >  
> > 
> > hana:*:1091:1092::0:0:/usr/home/hana:/usr/sbin/nologin
> > 
> >  
> > 
> > Is this the entry you wish to remove? yes Remove user's home directory
> > (/usr/home/hanka)? yes Removing crontab for (hana):.
> > 
> > Removing at(1) jobs owned by (hana): 0 removed.
> > 
> > Removing IPC mechanismsipcs: sysctlbyname: kern.ipc.shmmax: No such file
or
> > directory
> > 
> > ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory
> > 
> > ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory .
> > 
> > Terminating all processes owned by (hana): -KILL signal sent to 0
processes.
> > 
> > Removing files owned by (hana) in /tmp: 0 removed.
> > 
> > Removing files owned by (hana) in /var/tmp: 0 removed.
> > 
> > Removing mail spool(s) for (hana): /var/mail/hana.
> > 
> > Removing user (hana) (including home directory) from the system: Done.
> > 
> > ---
> > 
> >  
> > 
> > The problem started, when I accidentaly deleted /usr/home directory and
I
> > had to create a new one. I checked /etc/password file and the direcory
> > existed before using rmuser. Can anybody help please?
> > 
> >  
> > 
> > 
> > 
> > Lubos
> 
> 
> Looks like the problem is that somewhere within there it's expected that
> the home directory isn't /usr/home/hana, it's /usr/home/hanka
> 
> Have you checked /etc/master.passwd to make sure that there's no
> mis-entry in there? Or just try creating /usr/home/hanka and see if it
> works itself out.

Personally, I'm unsure where the "problem" is.  The only suspicious thing
I see is the inability to remove shared memory segments, which is a bit
strange but not wholly unexpected.  Did you build a kernel without shared
memory?

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


(no subject)

2008-02-16 Thread Lubomir Matousek
Dear list, 

 

I have the following problem when using rmuser (freebsd 6.2)

 

--

rmuser -v hana

Matching password entry:

 

hana:*:1091:1092::0:0:/usr/home/hana:/usr/sbin/nologin

 

Is this the entry you wish to remove? yes Remove user's home directory
(/usr/home/hanka)? yes Removing crontab for (hana):.

Removing at(1) jobs owned by (hana): 0 removed.

Removing IPC mechanismsipcs: sysctlbyname: kern.ipc.shmmax: No such file or
directory

ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory

ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory .

Terminating all processes owned by (hana): -KILL signal sent to 0 processes.

Removing files owned by (hana) in /tmp: 0 removed.

Removing files owned by (hana) in /var/tmp: 0 removed.

Removing mail spool(s) for (hana): /var/mail/hana.

Removing user (hana) (including home directory) from the system: Done.

---

 

The problem started, when I accidentaly deleted /usr/home directory and I
had to create a new one. I checked /etc/password file and the direcory
existed before using rmuser. Can anybody help please?

 

 

Lubos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


rmuser problem

2008-02-09 Thread Lubomir Matousek
Dear list, 

I have the following problem when using rmuser (freebsd 6.2)

--
rmuser -v hana
Matching password entry:

hana:*:1091:1092::0:0:/usr/home/hana:/usr/sbin/nologin

Is this the entry you wish to remove? yes
Remove user's home directory (/usr/home/hanka)? yes
Removing crontab for (hana):.
Removing at(1) jobs owned by (hana): 0 removed.
Removing IPC mechanismsipcs: sysctlbyname: kern.ipc.shmmax: No such file or
directory
ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory
ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory
.
Terminating all processes owned by (hana): -KILL signal sent to 0 processes.
Removing files owned by (hana) in /tmp: 0 removed.
Removing files owned by (hana) in /var/tmp: 0 removed.
Removing mail spool(s) for (hana): /var/mail/hana.
Removing user (hana) (including home directory) from the system: Done.
---

The problem started, when I accidentaly deleted /usr/home directory and I
had to create a new one. I checked /etc/password file and the direcory
existed before using rmuser. Can anybody help please?


Lubos




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


disaster - restore data from corrupted archive

2007-07-07 Thread Lubomir Matousek
Hello all,

Today I destroyed /usr/home directory. I have a bzip2 dump backup of entire
/usr directory (level0). But some of data in bzip2 file are corrupted. I
verified it by bzip2 -vv.
Finally, I used bzip2recover, I've decompressed about 800 files with no
error message.

Is there safe way to restore or extract /home directory??  Thank you for
help...

Lubos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Chrooting Apache 2, PHP 5 and MySQL 5

2007-04-18 Thread Lubomir Matousek
Hi, can anybody direct me to the subjected topic? I tried to google it out,
but only chrooting of old versions is explained.

 

Regards

 

Lubos




---
avast! Antivirus on Lubnet Server: Odchozi zprava cista.
Virova databaze (VPS): 000734-2, 18.04.2007
Testovano: 18.4.2007 23:57:13
avast! (c) copyright 1988-2007 ALWIL Software.
http://www.avast.com


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"