{ 8 comments… read them below or add one }

1 daniels 06.24.09 at 11:52 am

Why not use virtual users for email?

2 anurdh65 06.25.09 at 4:24 am

Hi,

Thanks for this information. Can anybody help me to get the ip address as Linux coding. I normally use the website ip details to get the ip address for windows. But i want to get the ip address for teh linux platform can anybody help me for the coding

3 Vishal 06.25.09 at 2:08 pm

Anurdh,
Can you elaborate your question pls?

4 Rick 06.25.09 at 5:38 pm

Anurdh65,

To get the ip address of a linux box, type the following from the command prompt (bash shell):

ifconfig

Sometimes you can also get ip information using the following hack:

host `hostname`

To get the ip address of a windows box, type the following form the command promt (dos shell):

ipconfig

5 Tim (kb0odu) 06.26.09 at 12:29 am

To get the just the IP Address under linux, try the following command:
ifconfig eth1 | grep 'inet'
This will return both the IPv4 and IPv6 Addresses. If you only want the IPv4 Address, try the following:
ifconfig eth1 | grep 'Bcast'
Change to the appropriate interface if it isn’t eth1.
Tim
kboodu

6 Markus 06.27.09 at 7:34 am

Setting shell to nologin do not prevent the user to forward ports with SSH.

7 Alfa 11.12.09 at 2:37 am

alternative, you can edit /etc/passwd.
Ex.
Before :
ftpusers:x:1000:1000:cyber,,,:/home/ftpusers:/bin/bash

After :
ftpusersr:x:1000:1000:cyber,,,:/home/ftpusers:/usr/sbin/nologin

8 Anonymous 12.27.09 at 2:20 am

You can disable the account by locking it with:
passwd -l {username}
What it does is place a ‘!’ in front of the encrypted password in /etc/shadow.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous FAQ:

Next FAQ:

nixCraft FAQ PDF Collection Now Available To All