Archive for the ‘Guide’ Category

Hi, it has been a while since my last post, but today I’ve gained new knowledge that I wanted to store into this archive of mine. It might be useful to some other people, but it certainly is useful to me. Please enjoy the tutorial, share if you like it and leave a comment if you feel I am wrong (I’ll correct it if its true 😀 )

 Installing the FTP Package

1. Update your repository

yum check-update

2. Install the package

yum -y install vsftpd

3. After installation is done, make a copy of “vsftpd.conf” file

cp /etc/vsftpd/vsftd.conf /etc/vsftpd/vsftpd.conf.bak

4. Edit the configuration file with nano text editor

nano /etc/vsftpd/vsftpd.conf

5. Find this line “anonymous_enable=YES” by pressing CTRL+W and change the value to NO to disable anonymous FTP access.

6. Using the same method as the above find “chroot_local_user=YES” and uncomment it.

7. Add the following to the end of the file

allow_writeable_chroot=YES
pasv_enable=Yes
pasv_min_port=40000
pasv_max_port=40100

8. Restart the VSFTPD service and make it start automatically after reboot

systemctl restart vsftpd.service
systemctl enable vsftpd.service

9. Add the FTP service in the firewall-cmd this is to open the FTP port

firewall-cmd –permanent –add-service=ftp
Firewall-cmd --reload

10. Setup SELinux to allow ftp access to the users home directories.

setsebool -P ftp_home_dir on
setsebool -P allow_ftpd_full_access 1

Create a user and assign the home directory

1. For this tutorial I want to create a user without a home directory therefore I use –M instead of –m.

useradd -M mike –s /sbin/nologin
passwd mike

2. Next is to set the home directory for “mike” by creating a new directory

mkdir /var/www/mike
chmod 755 /var/www/mike

3. Once that is complete point the directory to the user “mike”

chown -R mike /var/www/mike
Advertisements

Kajang to Taylor’s University Lakeside Campus

If you have class at 8am you need to wake up early and start your journey the latest is  6.30am.

There are 3 major route that you can choose from.

  1. Lebuhraya Cheras-Kajang and Lebuhraya Persekutuan 30.7KM
    • recommended starting time is 6am
    • Total toll rate to be expected is RM1.90 (one-way journey)
  2.  Lebuh Raya Bukit Jalil 28.9KM
    • recommended starting time is 6am
    • Total toll rate to be expected is RM1.60 (one-way journey)
  3. Lebuhraya Lembah Klang Selatan and Lebuhraya Damansara – Puchong 40.5KM
    • recommended starting time is 6.30am
    • Total toll rate to be expected is RM4.20 (one-way journey)

another driving tips that you’ll gonna need is that you need to reach Bandar Sunway by 7am if you don’t want to be late for class. If you are coming from route 2 and 3 you need to reach the Puchong Toll by 7am since you are going to be stuck there for at least 30 minutes. Hope this helps and happy driving!

If you have more route please leave a comment below and I’ll be happy to put it into this post.