Re: mtree: line 21: unknown user auditdistd

2013-10-02 Thread Alexandre
On Wed, Oct 2, 2013 at 8:01 AM, Trond Endrestøl <
trond.endres...@fagskolen.gjovik.no> wrote:

> On Tue, 1 Oct 2013 12:19-0400, alexus wrote:
>
> > I've re-run pwd_mkdb now auditdistd user is there, yet back to
> mergemaster
> > issues:
> >
> > [root@f9 ~]# pwd_mkdb -p /etc/master.passwd
> > [root@f9 ~]# id auditdistd
> > uid=78(auditdistd) gid=77(audit) groups=77(audit)
> > [root@f9 ~]# mergemaster
> >
> > *** Creating the temporary root environment in /var/tmp/temproot
> >  *** /var/tmp/temproot ready for use
> >  *** Creating and populating directory structure in /var/tmp/temproot
> >
> > install: illegal option -- l
> > usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
> >[-o owner] file1 file2
> >install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
> >[-o owner] file1 ... fileN directory
> >install -d [-v] [-g group] [-m mode] [-o owner] directory ...
> >
> >   *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
> >   the temproot environment
> >
> > [root@f9 ~]#
>
> You need to semi-manually install a new version of mergemaster:
>
> cd /usr/src/usr.sbin/mergemaster && make install
>
> See the 20130430 entry in /usr/src/UPDATING.
>
> > On Tue, Oct 1, 2013 at 11:52 AM, alexus  wrote:
> >
> > > I even sort of have that user...
> > >
> > > f9# grep auditdistd /etc/*passwd
> > > /etc/master.passwd:auditdistd:*:78:77::0:0:Auditdistd unprivileged
> > > user:/var/empty:/usr/sbin/nologin
> > > /etc/passwd:auditdistd:*:78:77:Auditdistd unprivileged
> > > user:/var/empty:/usr/sbin/nologin
> > > f9#
> > >
> > > On Tue, Oct 1, 2013 at 11:32 AM, alexus  wrote:
> > >
> > >> I've tried upgrading my FreeBSD 9.1 to 9.2 via freebsd-update and I
> guess
> > >> I did something wrong and now I'm trying to run mergemaster and I'm
> unable
> > >> to do so, although I do remember merging passwd file w/ new user
> auditdistd
> > >>
> > >> how can I re-run mergemaster?
> > >>
> > >> f9# mergemaster
> > >>
> > >> *** The directory specified for the temporary root environment,
> > >> /var/tmp/temproot, exists.  This can be a security risk if
> untrusted
> > >> users have access to the system.
> > >>
> > >>   Use 'd' to delete the old /var/tmp/temproot and continue
> > >>   Use 't' to select a new temporary root directory
> > >>   Use 'e' to exit mergemaster
> > >>
> > >>   Default is to use /var/tmp/temproot as is
> > >>
> > >> How should I deal with this? [Use the existing /var/tmp/temproot]
> > >>
> > >>*** Leaving /var/tmp/temproot intact
> > >>
> > >> *** Creating the temporary root environment in /var/tmp/temproot
> > >>  *** /var/tmp/temproot ready for use
> > >>  *** Creating and populating directory structure in /var/tmp/temproot
> > >>
> > >> mtree: line 21: unknown user auditdistd
> > >>
> > >>   *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
> > >>   the temproot environment
> > >>
> > >> f9#
> > >
> > > --
> > > http://alexus.org/
>
> --
> +---++
> | Vennlig hilsen,   | Best regards,  |
> | Trond Endrestøl,  | Trond Endrestøl,   |
> | IT-ansvarlig, | System administrator,  |
> | Fagskolen Innlandet,  | Gjøvik Technical College, Norway,  |
> | tlf. mob.   952 62 567,   | Cellular...: +47 952 62 567,   |
> | sentralbord 61 14 54 00.  | Switchboard: +47 61 14 54 00.  |
> +---++
> ___
> 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"
>
Hi Trond and Alexus,
The tool used by freebsd-update to merge system files is "merge(1)", not
"mergemaster(8)".
See manpage merge(1)
http://www.freebsd.org/cgi/man.cgi?query=merge&apropos=0&sektion=0&manpath=FreeBSD+9.2-RELEASE&arch=default&format=html
for
more information.
I use mergemaster(8) tool if I deal with sources system upgrade process.

Kind regards,
Alexandre
___
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: mtree: line 21: unknown user auditdistd

2013-10-01 Thread Trond Endrestøl
On Tue, 1 Oct 2013 12:19-0400, alexus wrote:

> I've re-run pwd_mkdb now auditdistd user is there, yet back to mergemaster
> issues:
> 
> [root@f9 ~]# pwd_mkdb -p /etc/master.passwd
> [root@f9 ~]# id auditdistd
> uid=78(auditdistd) gid=77(audit) groups=77(audit)
> [root@f9 ~]# mergemaster
> 
> *** Creating the temporary root environment in /var/tmp/temproot
>  *** /var/tmp/temproot ready for use
>  *** Creating and populating directory structure in /var/tmp/temproot
> 
> install: illegal option -- l
> usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
>[-o owner] file1 file2
>install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
>[-o owner] file1 ... fileN directory
>install -d [-v] [-g group] [-m mode] [-o owner] directory ...
> 
>   *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
>   the temproot environment
> 
> [root@f9 ~]#

You need to semi-manually install a new version of mergemaster:

cd /usr/src/usr.sbin/mergemaster && make install

See the 20130430 entry in /usr/src/UPDATING.

> On Tue, Oct 1, 2013 at 11:52 AM, alexus  wrote:
> 
> > I even sort of have that user...
> >
> > f9# grep auditdistd /etc/*passwd
> > /etc/master.passwd:auditdistd:*:78:77::0:0:Auditdistd unprivileged
> > user:/var/empty:/usr/sbin/nologin
> > /etc/passwd:auditdistd:*:78:77:Auditdistd unprivileged
> > user:/var/empty:/usr/sbin/nologin
> > f9#
> >
> > On Tue, Oct 1, 2013 at 11:32 AM, alexus  wrote:
> >
> >> I've tried upgrading my FreeBSD 9.1 to 9.2 via freebsd-update and I guess
> >> I did something wrong and now I'm trying to run mergemaster and I'm unable
> >> to do so, although I do remember merging passwd file w/ new user auditdistd
> >>
> >> how can I re-run mergemaster?
> >>
> >> f9# mergemaster
> >>
> >> *** The directory specified for the temporary root environment,
> >> /var/tmp/temproot, exists.  This can be a security risk if untrusted
> >> users have access to the system.
> >>
> >>   Use 'd' to delete the old /var/tmp/temproot and continue
> >>   Use 't' to select a new temporary root directory
> >>   Use 'e' to exit mergemaster
> >>
> >>   Default is to use /var/tmp/temproot as is
> >>
> >> How should I deal with this? [Use the existing /var/tmp/temproot]
> >>
> >>*** Leaving /var/tmp/temproot intact
> >>
> >> *** Creating the temporary root environment in /var/tmp/temproot
> >>  *** /var/tmp/temproot ready for use
> >>  *** Creating and populating directory structure in /var/tmp/temproot
> >>
> >> mtree: line 21: unknown user auditdistd
> >>
> >>   *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
> >>   the temproot environment
> >>
> >> f9#
> >
> > --
> > http://alexus.org/

-- 
+---++
| Vennlig hilsen,   | Best regards,  |
| Trond Endrestøl,  | Trond Endrestøl,   |
| IT-ansvarlig, | System administrator,  |
| Fagskolen Innlandet,  | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,   | Cellular...: +47 952 62 567,   |
| sentralbord 61 14 54 00.  | Switchboard: +47 61 14 54 00.  |
+---++___
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: mtree: line 21: unknown user auditdistd

2013-10-01 Thread Alexandre
On Tue, Oct 1, 2013 at 5:52 PM, alexus  wrote:

> I even sort of have that user...
>
> f9# grep auditdistd /etc/*passwd
> /etc/master.passwd:auditdistd:*:78:77::0:0:Auditdistd unprivileged
> user:/var/empty:/usr/sbin/nologin
> /etc/passwd:auditdistd:*:78:77:Auditdistd unprivileged
> user:/var/empty:/usr/sbin/nologin
> f9#
>
>
>
> On Tue, Oct 1, 2013 at 11:32 AM, alexus  wrote:
>
> > I've tried upgrading my FreeBSD 9.1 to 9.2 via freebsd-update and I guess
> > I did something wrong and now I'm trying to run mergemaster and I'm
> unable
> > to do so, although I do remember merging passwd file w/ new user
> auditdistd
> >
> > how can I re-run mergemaster?
> >
> > f9# mergemaster
> >
> > *** The directory specified for the temporary root environment,
> > /var/tmp/temproot, exists.  This can be a security risk if untrusted
> > users have access to the system.
> >
> >   Use 'd' to delete the old /var/tmp/temproot and continue
> >   Use 't' to select a new temporary root directory
> >   Use 'e' to exit mergemaster
> >
> >   Default is to use /var/tmp/temproot as is
> >
> > How should I deal with this? [Use the existing /var/tmp/temproot]
> >
> >*** Leaving /var/tmp/temproot intact
> >
> > *** Creating the temporary root environment in /var/tmp/temproot
> >  *** /var/tmp/temproot ready for use
> >  *** Creating and populating directory structure in /var/tmp/temproot
> >
> > mtree: line 21: unknown user auditdistd
> >
> >   *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
> >   the temproot environment
> >
> > f9#
> >
> >
>
>
> --
> http://alexus.org/
> ___
> 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"
>
Hi Alexus,

You should have a look to this topic on FreeBSD Forums
http://forums.freebsd.org/showthread.php?t=36454

Kind regards,
Alexandre
___
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: mtree: line 21: unknown user auditdistd

2013-10-01 Thread alexus
I've re-run pwd_mkdb now auditdistd user is there, yet back to mergemaster
issues:

[root@f9 ~]# pwd_mkdb -p /etc/master.passwd
[root@f9 ~]# id auditdistd
uid=78(auditdistd) gid=77(audit) groups=77(audit)
[root@f9 ~]# mergemaster

*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot

install: illegal option -- l
usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
   [-o owner] file1 file2
   install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
   [-o owner] file1 ... fileN directory
   install -d [-v] [-g group] [-m mode] [-o owner] directory ...

  *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
  the temproot environment

[root@f9 ~]#



On Tue, Oct 1, 2013 at 11:52 AM, alexus  wrote:

> I even sort of have that user...
>
> f9# grep auditdistd /etc/*passwd
> /etc/master.passwd:auditdistd:*:78:77::0:0:Auditdistd unprivileged
> user:/var/empty:/usr/sbin/nologin
> /etc/passwd:auditdistd:*:78:77:Auditdistd unprivileged
> user:/var/empty:/usr/sbin/nologin
> f9#
>
>
>
> On Tue, Oct 1, 2013 at 11:32 AM, alexus  wrote:
>
>> I've tried upgrading my FreeBSD 9.1 to 9.2 via freebsd-update and I guess
>> I did something wrong and now I'm trying to run mergemaster and I'm unable
>> to do so, although I do remember merging passwd file w/ new user auditdistd
>>
>> how can I re-run mergemaster?
>>
>> f9# mergemaster
>>
>> *** The directory specified for the temporary root environment,
>> /var/tmp/temproot, exists.  This can be a security risk if untrusted
>> users have access to the system.
>>
>>   Use 'd' to delete the old /var/tmp/temproot and continue
>>   Use 't' to select a new temporary root directory
>>   Use 'e' to exit mergemaster
>>
>>   Default is to use /var/tmp/temproot as is
>>
>> How should I deal with this? [Use the existing /var/tmp/temproot]
>>
>>*** Leaving /var/tmp/temproot intact
>>
>> *** Creating the temporary root environment in /var/tmp/temproot
>>  *** /var/tmp/temproot ready for use
>>  *** Creating and populating directory structure in /var/tmp/temproot
>>
>> mtree: line 21: unknown user auditdistd
>>
>>   *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
>>   the temproot environment
>>
>> f9#
>>
>>
>
>
> --
> http://alexus.org/
>



-- 
http://alexus.org/
___
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: mtree: line 21: unknown user auditdistd

2013-10-01 Thread alexus
I even sort of have that user...

f9# grep auditdistd /etc/*passwd
/etc/master.passwd:auditdistd:*:78:77::0:0:Auditdistd unprivileged
user:/var/empty:/usr/sbin/nologin
/etc/passwd:auditdistd:*:78:77:Auditdistd unprivileged
user:/var/empty:/usr/sbin/nologin
f9#



On Tue, Oct 1, 2013 at 11:32 AM, alexus  wrote:

> I've tried upgrading my FreeBSD 9.1 to 9.2 via freebsd-update and I guess
> I did something wrong and now I'm trying to run mergemaster and I'm unable
> to do so, although I do remember merging passwd file w/ new user auditdistd
>
> how can I re-run mergemaster?
>
> f9# mergemaster
>
> *** The directory specified for the temporary root environment,
> /var/tmp/temproot, exists.  This can be a security risk if untrusted
> users have access to the system.
>
>   Use 'd' to delete the old /var/tmp/temproot and continue
>   Use 't' to select a new temporary root directory
>   Use 'e' to exit mergemaster
>
>   Default is to use /var/tmp/temproot as is
>
> How should I deal with this? [Use the existing /var/tmp/temproot]
>
>*** Leaving /var/tmp/temproot intact
>
> *** Creating the temporary root environment in /var/tmp/temproot
>  *** /var/tmp/temproot ready for use
>  *** Creating and populating directory structure in /var/tmp/temproot
>
> mtree: line 21: unknown user auditdistd
>
>   *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
>   the temproot environment
>
> f9#
>
>


-- 
http://alexus.org/
___
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: mtree spec

2013-01-08 Thread Fbsd8

Robert Bonomi wrote:

From owner-freebsd-questi...@freebsd.org  Tue Jan  8 07:35:39 2013
Date: Tue, 08 Jan 2013 08:32:17 -0500
From: Fbsd8 
To: FreeBSD questions 
Subject: mtree spec

I have this mtree specification file

/set type=dir uname=root gname=wheel
.
etc
..
root
..
usr
local
etc
..
..
..
..

But I want to have it behave a little differently.
What I am after is etc has to be present and any sub-directories off of 
etc is not a error. Same thing for for root and usr/local/etc




The answers to those issues are found in 'man mtree'.

IOW, RTFM applies.




What you think I got this far without reading the manual.
If I had greater understanding what the manual was saying
I would not be asking for help.

___
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: mtree spec

2013-01-08 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Tue Jan  8 07:35:39 2013
> Date: Tue, 08 Jan 2013 08:32:17 -0500
> From: Fbsd8 
> To: FreeBSD questions 
> Subject: mtree spec
>
> I have this mtree specification file
>
> /set type=dir uname=root gname=wheel
> .
> etc
> ..
> root
> ..
> usr
> local
> etc
> ..
> ..
> ..
> ..
>
> But I want to have it behave a little differently.
> What I am after is etc has to be present and any sub-directories off of 
> etc is not a error. Same thing for for root and usr/local/etc
>

The answers to those issues are found in 'man mtree'.

IOW, RTFM applies.

___
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: mtree unable to find group wheel, possible corrupt /etc/group file

2010-01-13 Thread keneasson
 On Wed, 13 Jan 2010 21:44:28 +0600 Yuri Pankov 
 wrote  

On Wed, Jan 13, 2010 at 09:32:41PM +0600, keneasson wrote: 
> Hi all, 
> 
> I've got a number of ports that will build but not install. 
> 
> The error is: 
> 
> ===> Generating temporary packing list 
> ===> Checking if deskutils/gucharmap already installed 
> mtree: line 1: unknown group wheel--- 
 
wheel---? Check your /etc/mtree/ files also for mergemaster's cruft. 
 
> *** Error code 1 
> 
> 
> I discovered that i had patch code left over from mergemaster in my 
/etc/group file, i have deleted and rebooted. 
> unfortunately, i still get the same error when i try to install ports. 
> 
> the group file seems to have been readable to something, as i could sudo 
and su from my login user. 
> 
> any help greatly appreciated. 
> 
> # $FreeBSD: src/etc/group,v 1.35.10.1 2009/08/03 08:13:06 kensmith Exp $ 
> # 
> wheel:*:0:root,justken,www 
> daemon:*:1: 
> kmem:*:2: 
> sys:*:3: 
> tty:*:4: 
> operator:*:5:root 
> ... 
> authpf:*:63: 
> _pflogd:*:64: 
> _dhcp:*:65: 
> 
> -ken 
 
 
Yuri 
Thank you,
not sure where the fluff came from but the culprit was:
/usr/local/etc/mtree/BSD.gnome.dist:
which had group=wheel--- /etc/group 1 mode=0755

seems i might have other cruft too:
tar: +*: Not found in archive

Thanks.
ken.
___
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: mtree unable to find group wheel, possible corrupt /etc/group file

2010-01-13 Thread Yuri Pankov
On Wed, Jan 13, 2010 at 09:32:41PM +0600, keneasson wrote:
> Hi all,
> 
> I've got a number of ports that will build but not install.
> 
> The error is:
> 
> ===>   Generating temporary packing list
> ===>  Checking if deskutils/gucharmap already installed
> mtree: line 1: unknown group wheel---

wheel---? Check your /etc/mtree/ files also for mergemaster's cruft.

> *** Error code 1
> 
> 
> I discovered that i had patch code left over from mergemaster in my 
> /etc/group file, i have deleted and rebooted.
> unfortunately, i still get the same error when i try to install ports.
> 
> the group file seems to have been readable to something, as i could sudo and 
> su from my login user. 
> 
> any help greatly appreciated.
> 
> # $FreeBSD: src/etc/group,v 1.35.10.1 2009/08/03 08:13:06 kensmith Exp $
> #
> wheel:*:0:root,justken,www
> daemon:*:1:
> kmem:*:2:
> sys:*:3:
> tty:*:4:
> operator:*:5:root
> ...
> authpf:*:63:
> _pflogd:*:64:
> _dhcp:*:65:
> 
> -ken


Yuri
___
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: mtree

2008-11-11 Thread Dan Nelson
In the last episode (Nov 10), Garcia, Tony said:
> Another developer received approval to test mtree for our project. 
> He has since left and no one knows anything about this application. 
> We are looking at mtree as a way to provide auditing of machines for
> permissions, ownership and date changes as well as performing cksum
> on each file.  Is there any way you can point me to documentation
> that gives me a high and low level of what mtree can do.  I've tried
> compiling the version that was downloaded, but it fails because it
> needs other files which are not present (like .h files).
> 
> I'd appreciate any help you can provide.  The google returns are far
> too numerous to make heads or tails from.  I also have checked the
> freebsd info but I can't find any documentation.  Thank you.

Manpage: http://www.freebsd.org/cgi/man.cgi?query=mtree

Here's a blog entry that explains how to use it as a file verification
tool:

http://blogs.techrepublic.com.com/security/?p=283
"Use mtree for filesystem integrity auditing"

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


Re: mtree

2008-11-10 Thread Alexandre Biancalana
On 11/10/08, Garcia, Tony <[EMAIL PROTECTED]> wrote:
> Another developer received approval to test mtree for our project.  He
>  has since left and no one knows anything about this application.  We are
>  looking at mtree as a way to provide auditing of machines for
>  permissions, ownership and date changes as well as performing cksum on
>  each file.   Is there any way you can point me to documentation that
>  gives me a high and low level of what mtree can do.  I've tried
>  compiling the version that was downloaded, but it fails because it needs
>  other files which are not present (like .h files).
>
>
>
>  I'd appreciate any help you can provide.  The google returns are far too
>  numerous to make heads or tails from.  I also have checked the freebsd
>  info but I can't find any documentation.  Thank you.

try:

man mtree

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


Re: mtree

2008-03-21 Thread Robert Huff

Lowell Gilbert writes:

>  In the "EXAMPLES" section of its manual, there is a formula for
>  how to "create an /etc/mtree style BSD.*.dist file" which is the
>  first half of what you want.

I saw that ...

>   Offhand, I think "mtree -U" is enough to mash
>  everything back to the way the original specification described.

... but somehow missed this.  (*WHAP*)

Thanks to Lowell and Kris.


Robert Huff

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


Re: mtree

2008-03-21 Thread Lowell Gilbert
Robert Huff <[EMAIL PROTECTED]> writes:

>   I know mtree can be used to describe a directory layout, and
> then to re-create that structure.  Is there a place where this is
> described?

I figured out everything I wanted to know from the manual page.  It's
a pretty good manual -- the reason it gives people trouble is just
that there are so *many* different things it can do.

In the "EXAMPLES" section of its manual, there is a formula for how to
"create an /etc/mtree style BSD.*.dist file" which is the first half
of what you want.  Offhand, I think "mtree -U" is enough to mash
everything back to the way the original specification described.

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


Re: mtree

2008-03-21 Thread Kris Kennaway

Robert Huff wrote:

I know mtree can be used to describe a directory layout, and
then to re-create that structure.  Is there a place where this is
described?


Start with the manpage, I guess ;)  There are also examples in /etc/mtree.

Kris

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


Re: mtree vs tripwire

2004-01-21 Thread Lowell Gilbert
Tillman Hodgson <[EMAIL PROTECTED]> writes:

> On Tue, Jan 20, 2004 at 07:53:44PM -0500, Lowell Gilbert wrote:
> > Tillman Hodgson <[EMAIL PROTECTED]> writes:
> > > On Tue, Jan 20, 2004 at 07:40:28PM -0500, Lowell Gilbert wrote:
> > > > Hmm.  I've never had this problem, and when I try to trigger it
> > > > deliberately, I find that my mtree specification has the spaces in the
> > > > filenames escaped.
> > > > 
> > > > e.g.,
> > > > foo\040bar\040baz \
> > > 
> > > Interesting. I'm using -STABLE as of Jan 7/04 on this box ... is your
> > > mtree by any chance from -CURRENT?
> > 
> > No, it's -STABLE within the last few days.
> > 
> > Any chance you could generate a test case that demonstrates the
> > problem on your system?
> 
> I tried `touch`ing files to create them with spaces, and they ended up
> encoded as follows:
> 
> # ./test
> /set type=file uid=0 gid=0 mode=0644 nlink=1 flags=none
> testtype=dir mode=0755 nlink=2 size=512 time=1074647709.0
> this\040is\040a\040file\040with\040spaces.txt \
> size=0 time=1074647708.0 \
> sha1digest=da39a3ee5e6b4b0d3255bfef95601890afd80709
> # ./test
> 
> But when I try to mtree a directory that includes Loki SimCity 3000
> saved games I get files with spaces unencoded:
> 
> # mtree -K sha1digest -c -X mtree.exclude -p /exports/tillman/.loki/sc3u/ > mtree.out
> 
> # ./buildings
> /set type=file uid=500 gid=500 mode=0777 nlink=1 flags=none
> buildings   type=dir mode=0755 nlink=2 size=1024 time=1017616936.0
> Den\040Burg\040Bruges.bld \
> type=link size=39 time=1017616936.0 \
> link=/opt/SC3U/buildings/Den Burg Bruges.bld
> Dupont\040House.bld \
> type=link size=36 time=1017616936.0 \
> link=/opt/SC3U/buildings/Dupont House.bld
> Garvey\040Plaza.bld \
> type=link size=36 time=1017616936.0 \
> link=/opt/SC3U/buildings/Garvey Plaza.bld
> GuestHouse\040Building.bld \
> type=link size=43 time=1017616936.0 \
> link=/opt/SC3U/buildings/GuestHouse Building.bld
> etc.
> 
> The filesystem is still UFS2. I'm just NFS exporting my home
> directories to several machines, including the RedHat 7.3 box that
> originally generated the sc3u save files.
> 
> I'm not /that/ worried about it: I should exclude home directories from
> mtree for this "tripwire replacement" purpose anyway. But it's worrisome
> that it /could/ fail in this way.

Unless we can establish what "this way" is, there isn't much we can do
about it.  It sounds like you've tried to create your test on the same
filesystem as the files that were showing the problems, so I'm not
sure what else to check.  Maybe you can see some differences in the
directory listings themselves?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"