Re: How to change all /bin/bash at /etc/passwd to /sbin/nologin?

2006-10-09 Thread James Corteciano

Dear guru's,

Thanks all you guys for the great response. Now, I've done it using
text-editor of NANO and there is Find, and To Replace section which makes
big help to replacing the whole word.

Best regards,

James Corteciano
FreeBSD User


On 10/9/06, Lothar Braun <[EMAIL PROTECTED]> wrote:


On Monday 09 October 2006 10:03, Matthias Apitz wrote:
> > sed 's!/bin/bash$!/sbin/nologin!' /etc/passwd > /etc/passwd
>
> DONT DO THAT this way. The result would be that your actual
> shell truncates the file '/etc/passwd' to zero length and
> then launches the 'sed'.

Damn. I just built the regexp but didn't check what the command does
before i
sent it to the list. Sorry for that. I hope nobody killed his pw-file
because
of my advice :/

-- Lothar





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


Re: How to change all /bin/bash at /etc/passwd to /sbin/nologin?

2006-10-09 Thread James Corteciano

Hi Lothar,

Thanks for your response. How about if all uid's that >=500 at passwd file
must change from /bin/bash to /sbin/nologin?

Thank you.

Best regards,

James C.
FreeBSD User


On 10/9/06, Lothar Braun <[EMAIL PROTECTED]> wrote:


Hi James,

On Monday 09 October 2006 09:24, James Corteciano wrote:
> How to change all word lines of /bin/bash at /etc/passwd file to
> /sbin/nologin in just  a single line command?

I think you can do this with:

sed 's!/bin/bash$!/sbin/nologin!' /etc/passwd > /etc/passwd

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





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


How to change all /bin/bash at /etc/passwd to /sbin/nologin?

2006-10-09 Thread James Corteciano

Dear guru's:

How to change all word lines of /bin/bash at /etc/passwd file to
/sbin/nologin in just  a single line command?

I am looking forward for your great responses.

Thank you.

Regards,

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


Event LOG Server

2006-10-06 Thread James Corteciano

Dear All,

Is there an application program in FreeBSD that the main function is to get
LOG's from over 100 clients in the local area network in which I could
monitor their activity in PC such as sending their emails, their browsing
and downloading files from internet, and so forth? I know some examples are
Squid for monitoring their http activity, and watching /var/log/maillogs for
their emails but since our network was controlled and behind at our main
office from other place in which they do provide us internet connectivity
since we are only a branch office.

Regards,

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


Re: Fw: Re: Apache2* and mod_perl2

2006-10-02 Thread James Corteciano

Have you try to update your ports tree collection? what is version of your
FreeBSD?


From: Paul Schmehl <[EMAIL PROTECTED]>

To: [EMAIL PROTECTED]
Date: Tue, 03 Oct 2006 00:03:14 -0500
Subject: Re: Apache2* and mod_perl2
--On October 3, 2006 12:53:17 PM +0800 Foo JH <[EMAIL PROTECTED]>
wrote:

> I've been using FreeBSD + Apache 2.0 + mod_perl 2 for the longest time.
> It's been pretty stable to date. What exactly are the problems you
> encountered?
>
I was never able to get cgi working, as I described in the email you
responded to (copied below.)

> Paul Schmehl wrote:
>> Last night I spend several hours trying to get a website working with
>> apache22 and then apache20 and mod_perl2.  I never succeeded.
>>
>> This website works fine with apache1.3.* and mod_perl.  We run the UBB
>> bulletin board, which is written in perl.  All the executable files
>> are named *.cgi.
>>
>> I googled and read document after document, waded through the apache
>> mod_perl site until my eyes were crossed, all to no avail.  In
>> apache20, after configuring httpd.conf in what I thought was the right
>> way, I got a Forbidden error.  Obviously, I checked perms (even made
>> the 777 briefly), but no go.  In apache22, all I ever got was the
>> plain text of the program file.
>>
>> Does anyone know of a website that can unlock the mystery of mod_perl2
>> on apache2?  I figure sooner or later I'm going to have to move to
>> apache2, but I sure can't do that until I figure out how to get it
>> working.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/






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