{ 68 comments… read them below or add one }

1 sagar September 8, 2007

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

Reply

2 sashi August 26, 2011

i dont know

Reply

3 pR0Ps August 27, 2011

cat /etc/passwd

Reply

4 manju September 22, 2011

type in root user
ls /home/

Reply

5 Andy October 16, 2011

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

with command who,,,u can see all users

Reply

7 T-4 June 26, 2008

Sagar: cat /etc/passwd

Reply

8 Fuji May 10, 2010

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

Reply

9 Sumit chadha June 8, 2011

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

Reply

10 BH.Ram Naidu June 12, 2011

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

11 T September 4, 2011

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

12 Angel July 17, 2008

How to create a mail account in linux?

Reply

13 nuon saratt August 11, 2010

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

Reply

14 Biplab March 6, 2011

How to create a mail account in linux?

Reply

15 zichzach February 23, 2009

Thanks this was helpful.

Reply

16 Rajeev April 30, 2009

To view all the users the command is :who

Reply

17 William Simbota May 29, 2009

thanks alot. It looks simple and I will continue learning

Reply

18 mehdi May 31, 2009

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

Reply

19 Vishal June 2, 2009

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

20 Amit December 19, 2010

login with root account and then change password.

Reply

21 satyn June 16, 2009

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

22 Andy October 16, 2011

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

23 faizal k s August 4, 2009

exellent

Reply

24 Jim Dabbour August 5, 2009

How do I list user passwords?

Reply

25 wkpop93 May 9, 2011

If I am not wrong you cannot list user password.

Reply

26 Alireza August 18, 2009

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

27 nyx February 6, 2011

Boot into single user mode and create a new account?

Reply

28 Alireza August 18, 2009

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

Reply

29 Anonymous June 11, 2010

Use VLC media player

Reply

30 Amit December 19, 2010

use mplayer..

Reply

31 Gal Agay September 5, 2009

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

32 wkpop93 May 9, 2011

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

33 shreya October 6, 2009

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

Reply

34 wolful October 18, 2009

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

35 Amit December 19, 2010

use usermod command

Reply

36 anil chauhan October 27, 2009

linux command sumit my ide

Reply

37 Manoj Prajapati November 6, 2009

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

38 Manoj Prajapati November 6, 2009

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

Reply

39 Amit December 19, 2010

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

Reply

40 Girish Mahajan November 9, 2009

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

41 Girish Mahajan November 9, 2009

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

42 Nilesh May 31, 2011

Can I create user without root login ?

Reply

43 nadeem December 7, 2009

plz tell me uesr account passwd administrative sulotion

Reply

44 Celine flores January 4, 2010

How to create user account in linux?

Reply

45 Tomer January 26, 2010

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

46 Justin March 10, 2010

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

47 Akatchuki 76 March 25, 2010

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

Reply

48 Fuji May 10, 2010

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

49 sarevesh chaurasia (moon up) March 27, 2010

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

Reply

50 booboof@t May 26, 2010

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

51 sam August 2, 2011

$hostname t
(run as root)
reboot.

Reply

52 idiots June 24, 2010

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

Reply

53 vikas September 9, 2010

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

Reply

54 Vivek Gite September 9, 2010

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

Reply

55 Pankaj September 21, 2010

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

56 Kyaw Kyaw San November 13, 2010

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

Reply

57 perumal.A January 27, 2011

how to create multiuser in linux?

Reply

58 sam August 2, 2011

is already multiuser by default

Reply

59 Leunamme January 28, 2011

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

60 Tgwizman June 13, 2011

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

61 sam August 2, 2011

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

62 binoj August 9, 2011

how to insatall SAM in linux

Reply

63 Linuxuser August 12, 2011

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

Reply

64 friv September 22, 2011

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

Reply

65 Andy October 16, 2011

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

66 manju September 22, 2011

how to create a user without using useradd cammand…

Reply

67 Andy October 16, 2011

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

Reply

68 Dado December 23, 2011

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

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 4 + 2 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: