Ad Ad Ad Ad

This Site For sale

This domain for  sale… Please contact riyesh@gmail.com

Limiting FTP users to their home directory

Purpose
Unless the ftp users are limited to their home directories, they will able to access all files & folders on the server .
How to
Below you may see how this can done to 3 of the ftp servers used in common.
Pro-ftpd
vsftpd
pure-ftpd
Pure-ftpd
vi  /etc/pure-ftpd.conf
And change the following line
ChrootEveryone=YES
pro-ftpd
vi /etc/proftpd.conf
DefaultRoot …

ubuntu internet sharing

 The following will explain how to share your Internet connection:
Note: Type all the following commands in a root terminal, DO NOT use sudo.
1. Start by configuring the network card that interfaces to the other computers on you network:
# ifconfig ethX ip 
where ethX is the network card and ip is your …

How to disable a specific command(s) for a certain user.

Please follow the below steps to disable a specific command(s) for a certain user.
# su – riyesh
$ which rm (Here rm command as an example)
$ mkdir ~/bin
$ ln -s /bin/* ~/bin/ (/bin is the PATH for rm)
$ rm -rf ~/bin/rm
Take the output of $PATH for this user
$ echo $PATH > …

Screen command for Remote assistance and Administration

screen is a UNIX utility for giving remote assistance/administration. Suppose an unskilled colleague of your own is struggling with a server at some remote location with no idea of troubleshooting a problem.
If you are able to solve that with keeping your colleague to watch how you are sorting out the issues …

Limit number of Shell logins by a USER or GROUP

ltiple Shell login by the same user on a Linux box you have to set a maximum number of logins in /etc/security/limits.conf for a user or a group.
For example:
# groupadd salesgroup
# useradd -G salesgroup salesman1
# useradd -G salesgroup salesmanager
# echo “@salesgroup – maxlogins 10? >> /etc/security/limits.conf
# echo “salesman1 – maxlogins 5? >> …