We’ll start by
1.cat /etc/passwd
2.As we all know that by default all the users created will have their
home directories in /home share
so we’ll modify our command a bit by using grep.
Now it’ll be
cat /etc/passwd | grep “/home”
3. Now we’ll get all the user accounts which have their home share in /home.
But the only output we need is the list of users & nothing else.
4. So we’ll modify our command again
cat /etc/passwd | grep “/home” |cut -d: -f1
Now what we have done is that we have piped the output of previous
command to another variable “cut”
What we have done here is we have added
cut -d: -f1
-d: means delimiter :
-f1 means display first field of line i.e. username.
So final command is
Cat /etc/passwd |grep “/home” |cut -d: -f1
This works until all your users have their home share in /home. If you
have defined their home share to some other destination. Modify the
above command.
.



June 30th, 2008 at 6:44 pm
how about to list the users and its passwords….logged in as root of course!!
August 19th, 2008 at 2:39 pm
The blog.feinan.com is interesting site, tnks, webmaster. And see this state industries water heater
August 20th, 2008 at 6:59 am
Your site- blog.feinan.com is cool resource, respect, owner.
viagra viagra pills.
August 21st, 2008 at 5:19 am
This is where you find best on line savings accounts furnishings the redemptional your money. Most adroitly savings accounts in clarification that collapse duties predict from settling to mixture and the breathe applies to paving dance surplus buyers only.
August 22nd, 2008 at 3:14 am
child saving account ukpew medical savings accounts
August 25th, 2008 at 3:32 am
Nice site
Thanks, webmaster.
August 26th, 2008 at 5:35 am
Nice site
Thanks, webmaster.
August 26th, 2008 at 1:07 pm
Nice site
Thanks, webmaster.
August 26th, 2008 at 4:15 pm
Nice site
Thanks, webmaster.
August 26th, 2008 at 6:49 pm
Cool blog
Thanks, webmaster.
August 26th, 2008 at 10:46 pm
Nice site
Thanks, webmaster.
August 27th, 2008 at 4:29 am
Nice site
Thanks, webmaster.
August 27th, 2008 at 1:35 pm
Very amazing site
Thanks, webmaster.
August 27th, 2008 at 4:06 pm
Viagra Cialis
September 3rd, 2008 at 3:33 pm
Cool blog.
Thanks, admin.
September 5th, 2008 at 12:40 pm
Nice site
Thanks, webmaster.
September 6th, 2008 at 3:39 am
Very amazing site
Thanks, webmaster.
September 8th, 2008 at 11:04 am
Amazing site.
Thanks, webmaster.
September 8th, 2008 at 6:52 pm
Cool blog.
Thanks, admin.
September 8th, 2008 at 11:54 pm
Beautiful design.
Thanks, webmaster.
September 11th, 2008 at 2:42 pm
Nice site.
Thanks, admin.
September 11th, 2008 at 6:37 pm
Beautiful design.
Thanks, admin.
September 11th, 2008 at 9:13 pm
Nice site.
Thanks, webmaster.
September 12th, 2008 at 1:08 am
Cool blog.
Thanks, webmaster.
September 12th, 2008 at 4:59 am
Cool blog.
Thanks, admin.
September 12th, 2008 at 8:19 pm
Cool blog.
Thanks, webmaster.
September 12th, 2008 at 11:21 pm
Nice site.
Thanks, admin.
September 13th, 2008 at 3:52 am
Cool blog.
Thanks, webmaster.
September 13th, 2008 at 8:18 pm
Amazing site.
Thanks, webmaster.
September 14th, 2008 at 10:04 am
Amazing site
Thanks.
September 14th, 2008 at 10:19 pm
Beautiful design.
Thanks, webmaster.
September 15th, 2008 at 12:46 am
Amazing site.
Thanks, admin.
September 15th, 2008 at 6:37 am
Cool blog.
Thanks, webmaster.
September 15th, 2008 at 2:21 pm
Amazing site.
Thanks, webmaster.
September 15th, 2008 at 5:20 pm
Cool blog.
Thanks, admin.
September 16th, 2008 at 1:15 am
Beautiful design.
disney ariel nudes
Thanks, webmaster.
November 3rd, 2008 at 3:47 am
Enjoyed your site very much! Thank you! Keep up a good work! :-))
November 13th, 2008 at 6:33 am
! :-)) Keep up a good work!
December 16th, 2008 at 8:39 am
Funny foto here
January 3rd, 2009 at 12:30 pm
gG1eP7 Thanks for good post
January 4th, 2009 at 6:03 am
Hello, you have a great blog here! I’m definitely going to bookmark you!
January 4th, 2009 at 5:38 pm
This blog is awesome!
January 4th, 2009 at 5:51 pm
Hey, I was searching blogs, and came onto yours, and I like it.