[SLUG] Quesion on Netcat

2007-04-01 Thread Amit

Hello group,

I will appreciate it if you could give me insight in my problem:

I did download the netcat and untar it. However, when I run make
linux I get the following error:

netcat.c: In function 'doexec':
netcat.c:586: warning: incompatible implicit declaration of built-in
function 'execl'
/tmp/cc1BHXB9.o: In function `gethostpoop':
netcat.c:(.text+0x1217): warning: Using 'gethostbyaddr' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
netcat.c:(.text+0x1138): warning: Using 'gethostbyname' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/tmp/cc1BHXB9.o: In function `getportpoop':
netcat.c:(.text+0x39a): warning: Using 'getservbyname' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
netcat.c:(.text+0x2f7): warning: Using 'getservbyport' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/tmp/cc1BHXB9.o: In function `main':
netcat.c:(.text+0x1914): undefined reference to `res_init'
collect2: ld returned 1 exit status
make[1]: *** [nc] Error 1
make[1]: Leaving directory `/home/ramsin/sec/nc'
make: *** [linux] Error 2


Your help will be appreciated.

amit

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] PC h/w and s/w Inventory apps - OCS Inventory

2007-04-01 Thread Simon Wong
Hi all!

I just came across OCS Inventory in SF's top 30 list
(http://ocsinventory.sourceforge.net/index.php?page=features) and was
wondering if anyone had used it and hwat their thoughts were.  It looks
quite good on the surface.

Does anyone have any alternate recommendations for this type of software
(hardware and software audits of linux and Windows PCs)?



-- 
Simon Wong [EMAIL PROTECTED]

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Quesion on Netcat

2007-04-01 Thread Martin Visser

Amit,

Just running make linux assumes that your already have all the
correct development packages in place in your environment. The error
your make bombs out on says that the main() function in netcat.c makes
reference to an object (probably a function) called res_init.
However it expects you to have a header file that defines what this
function looks like.  Googling indicates it is to do with the name
resolver package.

I thought I would do a sudo apt-get source netcat myself (on
Ubuntu).  I got  the same error. I found that /usr/include/resolv.h
defines res_init so a quick hack to add #include resolv.h to
netcat.c and make linux resulted in a compiled and linked nc which
is all good. So it seems that the supplied source package for ubuntu
is  either broken or I am not making it correctly.   I guess I should
be bothered and submit a bug report  (or maybe you can Amit - if
you are using Ubuntu that is!)

Martin




On 4/1/07, Amit [EMAIL PROTECTED] wrote:


Hello group,

I will appreciate it if you could give me insight in my problem:

I did download the netcat and untar it. However, when I run make
linux I get the following error:

netcat.c: In function 'doexec':
netcat.c:586: warning: incompatible implicit declaration of built-in
function 'execl'
/tmp/cc1BHXB9.o: In function `gethostpoop':
netcat.c:(.text+0x1217): warning: Using 'gethostbyaddr' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
netcat.c:(.text+0x1138): warning: Using 'gethostbyname' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/tmp/cc1BHXB9.o: In function `getportpoop':
netcat.c:(.text+0x39a): warning: Using 'getservbyname' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
netcat.c:(.text+0x2f7): warning: Using 'getservbyport' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/tmp/cc1BHXB9.o: In function `main':
netcat.c:(.text+0x1914): undefined reference to `res_init'
collect2: ld returned 1 exit status
make[1]: *** [nc] Error 1
make[1]: Leaving directory `/home/ramsin/sec/nc'
make: *** [linux] Error 2


Your help will be appreciated.

amit

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




--
Regards, Martin

Martin Visser
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] PC h/w and s/w Inventory apps - OCS Inventory

2007-04-01 Thread Dave Kempe

Simon Wong wrote:

I just came across OCS Inventory in SF's top 30 list
(http://ocsinventory.sourceforge.net/index.php?page=features) and was
wondering if anyone had used it and hwat their thoughts were.  It looks
quite good on the surface.

Does anyone have any alternate recommendations for this type of software
(hardware and software audits of linux and Windows PCs)?


its not bad - you need to couple it with GLPI to get the best results I 
reckon. The two products integrate at a database layer to that works 
pretty easily.


http://glpi-project.org/spip.php?lang=en

I have used it for software, OS and hardware auditing pretty successfully.

dave

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] CUPS SAMBA will play with Linux clients but not XP

2007-04-01 Thread Trent Murray

Hi all,

I have recently a set up a ubuntu edgy print server with a HP 3330
LaserJet.  Printing is working well from linux clients but my XP clients all
give this message after I install the printer and then try to print a test
page.  Even when i use the same login creditals that work on the linux
machines.

Test page failed to print. Would you like to view the print troubleshooter
for assistance? Access is denied

Has anyone seen this before?  My cupsd.conf and smb.conf appear below.
Thanks in advance.. =)

*SAMBA*

[global]
   workgroup = GUARDIAN
   server string =
   obey pam restrictions = Yes
   passdb backend = tdbsam
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
   syslog = 0
   log file = /var/log/samba/log.%m
   max log size = 1000
   printcap name = cups
   dns proxy = No
   panic action = /usr/share/samba/panic-action %d
   invalid users = root
   printing = cups
   print command =
   lpq command = %p
   lprm command =

[printers]
   comment = Use this for All Printers
   path = /var/spool/samba
   printer admin = root, trent
   guest ok = Yes
   printable = Yes
   browseable = No

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   guest ok = Yes

cups.conf *

# Administrator user group...
SystemGroup lpadmin

# Only listen for connections from the local machine.
Listen 631
Listen /var/run/cups/cups.sock
Listen 10.73.75.250:631


# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

Location /
Order Deny,Allow
#Deny From All
Allow From 127.0.0.1
Allow From 10.73.75.*
/Location


# Restrict access to the admin pages...
Location /admin
 Order allow,deny
 Allow localhost
/Location

# Restrict access to configuration files...
Location /admin/conf
 AuthType Basic
 Require user @SYSTEM
 Order allow,deny
 Allow localhost
/Location

# Set the default printer/job policies...
Policy default
 # Job-related operations must be done by the owner or an adminstrator...
 Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs
Set-Job-Attributes Create-Job-Subscription Renew-Subscription
Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job
Suspend-Current-Job Resume-Job CUPS-Move-Job
   Require user @OWNER @SYSTEM
   Order deny,allow
 /Limit

 # All administration operations require an adminstrator to authenticate...
 Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer
Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs
Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer
Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After
CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class
CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default

   AuthType Basic
   Require user @SYSTEM
   Order deny,allow
 /Limit

 # Only the owner or an administrator can cancel or authenticate a job...
 Limit Cancel-Job CUPS-Authenticate-Job
   Require user @OWNER @SYSTEM
   Order deny,allow
 /Limit

 Limit All
   Order deny,allow
 /Limit
/Policy














--
Regards,



Trent Murray



--
Regards,



Trent Murray
IT Consultant
Guardian Technology Group

T:   0419 39 99 78
F:   02 9543 7654
E:   [EMAIL PROTECTED]received direct to mobile phone
M:  P.O Box 3269 Bangor N.S.W 2234

Member of Linux Australia
Registered Microsoft Business Partner
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] PC h/w and s/w Inventory apps - OCS Inventory

2007-04-01 Thread Amos Shapira

On 02/04/07, Dave Kempe [EMAIL PROTECTED] wrote:

Simon Wong wrote:
 I just came across OCS Inventory in SF's top 30 list
 (http://ocsinventory.sourceforge.net/index.php?page=features) and was
 wondering if anyone had used it and hwat their thoughts were.  It looks
 quite good on the surface.

 Does anyone have any alternate recommendations for this type of software
 (hardware and software audits of linux and Windows PCs)?

its not bad - you need to couple it with GLPI to get the best results I
reckon. The two products integrate at a database layer to that works
pretty easily.

http://glpi-project.org/spip.php?lang=en

I have used it for software, OS and hardware auditing pretty successfully.

dave


I also came across it (through the SourceForge newsletter), thanks for
the heads up on combining with GLPI.

Can it be used to track also things like software licenses and DNS
domain registry?

--Amos
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] using apt-pkg data to build backup candidate list

2007-04-01 Thread Peter Miller
On systems which use apt-get and friends...

Does anyone know of a tool which walks all the files on your system, and
((any files which are not part of any package) or (files which are part
of a package and which have been changed, thinking here of config
files)) print the file name?

This would be great for generating a list of file backup candidates.

debsums(1) comes close, but only for installed files, and I'd like all
of the files which *aren't* package files as well.


Regards
Peter Miller [EMAIL PROTECTED]
/\/\*http://miller.emu.id.au/pmiller/

PGP public key ID: 1024D/D0EDB64D
fingerprint = AD0A C5DF C426 4F03 5D53  2BDB 18D8 A4E2 D0ED B64D
See http://www.keyserver.net or any PGP keyserver for public key.

It is practically impossible to teach good programming
style to students that have had prior exposure to Basic; as
potential programmers they are mentally mutilated beyond hope of
regeneration. -- Edsger Dijkstra


signature.asc
Description: This is a digitally signed message part
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] using apt-pkg data to build backup candidate list

2007-04-01 Thread Peter Hardy
On Mon, 2007-04-02 at 13:05 +1000, Peter Miller wrote:
 Does anyone know of a tool which walks all the files on your system, and
 ((any files which are not part of any package) or (files which are part
 of a package and which have been changed, thinking here of config
 files)) print the file name?
 
 This would be great for generating a list of file backup candidates.
 
 debsums(1) comes close, but only for installed files, and I'd like all
 of the files which *aren't* package files as well.

cruft(8) will tell you about files that don't belong to any installed
packages. Hopefully that should cover everything you need?

-- 
Pete

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] using apt-pkg data to build backup candidate list

2007-04-01 Thread John Ferlito
On Mon, Apr 02, 2007 at 01:05:53PM +1000, Peter Miller wrote:
 Does anyone know of a tool which walks all the files on your system, and
 ((any files which are not part of any package) or (files which are part
 of a package and which have been changed, thinking here of config
 files)) print the file name?

Try cruft

Description: Find any cruft built up on your system
 cruft is a program to look over your system for anything that
 shouldn't be there, but is; or for anything that should be there, but
 isn't. 

 It bases most of its results on dpkg's database, as well as a list
 of `extra files' that can appear during the lifetime of various
 packages. 

 cruft is still in pre-release; your assistance in improving its
 accuracy and performance is appreciated.

-- 
John
http://www.inodes.org/
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] PC h/w and s/w Inventory apps - OCS Inventory

2007-04-01 Thread Simon Wong
On Mon, 2007-04-02 at 07:21 +1000, Dave Kempe wrote:
 its not bad - you need to couple it with GLPI to get the best results I 
 reckon. The two products integrate at a database layer to that works 
 pretty easily.
 
 http://glpi-project.org/spip.php?lang=en
 
 I have used it for software, OS and hardware auditing pretty successfully.

Thanks for your feedback, Dave.


-- 
Simon Wong [EMAIL PROTECTED]

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html