Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Universal configuration monitoring and system of record for IT.
Hide

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

Pulls email password out of Plesk database for given email address.

Terminal - Pulls email password out of Plesk database for given email address.
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -e "use psa; select accounts.password FROM accounts JOIN mail ON accounts.id=mail.account_id WHERE mail.mail_name='webmaster';"
2009-04-01 13:32:36
User: darkon1365
3
Pulls email password out of Plesk database for given email address.

This simply pulls the password out of the database for the given mail name for ease of use in testing emails that you would not normally have access to.

Alternatives

There are 6 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

For Plesk > 8.0, Parallels includes a script that does this:

/usr/local/psa/admin/bin/mail_auth_view

Comment by kalemeow 400 weeks and 4 days ago

That is good that they have finally added this. Do you know if it can list all current email accounts at once on the server, such as the below example does? I have not had a chance to test this yet but will test that script you stated as soon as I can.

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -e "use psa; select concat(mail_name,'@',domains.name) as email,password,redirect,redir_addr,autoresponder,spamfilter,virusfilter FROM mail JOIN (domains, accounts) ON (mail.dom_id=domains.id and mail.account_id=accounts.id) ORDER BY domains.name asc,mail_name asc;"

Comment by darkon1365 400 weeks and 3 days ago

Yeah, it lists every account in a little ascii chart:

[email protected] password

I don't have a Plesk server in front of me, but I think it also indicates whether the password is encrypted or some such. Easy to grep out relevant domains or accounts. Doesn't have all the info you display in your query (redirection, spamfilter settings, etc), but does what it says -- allows you to view mail authentication details.

Comment by kalemeow 400 weeks and 3 days ago

What would be the MYSQL command to get all client logins and password for a given Plesk Server. Thank you for the help.

Comment by unixmonkey3206 399 weeks ago

I wrote a script to list all email address passwords and all ftp username/passwords...the script has been tested on Fedora/CentOS and FreeBSD up to Plesk 9.0.1

Have not tested on debian system..feel free to use:

http://burnsforce.com/original-guides/plesk-hack-email-and-ftp-usernames-and-passwords/

Comment by jigglebilly 397 weeks and 6 days ago

Hello,

Plesk is causing my big problems(re-writing DNS files with bad data), so I decided to shut it down.

Now, I have to create a new email account. So I did this:

1. insert into accounts (type,password) values("plain","temp123"); -> which gave the last id = 245

2. insert into mail (userId,mail_name,perm_id,postbox,account_id,spamfilter,dom_id) values("245","newuser","0","true","245","false","2"); -> the last "2" is my domain id ;

3. created "Maildir" folder structure in /var/qmail/mailnames//newuser/

4. edited : /var/qmail/users/assign and inserted the line : =2-newuser:popuser:110:31:/var/qmail/mailnames//newuser:::

But webmail it is not working, Horde giving me "Login failed because your username or password was entered incorrectly".

Can you help me please and tell me what did I miss or did wrong?

Thank you very much!!

Comment by imperiatux 226 weeks and 2 days ago

http://www.michael--korsoutlet.us.com

http://www.abercrombieandfitchoutlet.in.net

http://www.jordanretro.name

http://www.louisvuittonhandbagsoutlet.us.org

http://www.gucci-outlet.in.net

http://www.niketn-pascher.fr

http://www.toms.us.org

http://www.ugg-bootsuk.co.uk

http://www.louisvuitton.nom.co

http://www.cheapjordansshoes.us.com

http://www.christianlouboutinsale.me.uk

http://www.airjordan-pascher.fr

http://www.discountuggboots.us.com

http://www.michaelkors--outlet.com.co

http://www.jordanshoes.us.org

http://www.newyorkknicksjerseys.us.com

http://www.uggoutletsale.in.net

http://www.hollisterclothing.net

http://www.uggoutlet-stores.us.com

http://www.louisvuitton-handbags.com.co

http://timberlandboots.hugeoff.net

http://www.nike-rosherun.in.net

http://www.nfljerseyswholesales.us

http://www.outlet-celine.com

http://www.timberlandboots.net.co

http://www.oakleysunglasses-outlet.com.co

http://www.adidasoutletstore.net

http://www.canadagooseuk.uk

http://www.katespadeoutlets.us.com

http://www.cheapuggssale.us.com

http://www.clarisonic.com.co

http://www.coachclearance.us.com

http://www.canadagoose-pascher.fr

http://www.hilfigeroutlet.in.net

http://www.true-religionjeans.us.org

http://www.nhljerseys.org

http://www.montblanc-pens.name

http://www.uggsoutletsale.us.com

http://www.cheapoakleysunglassess.com.co

http://www.ralphlaurenoutletonline.in.net

http://www.tommyhilfigeroutlet.us.org

http://www.outlet-uggboots.us.com

http://www.newenglandpatriotsjerseys.us.com

http://www.rolexwatches.us.com

http://www.coachfactoryoutlet-online.eu.com

http://www.coachfactoryoutletmall.us.com

http://www.nikeoutletstore.us.com

http://www.chaneloutlet.in.net

http://www.michael-korsbags.us.com

http://www.airmaxssale.com

http://www.louisvuittonlvoutlet.us.com

http://www.gucci-outlet.org

http://www.oakleysunglassess.com.co

http://www.uggoutletdiscount.us.com

http://www.uggsuk.org.uk

http://www.abercrombiefitch.us.com

http://www.adidasshoes.net

http://www.uggsaustralia.it

http://www.monclerpascherhomme.fr

http://www.uggslippers.com.co

http://www.clevelandcavaliersjerseys.us.com

http://www.adidastrainers.uk

http://www.retrojordans.name

http://www.oakleysunglassescanada.ca

http://www.raybanpascher.fr

http://www.outletslouisvuitton.us.com

http://www.miamiheatjerseys.us.com

http://www.cheapuggboots.org.uk

http://www.toms-shoes.cc

http://www.edhardyclothing.in.net

http://www.oakley-sunglasses.net.co

http://www.truereligion.net.co

http://www.redbottoms.org.uk

http://www.aididasyeezy.org.uk

http://www.cheaprolexwatches.name

http://www.lebronjames-shoes.name

http://www.uggsbootsoutlet.us.org

http://www.mlbjerseys.org

http://www.tomsshoesuk.org.uk

http://www.michaelkors--outlet.us.com

http://www.jordan8.net

http://www.gooseoutlet.us.com

http://www.tomswedges.us

http://www.tiffanyandco.nom.co

http://www.oklahomacitythunderjerseys.us.com

http://www.kobeshoes.org

http://www.moncleroultet.us.com

http://www.coachhandbagsnew.us.com

http://www.niketrainers.uk

http://www.kevindurantshoes.name

http://www.ugg-outlet.ca

http://www.truereligion-jeans.us

http://www.uggaustralia.us.org

http://www.adidasoriginals.in.net

http://www.moncler.me.uk

http://www.uggs.me.uk

http://www.raybansunglassesoutlet.net.co

http://www.coachoutletstoreonlineclearances.us.com

http://www.adidasyeezy350.us.com

http://www.rosherun.org

http://www.rayban-sunglasses.com.co

http://www.louboutin.us.com

http://www.adidas.in.net

http://www.louisvuitton-outlet.ca

http://www.coachfactoryoutlet-stores.us.org

http://www.ralphlaurenpolo.in.net

http://www.outletcanadagoose.name

http://www.adidassuperstar.name

http://www.ugg-boots.fr

http://www.uggs-pascher.fr

http://www.pandorajewelry.in.net

http://uggs.uggaustralia.qc.com

http://www.goldenstatewarriorsjerseys.us.com

http://www.uggbootscheap.us.com

http://www.michaelkorsoutletstores.us.org

http://www.ray-banssunglasses.com.co

http://www.louis--vuitton.us.org

http://www.outletmichaelkorshandbags.us.com

http://www.hogan-scarpe.it

http://www.cheapuggsboots.us.com

http://www.pittsburghsteelersjerseys.us.com

http://www.canadagooseoutletsale.us.com

http://www.authenticlouisvuittonhandbags.us.com

http://www.todsoutlet.in.net

http://www.truereligionjeans-outlet.us.com

http://www.raybanoutlet.net.co

http://www.fitflops.org

http://www.raybanssunglasses.com.co

http://www.adidasnmd-shoes.us.com

http://www.ugguk.me.uk

http://www.louisvuittonoutletonlineshop.com

http://www.katespade.eu.com

http://www.polooutlet-online.us.com

http://www.raybansonsale.com.co

http://www.louisvuitton-discount.com

http://www.katespadehandbagsoutlet.us.com

http://www.christianlouboutinoff.us

http://www.cheaprolexforsale.com

http://www.jordansforsale.in.net

http://www.ugg-italia.it

http://www.cincinnatibengalsjerseys.us.com

http://www.longchamp-sac.fr

http://www.hermesbags.us.org

http://www.rolexwatchesforsale.name

http://www.uggsoutletcheap.us.com

http://www.nike--rosherun.fr

http://www.nike-airmaxpascher.fr

http://www.michaelkorsuk.com.co

http://www.supra-shoes.net

http://www.cheapjordansforsale.us

http://www.abercrombieoutletonline.cc

http://www.bostoncelticsjerseys.com

http://www.canadagoosecanada.us.org

http://www.uggsboots.us.org

http://www.curry3.name

http://www.uggsoutlet-online.us.com

http://www.washingtonwizardsjerseys.com

http://www.tomssale.in.net

http://www.raybansunglasses.uk

http://www.nikeoutlet-online.com

http://www.oakleys-sunglasses.us.org

http://www.sanantoniospursjerseys.us.com

http://www.louis-vuittonoutlet.us.com

http://www.louboutinshoessale.com

http://www.toryburchoutlet.us.org

http://www.louboutinshoes.cc

http://www.pandorauk.me.uk

http://www.outletcanadagoose.com.co

http://www.christianlouboutin-pas-cher.fr

http://www.adidas-nmd.co.uk

http://www.cheapraybansunglasses.net.co

http://www.north-faceoutlet.net.co

http://www.uggbootsparis.fr

http://www.monclerjacketsuk.me.uk

http://www.canadagoosecanada.com.co

http://oakley.sunglassesonline.us.com

http://www.tomsshoes-outlet.com

http://www.louisvuittonparis.fr

http://www.prada.us.org

http://www.seattleseahawksjerseys.us.com

http://www.fitflops.us.com

http://www.ray-ban-sunglasses.com.co

http://www.christianlouboutin-paris.fr

http://www.cheap--nfljerseys.us.com

http://www.ralphlauren-outlet.net.co

http://www.poloralphlaurenukonline.co.uk

http://www.coachoutletstoreonlinesale.us.com

http://www.christianlouboutin.name

http://www.louis-vuittonoutlet.eu.com

http://www.poloralph-lauren.us.org

http://www.burberry-outletonline.com.co

http://www.adidas-yeezy.us.com

http://www.michaelkorsoutlet-store.us.org

http://www.uggbootaustralia.us.com

http://www.sunglassesoakley.com.co

http://www.nba-jerseys.us.com

http://www.pradahandbags.net

http://www.coachoutletofficial.us.com

http://www.officialmichaelkorsoutlet.us.com

http://www.michaelkorsoutletcanada.com.co

http://www.mcmbags.com.co

http://www.louisvuittonoutletstores.us

http://www.ugg.eu.com

http://www.northface.us.com

http://www.oakleyvaultoutlet.in.net

http://www.louis-vuitton.me.uk

http://www.louisvuittonofficial.us.com

http://www.gucci-inc.com

http://www.jordan6.net

http://www.chicagobullsjerseys.com

http://www.outletsmichaelkors.us.com

http://www.longchamp.us.com

http://www.louboutinshoesoutlet.co.uk

http://www.giuseppe-zanotti.us.com

http://www.tiffanyandcojewelry.com.co

http://www.louisvuitton.me

http://www.ugg-canada.ca

http://www.katespade-outlet.net.co

http://www.beatsbydrdresolo.us

http://www.replicawatches.name

http://www.michaelkorsoutletclearance.us.org

http://www.uggsclearance.us.org

http://www.cheapoakleysunglasses.net.co

http://www.fitflopsuk.me.uk

http://www.true-religion.me.uk

http://www.pandorajewelry.us.org

http://www.nike-airmax.me.uk

http://www.uggboots-onsale.us.org

http://www.montblancpen.us.com

http://www.raybansunglasses.me.uk

http://www.coachfactoryoutlet-onlinestore.us.com

http://www.monclerjacketsonline.us.com

http://www.seattleseahawksjersey.us.com

http://www.thenorthface.net.co

http://www.gucci-outlet.net.co

http://www.cheapjordansshoes.in.net

http://www.hollister.in.net

http://www.burberryoutlet.in.net

http://www.jordan4.net

http://www.kobebryantshoes.name

http://timberland.officialfree.net

http://www.mbt.us.com

http://www.hollister-uk.org.uk

http://www.michaelkorshandbagsonsale.com

http://www.ralphlaurenoutletofficial.us.com

http://www.cheapraybans.us.org

http://www.nikeoutletstores.us.com

http://www.jordan13.org

http://www.canadagoosejacketsoutlet.us.com

http://www.coachoutletonlinesale.eu.com

http://www.cheaptoryburchoutlet.com

http://www.pradaoutlet.net.co

http://www.asicsshoes.name

http://www.chanelbags.in.net

http://www.hollistercoclothing.com

http://www.poloralphlaurenuk.co.uk

http://www.fitflopssaleclearance.us.org

http://www.denverbroncosjerseys.us.com

http://www.louis-vuittonoutlets.us.org

http://www.losangelesclippersjerseys.com

http://www.uggoutletonline.in.net

http://www.christianlouboutinoutlet.com

http://www.uggoutlet.org

http://www.truereligion-jeans.com.co

http://www.vansshoes.name

http://www.nikefactoryoutlet.org

http://www.jordanconcords.net

http://www.coachfactoryoutletclearances.us.com

http://www.gucci--outlet.com.co

http://www.coachfactoryoutlet-online.us.org

http://www.cheap-jordans.us.com

http://www.dallasmavericksjerseys.com

http://www.oakleystore.com.co

http://www.moncler--paris.fr

http://www.gucci.me.uk

http://www.coachcanadaoutlet.com.co

http://www.uggclassic.us.com

http://www.canadagooseca.us.com

http://www.jordanfemmepascher.fr

http://www.uggcheap.us.com

http://www.louis-vuitton-borse.it

http://www.celine-outlet.us

http://www.minnesotavikingsjerseys.us.com

http://www.louisvuitton.de.com

http://www.uggbootscanada.ca

http://www.rolexwatchesoutlet.us

http://www.basketballshoes.name

http://www.canadagoose.com.co

http://www.lebronjames-shoes.net

http://www.raybansunglassess.com.co

http://www.coachoutletcheap.us.com

http://www.montblanc.com.co

http://www.louboutinfemme-pascher.fr

http://www.jordan3.net

http://www.ralphlaurenukofficial.org.uk

http://www.tomsshoes.us.org

http://www.michaelkorsoutletofficial.us.com

201611.28wengdongdong

Comment by dongdong8 6 days ago

Your point of view

You must be signed in to comment.