Archive for Server Administration

Password length in Linux

I used to run local test web server with FreeBSD, which allow you to set password like “123″. I like using simple password as its local test server and i don’t want to type big and complicated passwords.

Recently i switched to Linux as more data centers support Linux web servers than FreeBSD. FreeBSD works great for me, but faced some problems with cpanel control panel. So descided to go with Linux, with Linux, as much more popular than FreeBSD, it is easy to find support etc…

On Linux, i can’t set simple password like “123″. It have a minimum 5 character limit by default.

You can change this limit by editing the file / etc / login.defs

PASS_MIN_LEN 5

Change it to what ever you need.

Comments off

/var/log/audit.d taking up too much space

On a Linux server, /var/log/audit.d is taking up more than 40 GB space. The folder contains lot of files with name save.*

You can delete these files

root@server1 [/var/log/audit.d]# rm -f save.*

Now you may disable audit service. To do this, first stop audit service.

root@server1 [/var/log/audit.d]# service audit stop
Shutting down audit subsystem [ OK ]
root@server1 [/var/log/audit.d]#

Now we can disable the service

root@server1 [/var/log/audit.d]# chkconfig audit off

Or you may use graphical interface to services

root@server1 [/var/log/audit.d]# ntsysv

and remove the selection for audit service.

Comments off

Free Linux/FreeBSD Control Panel

Webmin is a Free open source control panel for Linux and FreeBSD servers.

Webmin is a web-based interface for system administration for Unix. Using any browser that supports tables and forms (and Java for the File Manager module), you can setup user accounts, Apache, DNS, file sharing and so on.

Webmin consists of a simple web server, and a number of CGI programs which directly update system files like /etc/inetd.conf and /etc/passwd. The web server and all CGI programs are written in Perl version 5, and use no non-standard Perl modules.

http://www.webmin.com/index.html

Comments off

Wired DNS Problem

One of the site hosted on my server stoped working with “www”
I have checked it with nslookup within the server. It fails for “www”

[root@server10 named]# nslookup
> server localhost
Default server: localhost
Address: 127.0.0.1#53
> www.infodon.com
Server: localhost
Address: 127.0.0.1#53

** server can’t find www.infodon.com: SERVFAIL
>

I have checked the DNS entry at /var/named/infodon.com.db and found it proper.

# cat /var/named/infodon.com.db
; Modified by Web Host Manager
; Zone File for infodon.com
$TTL 14400
@ 14440 IN SOA dns10.hosthat.com. flashweb.asianetonline.net. (
2005092014
14400
7200
3600000
86400
)

infodon.com. 14400 IN NS dns10.hosthat.com.
infodon.com. 14400 IN NS dns11.hosthat.com.

infodon.com. 14400 IN A 65.98.61.140

localhost.infodon.com. 14400 IN A 127.0.0.1

infodon.com. 14400 IN MX 0 infodon.com.

mail 14400 IN CNAME infodon.com.
ftp 14400 IN A 65.98.61.140
billing 14400 IN A 65.98.61.140
www.billing 14400 IN A 65.98.61.140
flash 14400 IN A 65.98.61.140
www.flash 14400 IN A 65.98.61.140
free 14400 IN A 65.98.61.140
www.free 14400 IN A 65.98.61.140
helpdesk 14400 IN A 65.98.61.140
www.helpdesk 14400 IN A 65.98.61.140
templates 14400 IN A 65.98.61.140
www.templates 14400 IN A 65.98.61.140
domain 1440 IN CNAME 66917.myorderbox.com.
* 14400 IN A 65.98.61.140
www 14400 IN A 65.98.61.140
[root@server10 named]#

Still nslookup do not work, at last found the client have added a domain www.infodon.com and removed its A Record.

[root@server10 named]# ls -l|grep infod
-rw-r–r– 1 named named 927 Dec 23 00:33 infodon.com.db
-rw-r–r– 1 named named 559 Dec 21 18:56 www.infodon.com.db
[root@server10 named]# cat www.infodon.com.db
; cPanel 10
; Zone file for www.infodon.com
$TTL 86400
@ IN SOA dns10.hosthat.com. hostonnet.gmail.com. ( 2005122102 ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

www.infodon.com. IN NS dns10.hosthat.com.
www.infodon.com. IN NS dns11.hosthat.com.

www.infodon.com. IN A

localhost.www.infodon.com. IN A 127.0.0.1

www.infodon.com. IN MX 0 www.infodon.com.

mail IN CNAME www.infodon.com.
www IN CNAME www.infodon.com.
ftp IN CNAME www.infodon.com.
[root@server10 named]#

Problem is solved by deleting the DNS Zone

/var/named/www.infodon.com.db

and its entry from

/etc/named.conf

Comments (1)

« Previous entries