linux poison RSS
linux poison Email
1

Mount remote windows partition (windows share) under Linux

Use the mount command to mount remote windows partition or windows share under Linux as follows:

1) Make sure you have windows username and password to access share name
2) Login to Linux as a root user (or use su command)
3) Create the required mount point:
# mkdir -p /mnt/ntserver

4) Use the mount command as follows:
# mount -t smbfs -o username=nikesh,password=abc //ntserver/download /mnt/ntserver
Read more
0

Apache - limit access to certain directories based on IP address

You can do this completely from /etc/httpd/conf/httpd.conf which are shown below for multiple IP addresses. Note that all 3 setting are the same.

10.0.0.0/255.0.0.0
10.0.0.0/8
10

However, the following is different

10.0.0.0/24 only allows 10.0.0.1 to 10.0.0.254

Some complete settings in /etc/httpd/conf/httpd.conf

Order allow,deny
Allow from 10.0.0.0/8 # All 10.
Allow from 192.168.0.0/16 # All 192.168
Allow from 127 # All 127.

Don’t forget to reload httpd with the following command.

$ /etc/init.d/httpd reload
Read more
0

VSFTPD - limit the number of simultaneous connections for a single IP address

By default VSFTPD allows unlimited connection from the same client IP address.

1: Open vsftpd.conf file

Use text editor such as vi to edit /etc/vsftpd.conf or /etc/vsftpd/vsftpd.conf file:
# vi vsftpd.conf

2: Setup limitation

Set up the max_per_ip=4 (this will limit simultaneous connection to 4 number only)
max_per_ip=4

3: Restart vsftpd

# /etc/init.d/vsftpd restart
Read more
0

KDE 4 Default Wallpaper

The Oxygen team is happy to present the final selection of 15 wallpapers that will be released with KDE 4.0. It took longer than expected to manage the contest due to the large number of entries (around 2000), but it was our first time organising such a contest. Read on for details of the winning entries.
Read more
0

Get access to Linux files from Windows

There are a number of evident merits of the program, which you should know. First of all, DiskInternals Linux Reader is absolutely free.

Secondly, the program provides for read-only access and does not allow you to make records in Ext2/Ext3 file system partitions. This guarantees that the interference in an alterative file system will not affect the work of Linux later. Apart from this, it is necessary to note, that it gives you an

opportunity to use common Windows Explorer for extracting data. A preview option for pictures is one more pleasant point, which is worth mentioning.

While saving, it ignores file security policies. It means that it is possible to access absolutely any file on a Linux disk from Windows. The program can create and open images of Ext2/Ext3 disks.”
Download LinuxReader


Read more
Related Posts with Thumbnails