Archive for » July, 2009 «

What is crontab correct permission?

The crontab correct permission is 4755.

chmod 4755 /usr/bin/crontab


Reinstall Frontpage extensions on the domain?

You can reinstall the Frontpage extension for single hosting account / domain by using following command from shell.

cd /usr/local/frontpage/version5.0/bin

./owsadm.exe -o install -u cpanel_user_name -p 80 -m www.domainname.com -servconf /usr/local/apache/conf/httpd.conf -xuser cpanel_user_name

Category: FTP / Frontpage / Dreamweaver  Comments off

Add nameservers from WHM?

You will need an IP address for each nameserver.

Under ‘Basic cPanel/WHM Setup’ -> Scroll Down to ‘Primary Nameserver’.

Now add your nameservers in the fields available. Click on Assign IP Address next to each nameserver to assign it an IP. Then add an A entry so they will resolve through DNS. Finally, make sure that you scroll down and click on ‘Nameserver Setup’ under ‘Service Configuration’ and enable the nameserver.

Category: cPanel + cPanel scripts  Comments off

Install RKHunter

You can install RKHunter on Linux Server by using following steps.

1 Login to your server as root

2. cd /usr/local/src

3 Download RKHunter and extract the archive

wget http://downloads.rootkit.nl/rkhunter-1.1.4.tar.gz

Some time above URL is working fine due to that you can also use following URL to download the tar file.

http://sourceforge.net/projects/rkhunter/files/rkhunter/1.3.4/rkhunter-1.3.4.tar.gz/download?use_mirror=autoselect

tar -xzvf rkhunter-1.1.4.tar.gz

4. Install RKHunter

cd rkhunter

./installer.sh

Or

./installer.sh –layout default –install

You can also set the cron to receive the RKHunter result.

vi /etc/cron.daily/rkhunter.sh
#!/bin/bash
(/usr/local/bin/rkhunter –update && /usr/local/bin/rkhunter -c –nocolors –skip-keypress –summary 2>&1 | mail -s “RKhunter Scan Details” username@yourdomain.com)

chmod a+x /etc/cron.daily/rkhunter.sh

How to check world-writable files on Server?

You can check the world-writable files on your Server by using following command from shell.

Gunjan@root# find / -perm -2 ! -type l -ls

Category: Linux Permissions  Comments off

How to check SUID/SGID programs on your Server?

You can check SUID/SGID programs on your systemSUID/SGID programs on your Server by using following command from your shell.

Gunjan@root# find / -type f \( -perm -04000 -o -perm -02000 \)

Category: Linux Permissions  Comments off

What is Exim?

The most common question for beginners on linux server is “What is Exim”? we are using sendmai on Linux server then why Exim is present on server,now a days its very basic question for beginners…..

Category: E-mails issue  Comments off

What is NFS server?

NFS word belongs to “Network File System“. NFS allows to access files on server from network users which stored on computers of different types.NFS allow to access files by using Virtual File System (VFS) that runs on top of TCP/IP. With NFS, computers connected to a network as a client while accessing remote files, and as servers while providing remote users access to local shared files. With NFS we can mount all or a portion of a file system which will allow client to access partition or specific file/directory which we defined in NFS mount point for specific user or network.
Category: NFS server  Comments off

How to check run level on Linux Server?

To check run level run “who -r” on shell it will show you current run level set on your server.

root@Gunjan [~]# who -r
run-level 3 2009-01-07 21:19 last=S

What is process ID zero and process ID one?

Process ID zero

All idle task has process ID zero and never exits.

Process ID one


The init process having process ID 1, which is never be used but waiting around for its child processes to die. Usually started for /etc/inittab