Re: Why lsof shows the file as open and fstat doesn't ?

2010-02-15 Thread Anthony M. Rasat
Yuri wrote:
But when I run fstat /tmp/dbus-iQmkLjgxD6 
it doesn't return anything, like this file isn't 
open at all.

I'm not sure that this will answer your question but bear with me.

Usually I use lsof to list any listening TCP or UDP ports, with following 
command:

lsof -P -i -n

The result will clearly show you what application listening to what port. Now 
this is I'm not really sure if I'm correct: by default Dbus doesn't have any 
listening port.
 
Hope that would help you.

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
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: HELP! Is that possible creating a user named root but acturallynot the administrator root

2010-02-10 Thread Anthony M. Rasat
Lin Taosheng wrote:

Is that possible to implementated?

No. I think not. But I have not tried it either.

Can I ask what do you want to achieve? Because I had the same thought once, 
concerning how to combat once-increasing script-driven SSH brute-force attack. 
But I was instead have a better solution using fail2ban to easily thwart those 
SSH brute force attack. Is that your situation?
 
Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
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


Specific interface to default route

2009-11-22 Thread Anthony M. Rasat
Dear all,

I have two (ethernet) network interface with IP address within the same subnet, 
call it msk0 and nfe0. 

Interface msk0 have IP address 192.168.0.2 and nfe0 192.168.0.3 and default 
router IP address is 192.168.0.1. 

I want only nfe0 that can talk to default router while keeping msk0 reachable 
within subnet (answer to ping from hosts with same subnet and so on).

Is it possible? What should I put in /etc/rc.conf file?

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
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: Specific interface to default route

2009-11-22 Thread Anthony M. Rasat
Trober wrote:
 Anthony wrote:
 Dear all,

 I have two (ethernet) network interface with IP address within the same
 subnet, call it msk0 and nfe0.

 Interface msk0 have IP address 192.168.0.2 and nfe0 192.168.0.3 and
 default router IP address is 192.168.0.1.

 I want only nfe0 that can talk to default router while keeping msk0
 reachable within subnet (answer to ping from hosts with same subnet and so
 on).

 Is it possible? What should I put in /etc/rc.conf file?

Hi Anthony!

### RC.CONF 

ifconfig_nfe0=inet 192.168.0.3 netmask 255.255.255.0   up # /24
ifconfig_msk0=inet 192.168.0.2 netmask 255.255.255.255 up # /32
defaultrouter=192.168.0.1 # Router

### RC.CONF 

The msk0 interface has /32 mask (according by aliases[1] settings). Only
nfe0 talk with your router.

Both interfaces can be reached by other hosts (in same network).

[1]http://freebsd.org/doc/en/books/handbook/configtuning-virtual-hosts.html

I hope to help you,

Trober

Wow. Thanks Trober.

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com___
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: Disabling ssh timeouts?

2009-05-13 Thread Anthony M. Rasat
Steve Kargl wrote:
I'm trying to running the GCC testsuite, which is not an 
interactive job.  Once it starts, it writes to stdout when
an error occurs or the testsuite moves to a new major

I think you'd better use screen. First, ssh to your machine, start screen 
without any parameter, then start your tests. You can leave ssh afterwards. 
Your test will continue to run within your session.

To continue your last session, just ssh again to that machine and:

screen -r -x

Hopefully answers your question.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com

*
***  Hai, saya virus. Tolong contreng saya.  
*
___
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: Why are the Zionist leaders in Israel so happy about the newPresident?

2009-01-25 Thread Anthony M. Rasat
Lawrence Auster wrote:
Bla bla bla Ku Klux Klan crap.

Why don't you bring your hatred outta here. This is a family-oriented channel.

Next time, even when you put OOT label on subject, I still will call it crap.

If you name me Jewish lover, well, I'm Asian, that means I'm a chink. But it's 
Mr. Chink to you, thank you very much.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
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: Snow in my Server

2008-12-20 Thread Anthony M. Rasat
Gary Hartl wrote:
Help, I'm in southern Ontario and I have 20cm of snow 
on my freebsd 7-release server.

Are you kidding?

IT seems to be causeing some http outages.

My FBSD 6-.0 doesn't seem to be affected thou.


Any suggestions,

Move it here?

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
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: i686 CPU Compatibility

2008-12-16 Thread Anthony M. Rasat
Abd Hamid Shamsi wrote:
I just want to ask, is this freeBSD compatible with my
i686 CPU. if there any, please advice me what version 
should i use.

FreeBSD came with two x86 flavour (can I said that? LOL sorry just had an ice 
cream earlier) which is x86 (32-bit) and x86_64 (64-bit).

The x86 flavour is intended for old 386, 486 and 585 (starting from Pentium Pro 
and upward version) to latest Pentium 4 Dual Core. The x86 can handle multi 
processor architechture with SMP kernel which is available by default.

The x86_64 flavour intended for AMD64 architechture that current Intel Core 2 
Duo and since AMD Sempron and upward employed. However, this is not for IA64 
which is totally different version of FreeBSD (I think) have created for it.

If you aim for tested stable version of FreeBSD, you can use 
FreeBSD-6.x-RELEASE lines. However if your hardware is up to current (say no 
less than 2 years tops) and you want the bleeding-edge version of applications, 
you can try FreeBSD-7.0-RELEASE line (7.1 version is still in Release Candidate 
stage and not recommended except for testers).

Hopes that what you're looking for.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com___
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: hp dv2225nr laptop optical drive random ejects

2008-12-03 Thread Anthony M. Rasat
has anyone ever seen this happen? system is 8.0-current, drive is not 
being used and it will just eject while sitting on a table.

Yes, I did.

It was hardware-related. It was the CD/DVD ribbon connector getting all 
wrinkles and apparently something resetting just out of even the smallest 
vibration.

You may find this ribbon connector appearance conspicous. It usually gold or 
red colored. Look from under your laptop while drive's out if you can't see it 
from topside.

And this ribbon connector is not exactly cheap too. I'm not sure why.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Barat 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with permissions and vi

2008-12-02 Thread Anthony M. Rasat
Why I am able to put some text into some_file.txt with
chmod 000 using vi editor and why i can not do the same
using echo???

I'm not exactly vi master or guru here but I think it's because you write vi 
with :wq! command. If you write tried to write some_file.txt with :w instead, 
vi would complaints cannot wrote blablabla and so on.

I assumed you wanted to write-protect your file from unauthorised tempering 
attempt (either from you or other user) you can do that by changing ownership 
of the file to other user's, most popular probably to root's. I don't think vi 
can overwrite different owner's file unless permission flag's permit it.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Barat 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Temporarily blocking ports

2008-11-29 Thread Anthony M. Rasat
Jos Chrispijn wrote:
Can someone hint me how I can block ports for let's say 30 minutes if 
someone repeatedly tries to do a SSH login?
I use ipfw as firewall...

I think I saw ssh-ipfw section in jail.conf file of fail2ban application 
(http://www.fail2ban.org). I believe fail2ban might be the one you looking for.

But I'm sorry I'm using fail2ban in Linux (which is using netfilter's iptables 
firewall, not IPFW). I'm not sure it will work on FreeBSD and I don't have 
FreeBSD server lying around outside my VMware environment here, so I wish you 
good luck trying.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Barat 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: process always running

2008-11-27 Thread Anthony M. Rasat
there is a method in freebsd for  restart process whenever it terminates ? I
use in linux respawn in inittab...

I'm still a big fan of Daniel J. Bernstein's daemontools. Go grab it from 
http://cr.yp.to/daemontools.html and be sure to read instructions. Not exactly 
configure-make-install kinda thingy. I don't recall daemontools in FreeBSD 
ports though, maybe there is.

Oh almost forgot, just to save your not-itchy hair, daemontools require your 
application to be running on foreground. Find a way to do so but if you haven't 
found it, there is a tool to do so. Once again, read instructions thoroughly.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Barat 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


HAL in GNOME

2008-11-17 Thread Anthony M. Rasat
Hiya all,

Can someone point me to URLs that explain how to set up HAL to work in
GNOME? I'm using FreeBSD 7.0 RELEASE. Somehow I can't find it with Google.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Barat 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]