Dec 15
In this case we are using vsftpd as the FTP Server. If we want to jail FTP user in their home directory we can edit the vsftpd configuration file (/etc/vsftpd/vsftpd.conf). Make sure this command is uncommented (delete the # character) and the value is true:
chroot_local_user=YES
If you didn’t found this command, just add it at the end of file.
For more detail just open your console again and type this magic word:
man vsftpd.conf
Dec 15
If we want to not permit all user login with SSH, we can edit sshd configuration file (/etc/ssh/sshd_config). There is some command we add into the end this file, just choose which is best for you:
AllowUsers <user1> <user2> <user2>
With this command, only user that listed after the AllowUsers can login with SSH. If we want to add several user just separate it using space character.
AllowGroups <group1> <group2> <group3>
If specified, login is allowed only for users whose primary group or supplementary group list matches one of the patterns. If we want to add several group just separate it using space character. Continue reading »
Dec 15
To build a ftp server we need ftp server program like vsftpd. To install vsftpd just run the following command in console (on root privilage of course) :
# yum install vsftpd
after that don’t forget to make the vsftpd run automatically after computer reboot :
# chkconfig vsftpd on
and we have to start the vsftpd :
# /etc/init.d/vsftpd start
now our ftp server is ready
Continue reading »
Dec 13
This is a tutorial to build a PHP Mysql Web Server using Centos 5. Ok lets begin!
Open Your console and give this command (don’t forget that we need root privilege):
# yum install httpd
# yum install php
# yum install mysql
# yum install mysql-server
# yum install php-mysql
After installing that program, we net to make httpd and mysqld running automatically after reboot: Continue reading »
Dec 13
By default, home folder for a user in Linux is in /home/<username> . But if we want to create a user with different home directory we can add -d option like this :
useradd <username> -d <home directory>
for example :
useradd mahendra -d /var/www/html/~mahendra
So simple right?
Nov 19
This is my second blog (my first blog is http://dataq.wordpress.com/). Altough my english is very bad, I try to write every articles in this blog in english. The reason is simple, because I want improve my english ability and I want to share my experience to all of the world
So… WELCOME TO MY WORLD !!!
Recent Comments