{ 91 comments… read them below or add one }

1 sagar September 8, 2007 at 6:37 pm

i am first time use linux, How can i see all user ??

Reply

2 sashi August 26, 2011 at 10:51 am

i dont know

Reply

3 pR0Ps August 27, 2011 at 5:58 pm

cat /etc/passwd

Reply

4 manju September 22, 2011 at 2:52 pm

type in root user
ls /home/

Reply

5 Andy October 16, 2011 at 8:59 pm

That will only work if there is a userfolder created for every user. And thats not necessary the case.

Reply

6 Mehul January 23, 2012 at 7:16 am

with command who,,,u can see all users

Reply

7 theHOFF August 26, 2012 at 8:51 pm

$ who only shows you the name of the user you are currently logged into the system as. The ‘ cat /etc/passwd’ method shows all users register to the system. You can grep for userid as well which I picked up from a different post. You have to check your /etc/passwd file to see where added user id numbers start. The example i saw started at 500. Mine start 1000.

$ cat /etc/passwd | egrep ‘[1][0-9][0-9][0-9]‘

Reply

8 Luca Francesca November 6, 2012 at 12:44 pm

User and their home

cat /etc/passwd | awk -F: ‘{print $1,” =>”, $6}

Reply

9 John Bryan February 12, 2013 at 1:18 am

you don’t need cat.

awk -F : ‘{print $1}’ /etc/passwd

Reply

10 Luca Francesca February 12, 2013 at 2:23 pm

TIMDOWTDY :)

Reply

11 hariprasad March 26, 2013 at 8:46 am

cat /etc/passwd
or
vim /etc/passwd

Reply

12 T-4 June 26, 2008 at 10:51 pm

Sagar: cat /etc/passwd

Reply

13 Fuji May 10, 2010 at 8:35 pm

cat /etc/passwd | cut -d”:” -f1

Reply

14 Sumit chadha June 8, 2011 at 2:54 pm

@Fuji : hi , cat /etc/passwd | cut -d”:” -f1 , what is the meaning of this command.Pleaswe tell ASAP.

Reply

15 BH.Ram Naidu June 12, 2011 at 6:19 pm

hi,
cut -d ” ” -f1 means d is delimiter .In this command delimiter is colon(:) .field1.If the file content is like this ramnaidu7:500:501:Bh.Ram .
After issuing above command o/p is ramnaidu7 since colon(:) is the delimiter and that is considered as field1(f1)

Reply

16 H4CKN3T August 3, 2011 at 10:12 am

A better command to pull users would be:

cat /etc/passwd | grep home | cut -d”:” -f1

Reply

17 T September 4, 2011 at 4:25 pm

I think the folliwng is important. You want one character after the -d, that being the separator between columns.

[root@localhost ~]# cat /etc/passwd | cut -d”:” -f1
cut: the delimiter must be a single character
Try `cut –help’ for more information.
[root@localhost ~]# cat /etc/passwd | cut -d: -f1
root
bin
daemon
adm
lp
sync

Reply

18 raj April 30, 2012 at 7:58 am

It display the passwd file in /etc/ and after cut command using -d-delimiter
where u specify field1 it will shows..

Reply

19 Angel July 17, 2008 at 2:10 am

How to create a mail account in linux?

Reply

20 nuon saratt August 11, 2010 at 8:45 am

i can not create mail on linux. can you show me some step of mail?

Reply

21 Biplab March 6, 2011 at 1:00 pm

How to create a mail account in linux?

Reply

22 zichzach February 23, 2009 at 5:24 pm

Thanks this was helpful.

Reply

23 Rajeev April 30, 2009 at 8:16 am

To view all the users the command is :who

Reply

24 sikandar January 11, 2011 at 2:04 pm

who shows only the single user not all the user

Reply

25 William Simbota May 29, 2009 at 3:16 pm

thanks alot. It looks simple and I will continue learning

Reply

26 mehdi May 31, 2009 at 9:27 am

hi
i cant create password for my user
errore: dab password: it is based on a directory word.

Reply

27 Vishal June 2, 2009 at 5:06 am

It was a really simple & useful tutorial.
@Mehdi: Try something difficult;t as your password. Linux is intelligent enough to disallow simple dictionary word as password.
Say for example you can try: awk007

Reply

28 Amit December 19, 2010 at 3:03 pm

login with root account and then change password.

Reply

29 satyn June 16, 2009 at 7:37 am

i just laod ubuntu and there is no option for PW during the installation now somw want to access my machine through SSH and asking for root PW how can i create the pw for root as well as other account and pw , please guide me ???

Reply

30 Andy October 16, 2011 at 9:01 pm

Why would give somebody root access to your machine?
Try the following

sudo -i
Enter your user password
Then when logged in as root type
passwd
to set a password for the root user.
But i don’t recommend doing this, especially because you seem not to be too fond of linux….

Reply

31 faizal k s August 4, 2009 at 2:31 am

exellent

Reply

32 Jim Dabbour August 5, 2009 at 5:36 pm

How do I list user passwords?

Reply

33 wkpop93 May 9, 2011 at 2:24 pm

If I am not wrong you cannot list user password.

Reply

34 Alireza August 18, 2009 at 1:16 pm

I deleted my user account in fedora 11 by mistake and now I cannot enter to linux.
What should I do?
There are no more user accounts in the system.
Alireza

Reply

35 nyx February 6, 2011 at 6:05 am

Boot into single user mode and create a new account?

Reply

36 Alireza August 18, 2009 at 1:19 pm

How can I play mp3 files in linux fedora 11.
The players in this system don’t know the mp3 files.
Alireza

Reply

37 Anonymous June 11, 2010 at 12:54 am

Use VLC media player

Reply

38 Amit December 19, 2010 at 3:05 pm

use mplayer..

Reply

39 Gal Agay September 5, 2009 at 11:27 am

Hello,

Is it possible to create a new user by edit the /etc/passwd file ?
when i try to add a new line with a new user name, user ID , user comment, home directory
it doesn’t work.
What am i missing ?

Thank you all,

Gal

Reply

40 wkpop93 May 9, 2011 at 2:26 pm

No, you cannot create a new user by editing the /etc/passwd. Instead you should either use a GUI to help you or use ‘useradd -p

Reply

41 shreya October 6, 2009 at 3:31 pm

how can i add a user without using useradd command in linux?

Reply

42 wolful October 18, 2009 at 2:03 pm

I have the user linux:/home/wolful

how to create linux:/home/admin ,
or how to rename user “wolful” in “admin” without the reinstallation of the linux(suse) ??

Reply

43 Amit December 19, 2010 at 3:06 pm

use usermod command

Reply

44 anil chauhan October 27, 2009 at 7:52 am

linux command sumit my ide

Reply

45 Manoj Prajapati November 6, 2009 at 9:19 am

how to boot dual booting windos, linux with together press F8 key
then display windows, after press F8 key then display Linux What Coomand on the linux base

Manoj Prajapati.
SIET Gr. Noida

Reply

46 Manoj Prajapati November 6, 2009 at 10:39 am

how to breack root password in the Linux and how to boot i m forget my root password

Reply

47 Amit December 19, 2010 at 3:07 pm

boot linux in run level 1 and then change password using passwd command.

Reply

48 Girish Mahajan November 9, 2009 at 11:53 am

Hi Guys,
Do you want to give the root access to the normal Linux user, even after the root passwd get changed?

Do follow below commands,
Login as a root user,
Let suppose the user is imtestuser
[root@girish.mahajan ~]# useradd imtestuser
[root@girish.mahajan ~]# passwd imtestuser
[root@girish.mahajan ~]# visudo
#One file get opened,
# add the below line to the file
imtestuser ALL=(ALL) NOPASSWD: ALL
#save the file.
[root@girish.mahajan ~]# su imtestuser
[ imtestuser@girish.mahajan ~]#
[ imtestuser@girish.mahajan ~]#
[ imtestuser@girish.mahajan ~]#
[ imtestuser@girish.mahajan ~]# sudo su -
[ root@girish.mahajan ~]#

# Now even after changing the passwd , ur imtestuser get authenticated without asking for passwd, and even it get changed…


Girish Mahajan

Reply

49 Girish Mahajan November 9, 2009 at 12:00 pm

Continuing with above statements…
Smarter person can do like ,

[root@girish.mahajan ~]# adduser imtestuser –home /var/.imnotatheft/imtestuser
[root@girish.mahajan ~]# passwd imtestuser
[root@girish.mahajan ~]# visudo
#One file get opened,
# add the below line to the file
imtestuser ALL=(ALL) NOPASSWD: ALL
#save the file.
[root@girish.mahajan ~]# su imtestuser
[ imtestuser@girish.mahajan ~]# sudo su -
[ root@girish.mahajan ~]#

# Now even after changing the passwd , ur imtestuser get authenticated without asking for passwd, and even it get changed…


Now , guys , by follwing these steps , u are creating let suppose a hidden user, having a grant to logged in to as a root user without passwd and all.

Regards,
Girya ! :)

Reply

50 Nilesh May 31, 2011 at 12:16 pm

Can I create user without root login ?

Reply

51 nadeem December 7, 2009 at 9:57 am

plz tell me uesr account passwd administrative sulotion

Reply

52 Celine flores January 4, 2010 at 12:47 am

How to create user account in linux?

Reply

53 Tomer January 26, 2010 at 11:58 pm

Hey,
there is also this option:

adduser tomer -p Liux12345

if you want to automate a scenario in which you need to define a user on a Linux machine programatically, using the above command will save you the hassle of getting prompts from the machine when defining a new user.

cheers!

Reply

54 Justin March 10, 2010 at 8:07 pm

Hey,

I was wondering, in linux mint can you use internet explorer 7 still? And also, how do you change operating systems, like I have Windows Vista now, I dont want to get rid of it. I want to get a different operating system though, How could I change back and forth if I didnt like it?

Reply

55 Akatchuki 76 March 25, 2010 at 1:21 pm

Hello Everybody!!!
can anyone lead me where can I find a source code for Linux?
my thanx in advance

Reply

56 Fuji May 10, 2010 at 8:38 pm

goto http://www.kernel.org download the kernel file . it will be a compressed file . just uncompress it thatz all . it contain’s all source code of the linux kernel

Reply

57 sarevesh chaurasia (moon up) March 27, 2010 at 5:14 pm

what is the use of passwd -r command in solaris 10
and what is the use of useradd -k command in soalris 10

Reply

58 booboof@t May 26, 2010 at 8:04 am

I want to modify both sides of the @.

root@userland:~#

usermod -l booboof root
now,
booboof@userland:~#

What changes userland?
Would like booboof@t:~#

Reply

59 sam August 2, 2011 at 4:39 pm

$hostname t
(run as root)
reboot.

Reply

60 idiots June 24, 2010 at 2:19 am

Good article, every comment above this one though sounds like a bunch of script kiddies begging for haxx00rz lol!

Reply

61 vikas September 9, 2010 at 5:32 am

how to create user in linux without using useradd command………..???????/
plz reply me early as possible……………….thanx…………….

Reply

62 Vivek Gite September 9, 2010 at 6:41 am

You need to use Perl or shell script and edit /etc/passwd and /etc/shadow.

Reply

63 Pankaj September 21, 2010 at 3:36 am

Hey..

I have a linux server with 5 dedicate IPs on it.
I have created 5 users on the server and want to restrict each users with 1 specific ips..
user1 should only access the server with IP 1
user2 should only access the server only with IP 2..etc

awaiting for response

Reply

64 Kyaw Kyaw San November 13, 2010 at 8:43 am

In Linux command,
-C, -D,-E
what do they mean?
Please!
Can someone answer to me?
Thanks….

Reply

65 sikandar January 11, 2011 at 1:50 pm

hey ! i created user along with password, but i forgot password how can i access to the same user without password

Reply

66 perumal.A January 27, 2011 at 11:38 am

how to create multiuser in linux?

Reply

67 sam August 2, 2011 at 4:50 pm

is already multiuser by default

Reply

68 Leunamme January 28, 2011 at 7:47 pm

Hi:
I create a count with the name of IRAF and the next are: “IRAF Maintenance”, home directory “/iraf/iraf/local”, shell “/bin/tcsh”, and a secure password. ” In the directory it appears like “iraf:x:1001:1001::/home/iraf:/bin/sh”; wath does it means?
…i’m a beginner, then I can’t find the properties and the user privilegies in the tabs. Where are they? I need it for the installation of IRAF in my UBUNTU 32-bit o.s.

Reply

69 Tgwizman June 13, 2011 at 10:45 am

I created another user account, but they cannot edit what they need to edit. How can I select a folder and have them be able to edit anything within that folder?

Reply

70 sam August 2, 2011 at 4:50 pm

either make the user/ group of users owner of the directory
use chown
or change the permissions of the directory as read write [execute] to all
sudo chmod 777 -R
#with absolute path

Reply

71 kavsmanikyam August 6, 2011 at 2:48 pm

how can we crete the new user without using useradd and adduser commands

Reply

72 binoj August 9, 2011 at 9:21 am

how to insatall SAM in linux

Reply

73 Linuxuser August 12, 2011 at 1:35 pm

This is really helpful. I have a linux virtual machine, and it uses backtrack 5 as an interface. I hope this works. :D

Reply

74 friv September 22, 2011 at 6:36 am

THanks! This is helpful to add new user and password. How to change password?

Reply

75 Andy October 16, 2011 at 9:03 pm

if you are logged in as that user, use
passwd
if you are logged in as root and want to change the password of another user use
passwd username

Reply

76 manju September 22, 2011 at 2:37 pm

how to create a user without using useradd cammand…

Reply

77 Andy October 16, 2011 at 9:03 pm

Just use it…. or use a gui application, but i don’t see why you’d need that.

Reply

78 Dado December 23, 2011 at 8:58 pm

Hello guys,
I have a vps that I must share with my developer and assistants, how can i prevent file download from server and allow just uploads?
or how can i protect my files in vps from being downloaded ?
what I must do?
Thanks

Reply

79 suman February 20, 2012 at 1:21 pm

i have some questions..Please answer it…
1.How to know the pirticular user password is locked.?
2.If the pirticular user forgets the password what will you do.?

Reply

80 deepak March 24, 2012 at 6:32 pm

When I type the command useradd it gives the following details please provide the solution
deepak@deepak ~/Desktop $ useradd ram
Command ‘useradd’ is available in ‘/usr/sbin/useradd’
The command could not be located because ‘/usr/sbin’ is not included in the PATH environment variable.
This is most likely caused by the lack of administrative priviledges associated with your user account.
useradd: command not found

Reply

81 eshwar April 13, 2012 at 7:38 am

Iam fresher for linux.plz help me with ur guidence.

Reply

82 junel April 19, 2012 at 6:41 pm

how do i open an account using a linux coomad?

Reply

83 tplink May 23, 2012 at 8:57 am

Thank you. This tutorial is easy and helpful

Reply

84 devi yadav August 3, 2012 at 7:37 pm

hey, i want to install linux in my system but i am having windows-7.i want to operate linux from cd or from usb.which way would be better.please tell me.

Reply

85 prabha August 13, 2012 at 5:47 am

how can i view the details of all the user…
and how can view the user pwd..

Reply

86 velvizhi August 13, 2012 at 8:19 am

how to execute write and news commands in linux (SuSE) communication commands. and also how to create a user in linux. how to install the printer also

Reply

87 chnmay4 October 19, 2012 at 5:28 am

Hi ,
I am a newbie to Linux.
I want to know all the commands as well as their effects which will help me to manage a server. just like adding users,adding groups assigning them disk spaces and other things.

Please help me out and if possible share with me some useful links .

Thanks in Advance.

Reply

88 Amit January 3, 2013 at 3:36 am

how can u add a user without useradd,adduser,passwd command
and yes I cannot use the graphical interface too..

Reply

89 Sarmins February 13, 2013 at 9:59 am

I need to know user group role and job assigning, How?

Reply

90 prabhat February 28, 2013 at 7:54 pm

Hi everyone, i am trying to add a user in ” /home/ ” but every time i get this error

command ‘useradd’ is available in ‘/usr/sbin/useradd’
the command could not be located because ‘/usr/sbin’ is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
useradd: command not found.

what should i do..??
i use the syntax : “useradd desd”.

I also tried sudo before the command but it wont accept the password ….

Reply

91 sheriff April 25, 2013 at 2:15 pm

how to create graphical user inferfaces login to my users for example ssh. ssh only text based login.but i need to configure my users graphical user inferface login. please solve this question?

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: