Re: find not finding file.

2006-04-27 Thread Kevin Kinsey

John Webster wrote:



Can anyone explain this:

  # find /etc/ -name 'named.conf'
  # ls -l /etc/namedb/named.conf
  -rw-r--r--  1 root  wheel  3715 Nov 13 17:35 /etc/namedb/named.conf



/etc/namedb is a link to another directory, don't use the trailing
/ in the ls -ld.  So, in this case, you need to add -follow to find.



there is nothing odd about the directories: 


  # ls -dl  /etc/namedb/  /etc/ppp/
  drwxr-xr-x  5 root  wheel  512 Nov 13 17:35 /etc/namedb/
  drwxr-xr-x  2 root  wheel  512 Feb  8 17:36 /etc/ppp/



All well & good; we'll assume the OP missed the fact that this is a 
symlink.  What seems interesting to me, though (and it's probably just 
the fact that I'm a relative *Nix newb), why this?


[402] Thu 27.Apr.2006 15:03:23 
  [EMAIL PROTECTED] 


  # ls -dl /etc/namedb/
drwxr-xr-x  5 root  wheel  512 Apr 26  2005 /etc/namedb//

   [403] Thu 27.Apr.2006 15:03:27 

   [EMAIL PROTECTED] 
  # ls -dl /etc/namedb
lrwxr-xr-x  1 root  wheel  21 Jan 17  2005 /etc/namedb@ -> 
/var/named/etc/namedb



Certainly doesn't *seem* to be mentioned in ls(1).

KDK

PS. Heh, apparently it was me   |
   \ /
--  V
If you explain so clearly that nobody can misunderstand, somebody
will.

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


Re: find not finding file.

2006-04-27 Thread John Webster


--On Thursday, April 27, 2006 18:43:01 +0100 RW <[EMAIL PROTECTED]> wrote:

> Can anyone explain this:
> 
># find /etc/ -name 'named.conf'
># ls -l /etc/namedb/named.conf
>-rw-r--r--  1 root  wheel  3715 Nov 13 17:35 /etc/namedb/named.conf
> 

/etc/namedb is a link to another directory, don't use the trailing
/ in the ls -ld.  So, in this case, you need to add -follow to find.

# ls -ld /etc/namedb 
lrwxr-xr-x  1 root  wheel  21 Apr 27 08:48 /etc/namedb@ -> 
/var/named/etc/namedb 

# find /etc/ -follow -name 'named.conf'
/etc/namedb/named.conf


> named.conf is not found, but as a sanity check a similar search for ppp.conf 
> succeeds  
> 
># find /etc/ -name 'ppp.conf'
>/etc/ppp/ppp.conf
> 
> there is nothing odd about the directories: 
> 
># ls -dl  /etc/namedb/  /etc/ppp/
>drwxr-xr-x  5 root  wheel  512 Nov 13 17:35 /etc/namedb/
>drwxr-xr-x  2 root  wheel  512 Feb  8 17:36 /etc/ppp/
> 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 





pgpyoHBgoqLzT.pgp
Description: PGP signature


Re: find not finding file.

2006-04-27 Thread Luke Dean



On Thu, 27 Apr 2006, RW wrote:


Can anyone explain this:

  # find /etc/ -name 'named.conf'
  # ls -l /etc/namedb/named.conf
  -rw-r--r--  1 root  wheel  3715 Nov 13 17:35 /etc/namedb/named.conf

named.conf is not found, but as a sanity check a similar search for ppp.conf
succeeds

  # find /etc/ -name 'ppp.conf'
  /etc/ppp/ppp.conf

there is nothing odd about the directories:

  # ls -dl  /etc/namedb/  /etc/ppp/
  drwxr-xr-x  5 root  wheel  512 Nov 13 17:35 /etc/namedb/
  drwxr-xr-x  2 root  wheel  512 Feb  8 17:36 /etc/ppp/



Try this:
$ ls -l /etc |grep namedb
lrwxr-xr-x  1 root  wheel   21 Dec 31 18:56 namedb -> /var/named/etc/namedb

namedb is actually a link, and find isn't following it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


find not finding file.

2006-04-27 Thread RW
Can anyone explain this:

   # find /etc/ -name 'named.conf'
   # ls -l /etc/namedb/named.conf
   -rw-r--r--  1 root  wheel  3715 Nov 13 17:35 /etc/namedb/named.conf

named.conf is not found, but as a sanity check a similar search for ppp.conf 
succeeds  

   # find /etc/ -name 'ppp.conf'
   /etc/ppp/ppp.conf

there is nothing odd about the directories: 

   # ls -dl  /etc/namedb/  /etc/ppp/
   drwxr-xr-x  5 root  wheel  512 Nov 13 17:35 /etc/namedb/
   drwxr-xr-x  2 root  wheel  512 Feb  8 17:36 /etc/ppp/


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