Posts Tagged ‘configuration’

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

Window 7 WPA2 Authentication Step-by-Step Guide

  1. Mouse over to Network Connection Icon on the bottom right of your desktop screen and
    Click Open network and sharing center.
  2. Click “Manage wireless networks”
  3. Click “Add” then “Manually create a network profile”
  4. Make sure your settings are as below.
    1) Verify that the Network name (SSID) is set to i-Xcess
    2) Network Authentication is set to WPA2-Enterprise
    3) Data Encryption is set to AES.
    4) Check on “Start this connection automatically”
    5) Uncheck on “Connect even if the network is not broadcasting”
    6) Click on “Next” to bring you to next configuration page
  5. Click on “Change connection settings” to proceed with next configuration step
  6. Select the Security tab. Make your settings are as below.
    1) Security type is set to WPA2-Enterprise
    2) Encryption type is set to AES
    3) Verify that authentication method is set to Microsoft: Protected EAP (PEAP).
    4) Check “Remember my credentials for this connection each time I’m logged on
    checkbox”
    5) Click on Settings
  7. – Make sure to uncheck Validate server certificate.
    – Verify that the Select Authentication Method drop-down box is set to Secured password (EAP-MSCHAP v2).
    – Check “Enable Fast Reconnect”
    –  Uncheck “Enforce Network Access Protection”
    – Uncheck “Disconnect if server does not present cryptobinding TLV”
    – Uncheck “enable Identity Privacy”
  8. Click the “Configure” button. Uncheck the check box labeled “Automatically use my
    Windows Logon name and password (and domain if any).”

    Click “Ok” or “Close”.

  9. Click on “Advance settings” 
  10. Under 802.1x settings tab, Check “Specify authentication mode” and select “User authentication”, Uncheck “Enable single sign on for this network”. Click “Ok” or “Close” buttons on all the windows.
  11. Try connect to “i-Xcess”. 
  12. Connect the network called “i-Xcess” and when prompted, provide your standard
    studentID/password.