In this chapter we will cover the steps to add, remove and manage users and groups on a Fedora Linux system.
 
In this chapter we will cover the steps to add, remove and manage users and groups on a Fedora Linux system.
   −
== Adding a User to an Ubuntu Linux System ==
+
== Adding a User to a Fedora Linux System ==
    
There are two methods for adding new users to a system, one way is using the graphical ''User Settings'' tool and the other is to use the ''adduser'' command-line tool. In this section we will look at both approaches.
 
There are two methods for adding new users to a system, one way is using the graphical ''User Settings'' tool and the other is to use the ''adduser'' command-line tool. In this section we will look at both approaches.
    
[[Image:fedora_linux_add_new_user.jpg|Add new user to Fedora Linux]]
 
[[Image:fedora_linux_add_new_user.jpg|Add new user to Fedora Linux]]
  −
To define the privileges for this new user select the ''Privileges'' tab of the ''New user account'' dialog to display the privileges screen:
  −
  −
[[Image:ubuntu_linux_user_privileges.jpg|Set Ubuntu Linux user Privileges]]
  −
  −
De-select any privileges you do not wish the new user to have. In particular you will want to ensure the user does not have ''Administration'' privilege unless the user is a trusted system administrator. The other privileges are usually considered to be safe for the typical user.
  −
  −
The final screen on the ''Add user dialog'' allows ''Advanced'' settings to be defined. These include such issues as the home directory of the user (traditionally /usr/''username''), tyhe type of shell that is presented as the command line in a terminal window (Bash is usually the default and there is no reason to change this unless you specifically need a different shell), the group to which the user belongs and the user ID. Use the drop down group menu to change the user's group membership to a different group:
  −
  −
[[Image:ubuntu_linux_user_advanced.jpg|Advanced user setting on Ubuntu Linux]]
      
Once the new user is configured, click on the ''OK'' button to add the new user. Once added the new user should appear in the list of users in the settings dialog and it should be possible to login in using the username and password specified.
 
Once the new user is configured, click on the ''OK'' button to add the new user. Once added the new user should appear in the list of users in the settings dialog and it should be possible to login in using the username and password specified.
   −
As mentioned above it is also possible to add new users from the command-line. To do so, start a terminal window session and at the command prompt enter a command similar to:
+
As mentioned above it is also possible to add new users from the command-line. To do so, start a terminal window session and at the command prompt enter a command similar to the following:
    
<pre>
 
<pre>
Exception encountered, of type "Error"
[3468dd41] /index.php?title=Managing_Fedora_Linux_Users_and_Groups&diff=2979&oldid=2977 Error from line 434 of /var/www/techotopia/includes/diff/DairikiDiff.php: Call to undefined function each()
Backtrace:
#0 /var/www/techotopia/includes/diff/DairikiDiff.php(544): DiffEngine->diag()
#1 /var/www/techotopia/includes/diff/DairikiDiff.php(344): DiffEngine->compareSeq()
#2 /var/www/techotopia/includes/diff/DairikiDiff.php(227): DiffEngine->diffLocal()
#3 /var/www/techotopia/includes/diff/DairikiDiff.php(721): DiffEngine->diff()
#4 /var/www/techotopia/includes/diff/DairikiDiff.php(859): Diff->__construct()
#5 /var/www/techotopia/includes/diff/DairikiDiff.php(980): MappedDiff->__construct()
#6 /var/www/techotopia/includes/diff/TableDiffFormatter.php(194): WordLevelDiff->__construct()
#7 /var/www/techotopia/includes/diff/DiffFormatter.php(140): TableDiffFormatter->changed()
#8 /var/www/techotopia/includes/diff/DiffFormatter.php(82): DiffFormatter->block()
#9 /var/www/techotopia/includes/diff/DifferenceEngine.php(881): DiffFormatter->format()
#10 /var/www/techotopia/includes/diff/DifferenceEngine.php(797): DifferenceEngine->generateTextDiffBody()
#11 /var/www/techotopia/includes/diff/DifferenceEngine.php(728): DifferenceEngine->generateContentDiffBody()
#12 /var/www/techotopia/includes/diff/DifferenceEngine.php(662): DifferenceEngine->getDiffBody()
#13 /var/www/techotopia/includes/diff/DifferenceEngine.php(632): DifferenceEngine->getDiff()
#14 /var/www/techotopia/includes/diff/DifferenceEngine.php(453): DifferenceEngine->showDiff()
#15 /var/www/techotopia/includes/page/Article.php(797): DifferenceEngine->showDiffPage()
#16 /var/www/techotopia/includes/page/Article.php(508): Article->showDiffPage()
#17 /var/www/techotopia/includes/actions/ViewAction.php(44): Article->view()
#18 /var/www/techotopia/includes/MediaWiki.php(490): ViewAction->show()
#19 /var/www/techotopia/includes/MediaWiki.php(287): MediaWiki->performAction()
#20 /var/www/techotopia/includes/MediaWiki.php(714): MediaWiki->performRequest()
#21 /var/www/techotopia/includes/MediaWiki.php(508): MediaWiki->main()
#22 /var/www/techotopia/index.php(41): MediaWiki->run()
#23 {main}