Ubuntu Users and Groups

February 11th, 2009 Arthur Gressick 1 comment

I found these commands very useful when adding users and group via the command line.

If you want to add a new user to the system. This is a standard user

adduser username

Add existing user tony to ftp supplementary/secondary group with usermod command using -a option ~ i.e. add the user to the supplemental group(s). Use only with -G option

usermod -aG www-data tony

Change existing user tony primary group to www:

usermod -g www tony

UPDATED

Adding a group is done similarly with this command

addgroup groupname

Add user to group can also be done like this

adduser username groupname

Categories: Ubuntu 8.x Server Tags: , ,

Ubuntu update utilities

February 11th, 2009 Arthur Gressick No comments

After you typically install the Ubuntu server operating system you usually want to install the latest updates. Here are some handy commands to run which will help out.

Update the system

apt-get update

Upgrade

apt-get upgrade

Update Manager Core

apt-get install update-manager-core

Do release update

do-release-upgrade

Ubuntu Change Time Zone

February 11th, 2009 Arthur Gressick No comments

When I installed Ubuntu 8.10 Server I didn’t set the right time zone and needed to change it after I was finished installing the operating system. I found this handy little command for changing the timezone which can be run without a gui. You will need to run this as root or sudo.

dpkg-reconfigure tzdata

Categories: Ubuntu 8.x Server Tags: ,