<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Linux-for-Sys-Ads%2FC2%2FCreating-user-account%2FEnglish-timed</id>
		<title>Linux-for-Sys-Ads/C2/Creating-user-account/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Linux-for-Sys-Ads%2FC2%2FCreating-user-account%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Linux-for-Sys-Ads/C2/Creating-user-account/English-timed&amp;action=history"/>
		<updated>2026-04-24T21:04:35Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Linux-for-Sys-Ads/C2/Creating-user-account/English-timed&amp;diff=56032&amp;oldid=prev</id>
		<title>PoojaMoolya: Created page with &quot;{|  border=1 |- || '''Time''' || '''Narration''' |- || 00:01 || Hello and welcome to the spoken tutorial on '''Creating User Account''' in '''Linux.''' |- || 00:08 || In this...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Linux-for-Sys-Ads/C2/Creating-user-account/English-timed&amp;diff=56032&amp;oldid=prev"/>
				<updated>2022-09-06T10:20:03Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{|  border=1 |- || &amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039; |- || 00:01 || Hello and welcome to the spoken tutorial on &amp;#039;&amp;#039;&amp;#039;Creating User Account&amp;#039;&amp;#039;&amp;#039; in &amp;#039;&amp;#039;&amp;#039;Linux.&amp;#039;&amp;#039;&amp;#039; |- || 00:08 || In this...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{|  border=1&lt;br /&gt;
|-&lt;br /&gt;
|| '''Time'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|| 00:01&lt;br /&gt;
|| Hello and welcome to the spoken tutorial on '''Creating User Account''' in '''Linux.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 00:08&lt;br /&gt;
|| In this tutorial we will learn about&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:10&lt;br /&gt;
||Creating '''user account '''with different options&lt;br /&gt;
&lt;br /&gt;
'''slash etc slash passwd file''', '''slash etc slash shadow file'''&lt;br /&gt;
|-&lt;br /&gt;
|| 00:22&lt;br /&gt;
|| To record this tutorial, I am using '''Ubuntu Linux 16.04 OS'''&lt;br /&gt;
|-&lt;br /&gt;
|| 00:29&lt;br /&gt;
|| To practice this tutorial, You should have gone through the''' Linux '''tutorial series''' '''on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:36&lt;br /&gt;
||And you must have '''root access '''to the computer.&lt;br /&gt;
|-&lt;br /&gt;
|| 00:41&lt;br /&gt;
|| In an earlier tutorial on basics of '''system administration''', we have learnt&lt;br /&gt;
&lt;br /&gt;
To add a''' user '''using the following command:&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:49&lt;br /&gt;
||Please note that the '''option field '''here, is not mandatory.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:54&lt;br /&gt;
||We will elaborate on the '''option field''' in this tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 00:59&lt;br /&gt;
|| Open the '''Terminal '''by pressing '''Ctrl, Alt and T '''keys simultaneously on the keyboard.&lt;br /&gt;
|-&lt;br /&gt;
|| 01:06&lt;br /&gt;
|| First, you should login as '''superuser '''or '''root user'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:11&lt;br /&gt;
||To do so type: '''sudo space su '''and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 01:18&lt;br /&gt;
|| Type your''' password '''and then press '''Enter'''.&lt;br /&gt;
|-&lt;br /&gt;
|| 01:22&lt;br /&gt;
|| Notice, our '''login prompt '''has changed to a '''hash''' symbol.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:27&lt;br /&gt;
||This indicates that we are in the '''root user '''mode.&lt;br /&gt;
|-&lt;br /&gt;
|| 01:31&lt;br /&gt;
|| Now, let’s consider a scenario of a college.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:35&lt;br /&gt;
||We will have students, departments, etc.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:39&lt;br /&gt;
||As a '''system administrator''', you should first create a '''user account '''for individual students. &lt;br /&gt;
|-&lt;br /&gt;
|| 01:46&lt;br /&gt;
|| Let’s add one '''user''' say '''amit''' using '''adduser command'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 01:51&lt;br /&gt;
||So, on the '''terminal '''type: '''adduser space amit '''and press '''Enter'''&lt;br /&gt;
|-&lt;br /&gt;
|| 02:00&lt;br /&gt;
|| It will prompt us to type the '''password''' for the''' user amit.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:04&lt;br /&gt;
||Let’s type '''pass underscore amit '''and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 02:10&lt;br /&gt;
|| Retype the same '''password '''and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 02:14&lt;br /&gt;
|| When it prompts for the '''Full Name '''field, type the name of the '''user '''as '''Amit '''with '''A '''in caps.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:23&lt;br /&gt;
||Leave the other fields empty by pressing the '''Enter key.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 02:28&lt;br /&gt;
|| Press '''Y '''to confirm that the information you provided is correct.&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''&lt;br /&gt;
|-&lt;br /&gt;
|| 02:36&lt;br /&gt;
|| So, we got back our '''root command prompt.'''&lt;br /&gt;
&lt;br /&gt;
The user '''amit''' is created now.&lt;br /&gt;
|-&lt;br /&gt;
|| 02:42&lt;br /&gt;
|| '''Linux''' automatically assigns a '''UID '''or''' User ID''' to the '''user'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 02:49&lt;br /&gt;
|| It also creates a '''home directory '''for the '''user '''in the '''system’s home''' folder.&lt;br /&gt;
&lt;br /&gt;
In this case, it is '''slash home slash amit'''&lt;br /&gt;
|-&lt;br /&gt;
|| 03:00&lt;br /&gt;
|| A '''group '''is also created with the same name as the '''username '''of the '''user'''.&lt;br /&gt;
|-&lt;br /&gt;
|| 03:05&lt;br /&gt;
|| Now, say we want a '''customized user ID '''or '''group '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:11&lt;br /&gt;
||Or a '''home directory''' other than the default one&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:15&lt;br /&gt;
||Or we want to change the '''default login shell '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:20&lt;br /&gt;
|| '''adduser''' supports options for each of these requirements.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:25&lt;br /&gt;
||Also you can combine multiple options to set multiple values in a single '''command'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:32&lt;br /&gt;
|| '''Hyphen u '''option is used to set '''user ID'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:37&lt;br /&gt;
||'''Hyphen home''' sets '''user home directory'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:41&lt;br /&gt;
||'''Hyphen shell '''sets the '''login shell '''for the '''user'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:46&lt;br /&gt;
||'''Hyphen c''' option is used to mention '''comments'''&lt;br /&gt;
|-&lt;br /&gt;
|| 03:51&lt;br /&gt;
|| Let us take an example.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 03:53&lt;br /&gt;
||Say we want to add a '''user Kaushik with '''&lt;br /&gt;
&lt;br /&gt;
'''user ID '''as '''1050'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:00&lt;br /&gt;
||'''home directory '''as '''testdir '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:04&lt;br /&gt;
||'''login shell '''as''' slash bin slash sh'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:08&lt;br /&gt;
||Also add “'''Kaushik is a re-registered student” '''in the''' comments'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||04:14&lt;br /&gt;
|| Switch to the '''terminal.'''&lt;br /&gt;
&lt;br /&gt;
Let me clear the '''terminal'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:18&lt;br /&gt;
||Type the '''command '''as shown here &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:23&lt;br /&gt;
||Press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 04:26&lt;br /&gt;
|| It will ask you to enter the '''password''' for '''Kaushik.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 04:30&lt;br /&gt;
||I will type the '''password '''as '''pass underscore kaushik '''&lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 04:37&lt;br /&gt;
|| Retype the same '''password '''and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 04:42&lt;br /&gt;
|| Give the '''Full Name '''of the '''user '''as '''Kaushik '''with '''K''' in caps &lt;br /&gt;
&lt;br /&gt;
press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 04:51&lt;br /&gt;
|| And proceed as we have done before.&lt;br /&gt;
|-&lt;br /&gt;
|| 04:57&lt;br /&gt;
|| So, the''' user kaushik''' is created now.&lt;br /&gt;
|-&lt;br /&gt;
|| 05:01&lt;br /&gt;
|| Now type '''ls space /home '''and press '''Enter.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:07&lt;br /&gt;
||Notice, we have a new '''directory testdir.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 05:12&lt;br /&gt;
|| How can we view other information such as '''user ID, login shell '''etc.?&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:19&lt;br /&gt;
||In '''Linux''', all '''configuration files '''are stored in simple '''text files'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:25&lt;br /&gt;
||'''''/etc/passwd'' '''file contains the entire information about all the '''user accounts.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:33&lt;br /&gt;
|| Let us have a look at the '''/etc/passwd '''file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:37&lt;br /&gt;
||Switch to the '''terminal''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:40&lt;br /&gt;
||Type '''cat space /etc/passwd '''and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 05:48&lt;br /&gt;
|| There will be an entry in this file for every '''user '''on the system.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:53&lt;br /&gt;
||Our '''passwd''' file shows this line for user '''Amit'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 05:58&lt;br /&gt;
||Each line has seven '''fields '''separated by '''colon'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:02&lt;br /&gt;
||Let us understand the '''fields '''one by one.&lt;br /&gt;
|-&lt;br /&gt;
|| 06:06&lt;br /&gt;
|| The first '''field '''is the '''username amit.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:10&lt;br /&gt;
||Remember, '''username '''should start with a lowercase letter, followed by any number of lowercase letters or digits&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:19&lt;br /&gt;
||No special character other than '''underscore '''is allowed in the '''username'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:25&lt;br /&gt;
||You should remember this while you are creating a '''user account'''&lt;br /&gt;
|-&lt;br /&gt;
|| 06:29&lt;br /&gt;
|| The second field is for '''password'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:32&lt;br /&gt;
||An '''x''' character indicates that the '''encrypted hash password '''is stored in the file '''/etc/shadow'''.&lt;br /&gt;
|-&lt;br /&gt;
|| 06:41&lt;br /&gt;
|| The third field is '''user ID '''for that particular '''user'''.&lt;br /&gt;
|-&lt;br /&gt;
|| 06:46&lt;br /&gt;
|| '''User id 0''' is reserved for '''root user'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:50&lt;br /&gt;
||'''User ids '''upto '''999 '''are reserved for other '''administrative '''or '''system users'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 06:58&lt;br /&gt;
||Real '''user account id''' starts from '''1000'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:02&lt;br /&gt;
||So, you should specify a number more than '''1000 '''in the '''adduser command'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:08&lt;br /&gt;
|| The fourth '''field '''stores the '''primary group id''' for the '''user'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:13&lt;br /&gt;
||At the fifth place, we have the''' comments field'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:17&lt;br /&gt;
||It basically stores information about the '''user '''such as name of the '''user''', '''room number, phone number, '''etc.&lt;br /&gt;
|-&lt;br /&gt;
|| 07:26&lt;br /&gt;
|| The sixth '''field '''indicates the '''home directory''' for the '''user'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:31&lt;br /&gt;
||At the end, we have the '''login shell '''of the '''user'''.&lt;br /&gt;
|-&lt;br /&gt;
|| 07:36&lt;br /&gt;
|| Notice that, we have default values set for '''user Amit.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:42&lt;br /&gt;
||However, '''user kaushik '''is created with our customized values.&lt;br /&gt;
|-&lt;br /&gt;
|| 07:48&lt;br /&gt;
|| Now, let’s have a look at the '''/etc/shadow''' file, where the '''encrypted passwords '''are stored.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 07:57&lt;br /&gt;
||Type '''cat space /etc/shadow '''and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 08:05&lt;br /&gt;
|| In this file, every line has information about a particular '''user'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:10&lt;br /&gt;
||And each line contains various fields separated by '''colon'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:16&lt;br /&gt;
||The first '''field '''is '''username''', which must correspond to '''username field '''in '''/etc/passwd''' file.&lt;br /&gt;
|-&lt;br /&gt;
|| 08:25&lt;br /&gt;
|| Notice, the second '''field '''is the '''encrypted password '''for that '''user'''.&lt;br /&gt;
&lt;br /&gt;
Let us skip the other '''fields '''for now.&lt;br /&gt;
|-&lt;br /&gt;
|| 08:33&lt;br /&gt;
|| To exit from the '''root user access''', type '''exit''' and press '''Enter.'''&lt;br /&gt;
|-&lt;br /&gt;
|| 08:39&lt;br /&gt;
|| This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Let us summarize.&lt;br /&gt;
|-&lt;br /&gt;
|| 08:44&lt;br /&gt;
|| In this tutorial we learnt about- Creating '''user account '''with different options like&lt;br /&gt;
&lt;br /&gt;
Specific '''user id''', Specific '''Home Directory''',  Specific '''shell'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:56&lt;br /&gt;
||And adding '''comments '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 08:59&lt;br /&gt;
|| We also learnt about some of the '''fields '''in the *'''/etc/passwd '''and '''/etc/shadow '''files.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
||09:10&lt;br /&gt;
|| As an assignment &lt;br /&gt;
&lt;br /&gt;
Create '''user ankit '''with '''User ID '''as '''1500'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:17&lt;br /&gt;
|| '''Home directory '''named '''ankit underscore newdir'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:22&lt;br /&gt;
||'''Login shell '''as '''/bin/csh'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:27&lt;br /&gt;
|| Include''' “Hostel 15”''' in the '''comment'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:30&lt;br /&gt;
||Use a single '''command''' to perform all the tasks&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 09:34&lt;br /&gt;
||Check the''' /etc/passwd''' file for the details of '''user account ankit'''&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 09:41&lt;br /&gt;
|| The video at the following link summarises the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|- &lt;br /&gt;
|| 09:49&lt;br /&gt;
|| The '''Spoken Tutorial Project''' team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
|| 09:58&lt;br /&gt;
|| Do you have questions in this Spoken Tutorial?&lt;br /&gt;
&lt;br /&gt;
Please visit this site.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:03&lt;br /&gt;
||Choose the minute and second where you have the question.&lt;br /&gt;
&lt;br /&gt;
Explain your question briefly.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:10&lt;br /&gt;
||Someone from our team will answer them.&lt;br /&gt;
|-&lt;br /&gt;
|| 10:14&lt;br /&gt;
|| The Spoken Tutorial forum is for specific questions on this tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:19&lt;br /&gt;
||Please do not post unrelated and general questions on them.&lt;br /&gt;
&lt;br /&gt;
This will help reduce the clutter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| 10:26&lt;br /&gt;
||With less clutter, we can use these discussion as instructional material.&lt;br /&gt;
|- &lt;br /&gt;
|| 10:32&lt;br /&gt;
|| Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| 10:38&lt;br /&gt;
|| The script has been contributed by Antara and this is Praveen from IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	</feed>