Feb 06, 2012 - 12:15 AM
ForumArticlesMeetingsLinux ResourcesContact

Linux, the way to get rid of boot viruses.

--
Login




 


 Log in Problems?
 New User? Sign Up!

Managing Users in Ubuntu

Posted by: on Jun 29, 2008 - 05:10 PM
How-To's

As you notice from day to day use of Ubuntu, most tasks are easily accomplished. But what happens when you’re ready to expand your use of Ubuntu to include new applications, or connect to a home network and add new users? This brief guide shares the key steps necessary to create and manage other users, helps clarify some essential differences with other flavors, and provides tips regarding “root” user. Perhaps most importantly, these steps help empower the use of your Ubuntu system to become far more than just another desktop PC.


Understanding users in Ubuntu

The security and usefulness of your Ubuntu system depends a good deal on what you do to enable users and their privileges. Without falling into the minutia and the mundane, it is important to at least understand how users are handled in the Ubuntu GNU/Linux environment.

When you first install Ubuntu, you are required to create a user account. This initial user account, and for that matter all subsequent users, have their independent user files stored under the Home folder. But there is something unique about the first user account you create.

In my case, when installing Ubuntu, I created the user account: “mark”. Not only is mark my first Ubuntu user, but mark has automatically been given unique and powerful privileges that other users do not receive. My mark account can create users, change files and folders, and do a lot of administrative functions on Ubuntu that are normally performed by another important user account named “root”.

Therefore, in Ubuntu, you should understand the three key users:

  • Initial user, in my case called mark, created when installing Ubuntu
  • Root user, known as the administrator that usually has maximum privileges
  • All other users, which I term basic users, are added following installation

Each of these three key users have their own folders, their own unique privileges, and most importantly their own role to play on your Ubuntu system. In the following sections, I will share how to enable and utilize each. Let’s begin with the basic user.

NOTE: I assume that you are logged in to your Ubuntu system as the initial user, thereby having the rights and privileges necessary to perform the tasks below.

Creating and managing basic users

Inevitably, once you setup Ubuntu in your home or office, others will come to you begging to get access. Some may want a chance to try out one of the multitude of cool applications that come preloaded with your system, while others desire to see GNU/Linux power! In other words, you need a good way to give them access without giving them the keys to the system.

Step 1. Accessing the users and groups tool

Creating basic user accounts is easily accomplished through the Users and Groups tool. From your main menu, choose System, then Administration. To start your tool select the Users and Groups menu item.

Notice the message that appears (figure 1).

Figure 1: Using the privileged user accountFigure 1: Using the privileged user account

This is a very important message and what it infers is something unique about Ubuntu. In most GNU/Linux systems the privileged user is named root, and the password you type in would be that of root. However, in Ubuntu, the privileged user is the initial user account you created, and therefore you must type that user account password.

Once you type the password in, you will have access to all of the various administration tools. I provide more details regarding the reasons for this in the “Understanding the Superuser” section below.

Step 2. Adding a new user

You should now see the Users and Groups tool. Please choose the Add User button on the right.

What you choose to include in the Account sections should be based on who you’re adding, and what you plan to do with your Ubuntu system. If you’re adding a basic user so someone else can also access your Ubuntu system, the defaults will be satisfactory.

For an example, I will add my son John as a basic user of my Ubuntu system so he can enjoy some of those cool GNU/Linux games. Below is the sample user information. Notice that I chose to manually set the password, since I prefer to give him something that is both secure and easily remembered (figure 2).

Figure 2: Adding a new user with basic rights
Figure 2: Adding a new user with basic rights

Before you press the OK button, please click on the “User privileges” tab at the top. This is an important step whenever you create a new user.

Under the “User privileges” tab, note the default access given to this basic user. You may prefer to change some of these, such as “Monitor system logs”, “and Connect to Internet”. Anything that is checked is allowed by this user. Also make sure that the “Executing system administration tasks” is NOT checked.

Once you are satisfied with the privileges granted to this new user, press the OK button.

You should return to the main Users and Groups tool window. Now scroll down until you see the new user you just added. In my example, I added user: john (figure 3).

Figure 3: Successfully added new user
Figure 3: Successfully added new user

Once you are finished adding new basic users, it is very important to press the OK button again.

This will create the account and save the information you added. Ubuntu should also automatically create your new user’s folder under the Home directory.

Once finished, your new user will be able to login and enjoy the power of Ubuntu GNU/Linux!

If for some reason the login fails, please refer to the troubleshooting tips at the end of this article.

Step 3. Making future changes to users

Notice that if you wish, you can now go back and change the properties of this user by highlighting the user name and pressing the Properties button. Or, if this user is no longer needed or wanted in the future, you can highlight the name and press the Delete button.

If you ever decide to delete a basic user, realize that the folder and files from the user are not automatically removed, only the user’s login access is removed. This is greatly advantageous since it allows you to restore a previously deleted user without losing files.

In order to totally remove even the user’s folder, you will need to apply a super-user command. This is a step that is unlikely to be necessary for beginning Ubuntu, but that I explain briefly in the “Understanding the Superuser” section.

h1>Creating and managing user groups

Although it is fine to simply leave a new user such as john in his or her own user group, you may prefer to also assign new users to another unique group. This affords not only an easier time in managing users rights, it also offers a means to share files, etc.

You do not have to assign new users to a group, the default is that they are assigned to their own personal group. But if you prefer to do so, below are the key steps.

Step 1. Start the users and groups tool

As mentioned above, access the tool from your main menu. However, instead of making changes or using the options on the “Users” tab, click on the “Groups” tab.

Scroll down until you see your new user. Notice that a group with the user’s name has also been added.

Step 2. Add a group

Now, press the Add Group button.

Figure 4: Adding users to a specific group
Figure 4: Adding users to a specific group

Notice in my example (see figure 4) that I’ve created a new group named “desktopusers”, and then highlighted my new user john. By pressing the Add button in the middle, I will add john to the group. You can add multiple users by holding down the Ctrl key and highlighting as many as you wish. Just be sure to press the Add button once you are done choosing.

Press OK when you are satisfied that all the users who belong in your new group were added (figure 5).

Figure 5: Successfully added new group
Figure 5: Successfully added new group

Notice that on your main “Users and Groups” window, the new group was added to the bottom of the list. Press OK again to save the changes.

That’s it! In the future, to change users in a particular group you can use the same steps above. But instead, highlight the group to change and press the Properties button.

What you enabled with this new group is that users, such as a working group of colleagues or friends, can now share files and manage folders that were given desktopuser group access.

Understanding the superuser

I briefly mentioned above that there are three key users in Ubuntu. This section will clarify why certain attributes exist, and what the key differences are between root and the initial user account.

Notice that in order to apply any of the steps above you needed to be logged in and use the initial Ubuntu account. The first account you create, during installation, is automatically assigned super-user do rights (also called sudo). With a super-user account, system administration and modification is possible.

The most powerful super-user account in GNU/Linux is root. However, you’ll notice that a root account is not automatically included in your Ubuntu installation details. The root does not, by default, come enabled for your use.

In situations where you must use superuser privileges, Ubuntu allows you to use the initial account combined with sudo. If for example you wanted to delete a basic user’s file folder from under Home, you would use the following commands from the command (terminal) prompt:

cd /home
sudo delete john

To run the sudo command you will be prompted for your initial user password. This prevents you from having to run as root to do basic system administration, while protecting your system from security weaknesses associated with fully enabling another account as superuser.

What about root?

Ubuntu hides the root account somewhat in order to discourage its use, unless absolutely necessary. Instead, almost all of the power and privileges needed for administration are assigned to your initial account.

But what about those instances where you plan to perform some major modifications or enhancements to your Ubuntu system? I must state that this is unlikely to ever be the case for a beginning user. But, if you are in a situation similar to myself, trying to add something as major as perhaps the LTSP to your Ubuntu (edubuntu.org already has some good options for new users who want this), then you may need to apply root.

Again, before you press ahead to enable your root account, I want to convey that you should not be using root for day-to-day administration. Nor should you follow the steps below if you are brand new to Ubuntu and read some document that says “you need to be logged in as root”. Instead, use sudo as described above to run such commands.

If you’ve gotten this far, you don’t need anymore disclaimers just a simple answer. To enable root in Ubuntu you use the same steps as mentioned in section 1. However, you highlight the root user account and then press the Properties button. From there you can set the root password by hand and press OK twice to save your changes. I just urge you not to become a habitual root account user and to stick with the initial account and sudo when possible.

Troubleshooting

It’s a rare thing for me to hear about problems creating and managing users. However, there are a few things to keep in mind.

Login failure

If you created a new user account based on the steps above and get a strange error, you may have a simple problem with the user’s properties. The errors you may see include: $Home/.dmrc not properly configured, or that the HOME/user does not exist and the default directory will be temporarily set to /root.

In both cases, the error was caused by the new user’s folder not being properly configured or created. You can resolve this easily enough, by simply deleting the user and starting the steps above again. But this time, also click on the Advanced tab, when adding user, and ensure that the line for Home directory reads: /home/$user

Obviously, this only applies during initial creation of a new user account.

Changes do not save

I’ve encountered this more often than you would imagine. It seems that people sometimes get confused when pressing the OK button during the steps above. You must not only press the OK button on the specific properties Window, but also press OK once again on the main Users and Groups window in order to save your changes.

Conclusion

You should now have all the key steps needed to create and manage multiple user accounts on Ubuntu. More importantly, you should also have a reasonable understanding of what to do if you need to run a command or perform an action that requires “root access”. By applying these steps, you can share the power and pleasure of your Ubuntu system with others, while retaining security and stability.

Note: Copyright information

Verbatim copying and distribution of this entire article is permitted in any medium without royalty provided this notice is preserved.
Biography

Mark Rais: Mark Rais dedicates his time and energy to promoting free software technology, especially among the poor and where a technology divide exists. He serves as senior editor for reallylinux.com. You can contact him at "markr" followed by the "at" symbol and then "reallylinux.com".
Managing Users in Ubuntu | Log-in or register a new user account | 9 Comments
Comments are statements made by the person that posted them.
They do not necessarily represent the opinions of the site editor.

Re: Managing Users in Ubuntu

(Score: 0)
by Anonymous on Nov 26, 2009 - 05:19 PM
streaming dvd pornstar gratuit, viideos sexe gratuit blogs amateurs wc, sandra murugiah sexy, best nude shemale, site ou il ya de la zoophilie gratuite, vielles chaude, you porn arabic dance, videox gratuit a regarde sans oblige de mettre sa carte, www xnxx it, extraits de pieds de femmes sexy, site femmes zoophile, anna m voronin met art, le plus beau cul bresilien, jaculation interne extrait gratuit amateur hard, neatmovies, video voissa, teen porn tv streaming, grayvee com free hardcor porno, histoire sexe zoo, baiser le gros cul de ta femme

Re: Managing Users in Ubuntu

(Score: 0)
by Anonymous on Dec 15, 2009 - 01:15 PM
jolie pied jolie jambes, salopes tv sexe, salope de martinique, sexy matures from america, you tube zophilie avec famme, video de femmes qui se masturbent seules, baise son beau fils, pornotube fist arabe video, video sexe mikayla, videos asiatique gros seins, ado gay salope, panther porno actrice, masturbation f minine video, torrent ils sodomisent une pisseuse dans un parking, images hardes de femmes su ant un chien, extrait video porno orgie sperme, suceuse ado video, jeune femme nue video gratuite extrai, numeri di donne gratis, adriana volpe a fica aperta

Re: Managing Users in Ubuntu

(Score: 0)
by Anonymous on Oct 05, 2010 - 09:59 AM
fumetti trans video negre video tettone libero tette amatoriali barbarella video passere grandi culi videoxxx buchi sfondati pornocasalinghe foto di pompini di vecchie mature cartoni hantai annunci di donne mature in friuli incontri solo per adulti toscana fotogallery sexy ragazze nude inculate tra trans trovare troie gif animate porno zie puttane www ragazze grasse nonna che scopa basket homme madri vogliose bevitrici di sborra racconti erotici incesti gratis cazzi in bocca infermiere maiale big tist foto di nudi maschili giovani vogliose foto donne nude pelose vecchie chiavate frasi comiche film mp3 hostess bocchinare chat gratis senza iscrizione virgili video porno porno grosse ciccione con grossi cazzi preeten videos www vecchie puttane it femmine vogliose massaggiatrici porche campane

Re: Managing Users in Ubuntu

(Score: 0)
by Anonymous on Oct 11, 2010 - 07:48 PM
solo negre puttane italia porno gallery donne ultra cinquantenni video hard porno vecchie in pensione pompini e cazzi in culo calendari di nudiste canzoni di ligabue scaricabili leccare le scarpe uomini che si inculano tardone da chiavare giovani bocchinare nbsp calendario di ragazze eccitanti donne private in cerca di sesso orge tra vecchi e giovani minorenni mpg sadomaso video amatoriale gratisa donne cubane arrapate video tette scopate fighe mamme tette mature scopare con coppia gratis foto di coppie esibizioniste a torino orge lesbiche nbsp foto di uomini con pene gigante film puttanelle penetrazioni vaginali nbsp attori porno con cazzi lunghi porche puttane mamme e sorelle ciccione sesso titts suspension anziane casalinghe saffic erotica marine aquarium screensaver asiatiche calde bellezzeamatoriali fiche asiatiche cazzi neri video trombate preteen erotika foto di donne con belle gambe fotoannunci scambio di coppia nbsp troiette affamate porche con animali foto gratis

Re: Managing Users in Ubuntu

(Score: 0)
by Anonymous on Oct 26, 2010 - 04:26 PM
mani sborrate filmati manga dragonball pornografici password adult inculate donne nere incontri con uomini neri racconti incesto fratello fratello incinta maiale mature amatoriali incesto racconti gallerie bambine incesto con le gambe aperte copertine cd deep purple storie e racconti di incesti in un cinema hard amiche mature siti con bocche piene di sborra signore porche portaportese annunci hostess escort del grappa video poeno a pagamento annunci transex giovani maschi sexy nudi video p orno gratis anteprima barzellette natalizie musica erotica culi stupendi� video lesbiche con dildo gratis scambio foto sorella gratis immagini troie ciccione gratis annunci schiave transessuali copertine dei cd musicali gnocche vere appuntamenti accompagnatrici puttane foto incesti madre e figlio troie da scopare a natale immagini fighe foto di sesso orge di coppie amatoriale video porno sadomaso hentai tabu pompini anteprima penetrazioni sessuale masturbare una donna con le mutande african bubble butts fotos gratis

Re: Managing Users in Ubuntu

(Score: 0)
by Anonymous on Oct 30, 2010 - 06:00 PM
annonce black gay extrait de film porno avec femmes mari es et d laisser gratuit blog gros clitiris video dans cabine d essayage femme seule les film porno algerienne julia channel suce youporn sexe porn zoophilie blog vid o vieille avec latex video amateur porno annes 1980 www ppsfun com chibres scaricare video da megarotic vieille salope incest bites a gogo nain baise femme film redtube trans en provence net canalblog video exihb video femme cheval extrait porn fille avec vielle fr vieilles salopes poilues sixy arabe hentai porno viole video porno baise avec animal photo coll gienne nue clip video streaming porn mature zooph pornos photos 13 ans vierge salopes fran aises tube xxx pornofemme mature extraits video zoophilie a visioner sexy zoophilie site filmzoophilegratuit anteprima wielun pl video de jeunes ado suceuces de bites free blog exhib mec streap teaseuses amateurs sexdenfer histoir porno avec photo elle bais avec sont fils tube suseuse salope xxx incestes porn recit de premiere masturbation

Re: Managing Users in Ubuntu

(Score: 0)
by Anonymous on Nov 13, 2010 - 06:23 PM
femme animaux baise youporn divas video pucelles cheval baise chien ibiza string plage sexy vedio zoophile asie femme et bite de cheval ejaculation femme youtube like porn sexe famille inceste vidios bite queue escort girls beur paris gay minets free sex blog chaine tv sex arabe extrait gratuit video porno nain slirgratuit stuprib zachpomor pl une fille prise de force video gratuite free animal sex femme video blog vid o zoophile extrait porno a libre vision blog arabe nue bonne pute vecchiette porno tube porno adulte blog amateur etudiante nue doujin manga porno t l chargement gratuit des films porno pour t l phone mobile mec uro gay animal sex video upload baise naturelle gratuite exhib japonaise sexe video du plus gros vagin du monde video sexi ragazza mugnano porno filles enculeuses torrent preteen asiatique no nude sexavec maman beastial zoophi tv porn ggg movies sans telecharger extrait film porno gay telecharge video bisexsuel gratuit

Re: Managing Users in Ubuntu

(Score: 0)
by Anonymous on Dec 02, 2010 - 11:53 PM
blog jeune pisseuse qui font des fellations hard grosse femme nue gratuit filles algeriennes donce nues gay you rpon 1er sodomie film youporn bukkake vid o gratuite des extrais de clip video gratuit de zoophilie porno gratuit bz www travesti soumise pute salope chienne sexi a defoncer comme une chienne avec une bonne bite extrait video amateur x hongroise chattes geantes en porno casting porno streaming video porno tube femme fontaine web tv adult beurettes un chamo qui baise une femme dvd sperm crade animal baise une salope extraitvideo maman salope mere baise avec son jeune fils sex des grosses en clips salopes viol es extrait po rno grtuit porno trailers gratuit salopes sur st amand montrond video 97abe algerienne film porno avec viol grosse dans youporn com regarder film porno sans telecharger et sans donner adresse email blog video partouze voissa video amateur zoophilie blogs photos transexuelles metz etudiante escort rencontre sex extreme une femme avec un animal gay bi titus sexe pissant zoophilies en vid os pornozootvgrat puttan stargard pl www grosse garce fr hard porno wallpaper fond ecran blog feet tgp photos hommes nus de 50 a 60 ans

Re: Managing Users in Ubuntu

(Score: 0)
by Anonymous on Dec 04, 2010 - 05:13 PM
porno gyneco mon blog sex usa wwwles strings over blog transexuel escort latine lascar 78 gay bisex film blog orgie etudiante gratuit video de fille quebecoise nue fille bas collant gode blog 20 vid os pornos gratuites stream etudiantes sexe �avaleur �de �bites � lesb incestes free video annonces couple crad pervers vid o porno x harde porno movie naturistes baise mere en ciente mangas ***** video direct gratuit video xxx de femme violer porno zoophilie femme baise par chinen cheval video porno cheval et femme mere nu baise porno defloration photo de chatte gros plant couple amateur voyeur you porn ejac interne streaming porno hot vieille avec jeune black en vid o 7m9 c sex de vieilles de 70 ans videos chocs de zeophile photo mec a poil pornomorocco tetton skoczow pl dona red tube video gratuite de nain qui baise webtv xxl gratuit meufs nue video de mamie salope jeune fille en manque de sexe a sete fellaction video porno pour gay gratuit et sans inscription ma m re est une grosse pute incestueuse elle baise avec son fils