Install Vsftpd

Vsftpd is a FTP server. It’s an alternative to Proftpd. It’s actually simpler than Proftpd to install.

To install, run the following from the command line.

$ sudo apt-get install vsftpd

Edit the /etc/vsftpd.conf. Set options to:

local_enable=YES
write_enable=YES
anonymous_enable=NO

Finally, restart Vsftpd.

$ sudo service vsftpd restart

Display Number Of Processors

The command below displays the number of processors on the Ubuntu Server. It looks in the /proc/cpuinfo file, and pulls out the number of lines containing the word “processor” and passes them into wc (word count), which returns a count of the CPUs in the system.

cat /proc/cpuinfo | grep processor | wc -l

Changing Ownership

Changing ownership of files and directories is done using the CHOWN command.

Example:
$ chown -R www-data:www-data sample

– R applies the change recursively
www-data:www-data is the user and group
sample is the target file or directory

Adding Users

Adding users to your system is done using the USERADD command.

Example:

$ sudo useradd -d /home/username -m username -p password -s /bin/false

– d  = home directory of the new user
– m = create a home
– p = provide a password
– s = the login shell of the new user

-d and -m are used in conjunction.
You can assign /bin/bash for bash or /bin/false for no shell access.
You can change passwords later using $sudo passwd username.