Quantcast
Channel: Ubuntu Server
Browsing all 10 articles
Browse latest View live

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 Article


Deleting 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 Article


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...

View Article

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...

View Article

List 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 Article


Install Apache Mod Rewrite

How to install or enable Apache Mod Rewrite on Ubuntu Server. $ sudo s2enmod rewrite

View Article

Add 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 Article

Check 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 Article


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...

View Article


Set 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
Browsing all 10 articles
Browse latest View live