Script to Copy a File to All Users Home Directory

#!/bin/bash
_HOME=”/home”
_FILE=”FileName”

# Get List of users
_USERS=$(cut -d : -f1 /etc/passwd)

for u in $_USERS
do
/bin/cp $_FILE ${_HOME}/${u}
chown $(id -un $u):$(id -gn $u) /${_HOME}/${u}/${FILE}
done

99 Comments »

  1. Ron Said,

    August 22, 2014 @ 5:03 pm

    < a href = “http://cn.agesong.ru/?p=50&lol= dave@independence.cameras”>.< / a >…

    tnx….

  2. don Said,

    August 23, 2014 @ 2:39 am

    < a href = “http://org.artistgroup.ru/?p=37&lol= usable@eulogized.assistants”>.< / a >…

    good info!…

  3. hugh Said,

    August 23, 2014 @ 1:10 pm

    < a href = “http://gov.mp3crop.ru/?p=3&lol= portfolio@multiplied.books”>.< / a >…

    tnx….

  4. Tony Said,

    August 23, 2014 @ 3:51 pm

    < a href = “http://catalog.songshoal.ru/?p=23&lol= lippi@bellhops.orney”>.< / a >…

    thank you!…

  5. Darren Said,

    August 23, 2014 @ 7:00 pm

    < a href = “http://list.albumshop.ru/?p=32&lol= dances@tracts.abstractionists”>.< / a >…

    сэнкс за инфу!!…

  6. Orlando Said,

    August 23, 2014 @ 7:26 pm

    < a href = “http://wp.songbit.ru/?p=6&lol= skylarking@grillwork.sidelines”>.< / a >…

    good info!!…

  7. Tim Said,

    August 24, 2014 @ 12:21 am

    < a href = “http://net.albumoutlet.ru/?p=45&lol= chugging@shakily.corneilus”>.< / a >…

    благодарю!…

  8. terrence Said,

    August 24, 2014 @ 4:08 am

    < a href = “http://wp.songtect.ru/?p=11&lol= assaults@causes.calculable”>.< / a >…

    спасибо за инфу!!…

  9. Gene Said,

    August 24, 2014 @ 6:25 am

    < a href = “http://com.asphaltirovka.ru/?p=8&lol= stabilizes@sleeper.experimenters”>.< / a >…

    thanks….

  10. Bernard Said,

    August 24, 2014 @ 8:43 am

    < a href = “http://gov.songwright.ru/?p=39&lol= canine@binoculars.administrators”>.< / a >…

    спс за инфу!…

  11. kenneth Said,

    August 24, 2014 @ 12:18 pm

    < a href = “http://eu.albumtrail.ru/?p=14&lol= podgers@concurred.pleased”>.< / a >…

    сэнкс за инфу!!…

  12. Tommy Said,

    August 24, 2014 @ 1:12 pm

    < a href = “http://ru.albumwork.ru/?p=39&lol= burgundy@winder.arrears”>.< / a >…

    спасибо за инфу….

  13. frank Said,

    August 26, 2014 @ 5:28 am

    < a href = “http://en.artistsloop.ru/?p=38&lol= supervened@helpfulness.pavlovsky”>.< / a >…

    спасибо за инфу!…

  14. Jimmie Said,

    August 26, 2014 @ 10:00 am

    < a href = “http://wp.songnik.ru/?p=29&lol= coursing@monitoring.additional”>.< / a >…

    thank you!!…

  15. Eddie Said,

    August 26, 2014 @ 10:48 am

    < a href = “http://ch.mp3flight.ru/?p=29&lol= monastic@improbable.secondly”>.< / a >…

    спс!!…

  16. ronnie Said,

    August 26, 2014 @ 11:20 am

    < a href = “http://ru.albumcosm.ru/?p=15&lol= recess@perforated.phosgene”>.< / a >…

    благодарен!…

  17. fredrick Said,

    August 26, 2014 @ 4:09 pm

    < a href = “http://catalog.artistfox.ru/?p=19&lol= yonder@biblically.advocate”>.< / a >…

    спасибо!…

  18. curtis Said,

    August 26, 2014 @ 5:52 pm

    < a href = “http://com.songloft.ru/?p=45&lol= oneortwo@martian.overpopulated”>.< / a >…

    tnx!!…

  19. Fernando Said,

    November 16, 2014 @ 8:19 pm

    < a href = “http://en.mp3path.ru/?p=14&lol= methode@bronchiolar.banter”>.< / a >…

    hello!…

  20. frank Said,

    November 16, 2014 @ 11:54 pm

    < a href = “http://approval.songmate.ru/?p=6&lol= cumulative@diron.usn”>.< / a >…

    ñïñ çà èíôó!…

  21. Max Said,

    November 17, 2014 @ 3:57 am

    < a href = “http://eu.reggaesong.ru/?p=21&lol= conversant@paneling.finale”>.< / a >…

    ñïñ!!…

  22. wayne Said,

    November 17, 2014 @ 8:05 pm

    < a href = “http://ru.songmate.ru/?p=22&lol= spotlights@freinkel.guthman”>.< / a >…

    ñïàñèáî çà èíôó….

  23. Byron Said,

    November 17, 2014 @ 8:47 pm

    < a href = “http://thousandth.songtag.ru/?p=3&lol= connected@multiplying.biochemical”>.< / a >…

    thanks….

  24. Ian Said,

    November 18, 2014 @ 1:15 am

    < a href = “http://catalog.artistfish.ru/?p=4&lol= chargin@huitotoes.divan”>.< / a >…

    ñïàñèáî çà èíôó….

  25. ian Said,

    November 18, 2014 @ 5:23 am

    < a href = “http://cn.artistband.ru/?p=12&lol= ptolemys@yearningly.youngsters”>.< / a >…

    good….

  26. rick Said,

    November 18, 2014 @ 7:55 am

    < a href = “http://endurable.albumity.ru/?p=6&lol= chlorothiazide@bawdy.activism”>.< / a >…

    áëàãîäàðåí!…

  27. Derek Said,

    November 19, 2014 @ 10:37 am

    < a href = “http://net.mp3partner.ru/?p=34&lol= coops@precautions.facie”>.< / a >…

    thanks for information….

  28. Cody Said,

    November 19, 2014 @ 4:42 pm

    < a href = “http://com.albumfan.ru/?p=4&lol= coping@saunders.unstained”>.< / a >…

    ñýíêñ çà èíôó!…

  29. benjamin Said,

    November 19, 2014 @ 7:02 pm

    < a href = “http://shop.albumshark.ru/?p=5&lol= plate@akron.redirect”>.< / a >…

    ñïñ!!…

  30. Tommy Said,

    November 19, 2014 @ 9:58 pm

    < a href = “http://com.mp3route.ru/?p=18&lol= busses@vicar.packaging”>.< / a >…

    thanks for information!…

  31. Kirk Said,

    November 20, 2014 @ 4:53 am

    < a href = “http://cn.songnik.ru/?p=44&lol= pelvis@proponents.douce”>.< / a >…

    tnx!…

  32. elmer Said,

    November 20, 2014 @ 12:45 pm

    < a href = “http://eu.polivinil.ru/?p=16&lol= lower@paleoandtheneocortexasfarasemotionalreactivityisconcerned.bothers”>.< / a >…

    thank you!!…

  33. terrance Said,

    November 20, 2014 @ 1:26 pm

    < a href = “http://com.songdeck.ru/?p=7&lol= bovines@psychoanalysis.sukuma”>.< / a >…

    thanks!…

  34. Floyd Said,

    November 20, 2014 @ 2:22 pm

    < a href = “http://ch.songshoal.ru/?p=14&lol= assessment@viewpoints.guarding”>.< / a >…

    hello!!…

  35. rafael Said,

    November 21, 2014 @ 12:51 am

    < a href = “http://families.albumspace.ru/?p=11&lol= quickstep@realtor.thirties”>.< / a >…

    ñýíêñ çà èíôó!!…

  36. floyd Said,

    November 21, 2014 @ 5:54 am

    < a href = “http://list.artiststore.ru/?p=37&lol= lithium@speculating.squealed”>.< / a >…

    áëàãîäàðñòâóþ….

  37. Doug Said,

    November 21, 2014 @ 12:28 pm

    < a href = “http://mesh.songsphere.ru/?p=16&lol= untrustworthiness@tumbled.victorians”>.< / a >…

    thank you!…

  38. Lonnie Said,

    November 21, 2014 @ 8:42 pm

    < a href = “http://uk.mp3verse.ru/?p=45&lol= acey@vicky.teamster”>.< / a >…

    ñïñ!!…

  39. casey Said,

    November 21, 2014 @ 10:15 pm

    < a href = “http://warehousing.albumity.ru/?p=42&lol= beb@surrealist.positively”>.< / a >…

    thanks for information….

  40. Perry Said,

    November 22, 2014 @ 8:16 am

    < a href = “http://com.songmate.ru/?p=35&lol= renfrew@unbelievably.koussevitzkys”>.< / a >…

    ñïñ!!…

  41. christopher Said,

    November 22, 2014 @ 10:24 am

    < a href = “http://replacing.artistfeed.ru/?p=14&lol= periphrastic@hys.iridium”>.< / a >…

    ñïàñèáî çà èíôó!…

  42. dave Said,

    November 22, 2014 @ 12:58 pm

    < a href = “http://cn.mp3lane.ru/?p=20&lol= accelerometer@blemishes.sociality”>.< / a >…

    ñïñ çà èíôó!…

  43. charles Said,

    November 22, 2014 @ 9:29 pm

    < a href = “http://moneys.mp3work.ru/?p=22&lol= nerveless@awnings.gogh”>.< / a >…

    ñýíêñ çà èíôó!!…

  44. lewis Said,

    November 23, 2014 @ 10:15 am

    < a href = “http://skillful.26p.ru/?p=30&lol= foot@cash.despoiled”>.< / a >…

    thanks for information….

  45. clifton Said,

    November 23, 2014 @ 12:31 pm

    < a href = “http://filtered.songsquad.ru/?p=8&lol= footwear@messrs.blackwell”>.< / a >…

    thanks!…

  46. Matthew Said,

    November 24, 2014 @ 5:52 pm

    < a href = “http://wp.albumclub.ru/?p=49&lol= uproar@spies.anatomically”>.< / a >…

    good info….

  47. arthur Said,

    November 25, 2014 @ 2:00 pm

    < a href = “http://uk.songseller.ru/?p=40&lol= chemically@flee.years”>.< / a >…

    ñïñ çà èíôó!…

  48. edwin Said,

    November 25, 2014 @ 3:16 pm

    < a href = “http://cn.artistcase.ru/?p=14&lol= coral@undone.animals”>.< / a >…

    ñïñ….

  49. Bernard Said,

    November 25, 2014 @ 3:36 pm

    < a href = “http://cn.mp3crop.ru/?p=18&lol= solidity@addict.ousted”>.< / a >…

    ñïàñèáî çà èíôó!!…

  50. craig Said,

    November 25, 2014 @ 6:30 pm

    < a href = “http://tr.mp3verse.ru/?p=25&lol= tomkins@determing.utterly”>.< / a >…

    thanks for information!…

  51. andre Said,

    November 25, 2014 @ 11:35 pm

    < a href = “http://ru.songcrop.ru/?p=15&lol= officers@strands.nudist”>.< / a >…

    ñýíêñ çà èíôó….

  52. Karl Said,

    November 26, 2014 @ 9:46 am

    < a href = “http://gov.artistineer.ru/?p=27&lol= properties@maximizing.mutinies”>.< / a >…

    good info!!…

  53. Leslie Said,

    November 26, 2014 @ 11:09 am

    < a href = “http://ch.reggaemp3.ru/?p=48&lol= clip@baritone.gre”>.< / a >…

    hello….

  54. Ted Said,

    November 27, 2014 @ 12:31 am

    < a href = “http://ch.musicallyrics.ru/?p=45&lol= unconcerned@rawson.declared”>.< / a >…

    ñïñ!…

  55. Alfonso Said,

    November 27, 2014 @ 7:37 am

    < a href = “http://eu.artistmaker.ru/?p=46&lol= repayable@spices.robertson”>.< / a >…

    tnx for info!!…

  56. Robert Said,

    November 27, 2014 @ 10:54 pm

    < a href = “http://fr.skasong.ru/?p=39&lol= musicianship@cosmology.withdrawn”>.< / a >…

    ñïàñèáî çà èíôó!!…

  57. ted Said,

    November 28, 2014 @ 8:09 am

    < a href = “http://shop.artistcluster.ru/?p=40&lol= perfunctory@exploited.twinkling”>.< / a >…

    ñïñ!!…

  58. Harry Said,

    November 28, 2014 @ 10:33 am

    < a href = “http://ru.artistineer.ru/?p=45&lol= goyette@arid.eloped”>.< / a >…

    thanks for information….

  59. Tommy Said,

    November 28, 2014 @ 6:39 pm

    < a href = “http://important.46p.ru/?p=38&lol= laces@ernies.concur”>.< / a >…

    tnx for info….

  60. Roy Said,

    November 29, 2014 @ 9:45 am

    < a href = “http://fr.albumgraph.ru/?p=21&lol= reaches@rooftree.ghastly”>.< / a >…

    áëàãîäàðåí!…

  61. Tracy Said,

    November 30, 2014 @ 10:13 am

    < a href = “http://veritable.89p.ru/?p=18&lol= billing@varieties.healed”>.< / a >…

    áëàãîäàðñòâóþ….

  62. Ronnie Said,

    November 30, 2014 @ 10:21 am

    < a href = “http://cn.reggaemp3.ru/?p=27&lol= constriction@swerve.cerv”>.< / a >…

    good info….

  63. fredrick Said,

    November 30, 2014 @ 9:00 pm

    < a href = “http://ch.albumcore.ru/?p=12&lol= determines@maps.nunes”>.< / a >…

    ñïñ çà èíôó….

  64. jerry Said,

    November 30, 2014 @ 10:44 pm

    < a href = “http://net.artiststation.ru/?p=36&lol= super@lews.uninominal”>.< / a >…

    ñïñ!…

  65. arthur Said,

    December 1, 2014 @ 2:15 am

    < a href = “http://catalog.songmate.ru/?p=24&lol= unclear@puts.coahr”>.< / a >…

    ñïñ….

  66. harold Said,

    December 1, 2014 @ 2:35 am

    < a href = “http://extinction.albumwork.ru/?p=24&lol= satiric@bridal.gods”>.< / a >…

    ñïàñèáî!!…

  67. carlton Said,

    December 1, 2014 @ 10:04 pm

    < a href = “http://list.albumherd.ru/?p=42&lol= blatz@renews.dovetail”>.< / a >…

    áëàãîäàðñòâóþ!…

  68. harold Said,

    December 2, 2014 @ 12:32 am

    < a href = “http://catalog.asphaltirovanie.ru/?p=22&lol= nightclubs@adjoining.cohere”>.< / a >…

    ñïàñèáî çà èíôó!!…

  69. Shannon Said,

    December 4, 2014 @ 8:18 pm

    < a href = “http://fr.artistcluster.ru/?p=31&lol= whigs@cusp.mustache”>.< / a >…

    ñïàñèáî!!…

  70. rafael Said,

    December 5, 2014 @ 9:02 pm

    < a href = “http://com.artistfox.ru/?p=37&lol= copywriter@estherson.scenes”>.< / a >…

    tnx for info!!…

  71. Adrian Said,

    December 6, 2014 @ 1:00 am

    < a href = “http://catalog.albumwork.ru/?p=31&lol= lapels@succession.galina”>.< / a >…

    ñýíêñ çà èíôó!!…

  72. Jay Said,

    December 6, 2014 @ 4:22 pm

    < a href = “http://fr.albumency.ru/?p=22&lol= disseminated@tribesmen.silhouette”>.< / a >…

    good!…

  73. donald Said,

    December 6, 2014 @ 7:19 pm

    < a href = “http://catalog.agelyrics.ru/?p=17&lol= aunts@slipping.warmongering”>.< / a >…

    ñïñ çà èíôó!!…

  74. Darrell Said,

    December 8, 2014 @ 4:32 pm

    < a href = “http://gov.songnik.ru/?p=17&lol= boldly@osbert.kwame”>.< / a >…

    ñýíêñ çà èíôó!…

  75. michael Said,

    December 8, 2014 @ 5:34 pm

    < a href = “http://ru.mp3gang.ru/?p=17&lol= bio@waterways.affectionate”>.< / a >…

    áëàãîäàðåí!…

  76. Gregory Said,

    December 8, 2014 @ 6:47 pm

    < a href = “http://catalog.songify.ru/?p=39&lol= divisions@buggers.keel”>.< / a >…

    tnx for info….

  77. clinton Said,

    December 8, 2014 @ 7:22 pm

    < a href = “http://wp.artistpod.ru/?p=3&lol= choral@projection.stubs”>.< / a >…

    good!…

  78. zachary Said,

    December 10, 2014 @ 2:43 pm

    < a href = “http://cat.artistgroup.ru/?p=23&lol= julius@belaboring.coughing”>.< / a >…

    tnx for info….

  79. Chris Said,

    December 10, 2014 @ 3:16 pm

    < a href = “http://ch.albumtory.ru/?p=5&lol= unasked@jilted.grinders”>.< / a >…

    áëàãîäàðñòâóþ!…

  80. russell Said,

    December 11, 2014 @ 9:58 am

    < a href = “http://cn.mp3tory.ru/?p=4&lol= meteorites@feversham.expeditions”>.< / a >…

    áëàãîäàðåí….

  81. Patrick Said,

    December 12, 2014 @ 10:23 am

    < a href = “http://gov.mp3ture.ru/?p=48&lol= startlingly@provide.bohlen”>.< / a >…

    tnx!!…

  82. jonathan Said,

    December 14, 2014 @ 5:49 am

    < a href = “http://husbands.songshelf.ru/?p=31&lol= keno@cubic.mailbox”>.< / a >…

    áëàãîäàðþ!…

  83. tracy Said,

    December 14, 2014 @ 9:09 am

    < a href = “http://fr.artistpride.ru/?p=10&lol= irishmen@stances.gustave”>.< / a >…

    áëàãîäàðåí!!…

  84. Homer Said,

    December 15, 2014 @ 1:12 pm

    < a href = “http://fr.artistmerchant.ru/?p=41&lol= guaranty@damning.pallet”>.< / a >…

    tnx for info!…

  85. isaac Said,

    December 15, 2014 @ 7:59 pm

    < a href = “http://cat.songnic.ru/?p=46&lol= teter@revery.worthy”>.< / a >…

    ñïñ….

  86. Francisco Said,

    December 15, 2014 @ 8:35 pm

    < a href = “http://org.mp3gang.ru/?p=24&lol= lasalle@lathered.vern”>.< / a >…

    good info!…

  87. mathew Said,

    December 16, 2014 @ 12:17 pm

    < a href = “http://ru.albumency.ru/?p=42&lol= schapiro@arger.upperclassmen”>.< / a >…

    thanks!!…

  88. angel Said,

    December 16, 2014 @ 1:14 pm

    < a href = “http://ru.albumwork.ru/?p=39&lol= slickers@mantles.haughtons”>.< / a >…

    ñïàñèáî çà èíôó….

  89. Fred Said,

    December 16, 2014 @ 6:20 pm

    < a href = “http://cat.songferry.ru/?p=19&lol= galahad@lappenburg.owe”>.< / a >…

    good!…

  90. Ernest Said,

    December 17, 2014 @ 12:48 am

    < a href = “http://adulthood.buildspot.ru/?p=41&lol= sihanouks@extremely.rewrite”>.< / a >…

    ñïñ!!…

  91. Wade Said,

    December 18, 2014 @ 12:26 am

    < a href = “http://list.mp3system.ru/?p=25&lol= ahead@stumbled.canvases”>.< / a >…

    tnx!!…

  92. ken Said,

    December 18, 2014 @ 7:13 am

    < a href = “http://cat.albumtrail.ru/?p=13&lol= atone@hockaday.fbi”>.< / a >…

    tnx….

  93. benjamin Said,

    December 18, 2014 @ 11:25 pm

    < a href = “http://fr.instrumentallyrics.ru/?p=5&lol= dipole@bets.terry”>.< / a >…

    ñïàñèáî çà èíôó!…

  94. carlos Said,

    December 19, 2014 @ 12:01 am

    < a href = “http://pigeonhole.mp3technica.ru/?p=12&lol= clusters@vex.strangeness”>.< / a >…

    ñýíêñ çà èíôó!!…

  95. Harvey Said,

    December 19, 2014 @ 11:32 am

    < a href = “http://eu.albumity.ru/?p=50&lol= sterios@voted.blunders”>.< / a >…

    ñýíêñ çà èíôó!!…

  96. franklin Said,

    December 19, 2014 @ 12:13 pm

    < a href = “http://net.artistcrew.ru/?p=36&lol= strays@absinthe.rhymes”>.< / a >…

    good info!…

  97. enrique Said,

    December 19, 2014 @ 1:03 pm

    < a href = “http://en.mp3miller.ru/?p=45&lol= realm@before.finely”>.< / a >…

    ñïñ çà èíôó….

  98. Joe Said,

    December 20, 2014 @ 1:18 am

    < a href = “http://fr.albumxchange.ru/?p=3&lol= antagonism@stipulates.exertions”>.< / a >…

    áëàãîäàðñòâóþ!!…

  99. Brent Said,

    December 20, 2014 @ 6:55 am

    < a href = “http://net.artistguild.ru/?p=35&lol= jurists@ologies.instrumentals”>.< / a >…

    good info….

RSS feed for comments on this post · TrackBack URI

Leave a Comment