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...
View ArticleDeleting Users
Deleting users is done using the USERDEL command. Example: $ sudo userdel -r -f username -r = remove home directory -f = force removal of files
View ArticleChanging 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...
View ArticleDisplay 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...
View ArticleList Users In A Group
To list users that belong in a group, run the following: $ groups user The other option, is to install a program called members. $ sudo apt-get install members To list users in a group using members,...
View ArticleInstall Apache Mod Rewrite
How to install or enable Apache Mod Rewrite on Ubuntu Server. $ sudo s2enmod rewrite
View ArticleAdd User To A Group
How to add a new user to a group. adduser -G group user How to add an existing user to a group. usermod -G group user
View ArticleCheck If Running 32 or 64 Bit Kernel
How do you know if you’re running 32 or 64 bit kernel? A simple command in the Terminal solves it. $ uname -m The command above gives the result of either: i686 for 32 bit x86_64 for 64 bit For more...
View ArticleInstall 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...
View ArticleSet Hostname
The following commands will setup the hostname on your Ubuntu Server. $ echo "yourhostname" | sudo tee -a /etc/hostname $ hostname -F /etc/hostname
View Article