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

56 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 >…

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

RSS feed for comments on this post · TrackBack URI

Leave a Comment