December 10th, 2008

Memperbaiki Permission File atau Folder

Setelah sekian lama mempergunakan server, maka kita juga harus memerhatikan masa pakai dari benda tersebut, terutama di bagian harddisk, dan power supply, oleh karenanya, maka server lama pun diganti untuk menghindari hal yang tidak diinginkan dimasa mendatang.

Terkadang disaat perpindahan server, terjadi salah konfigurasi permission pada file atau folder, ini dapat disebabkan oleh konfigurasi di server terbaru berbeda dengan server lama, maupun juga karena kesalahan sewaktu memindahkan.

Jika file atau folder permission yang salah hanya sedikit, maka kita tidak memerlukan waktu lama untuk memperbaikinya,  namun bagaimana apabila filenya banyak?
Mempergunakan script seperti dibawah ini, amat membantu saya

find /path/to/folder/ -type d -print0 | xargs -0 chmod 755    (untuk mengganti permission folder)
find /path/to/file/ -type f -print0 | xargs -0 chmod 644    (untuk mengganti permission file)

Tentunya dengan asumsi bahwa permission folder adalah 755, dan file 644

ini juga dapat memperbaiki kesalahan dalam ownership (chown)

13 Responses to “Memperbaiki Permission File atau Folder”

  1. 1
    geblek Says:

    terima kasih tipsnya, oh ya url permalink R di kata foldernya ilang mang :)

  2. 2
    Economy Says:

    Hey
    sory to write to you like this, but i could not find the contact form. I really like your blog and i was wondering if you would maybe like a link exchange with my website http://www.sayeconomy.com . My site has many good articles and gets around 1300 different visitors each day. I think we would both benefit out of this exchange alot.

    Next to link exchange i would like to offer you an option to publish some articles of yours about economy on my blog, send them to me and i will publish them. You can add link to your blog under each article and i will publish it as a source. And also via versa, if you want i can send you some articles of mine to publish on your blog. Free content! All i want is a link in return.

    Well let me know on info@sayeconomy.com . I would really like a link exchange with your blog (i like it alot).

    Thank you in advance for your reply.

    Cheers,
    Matt

  3. 3
    dudi Says:

    paling enak sebelum di migrasi semuanya di tar.gz atau di tar.bz2 dulu ren, nanti tinggal ekstrak lagi

  4. 4
    Hendy Irawan Says:

    Perintah yang lebih singkat dan lebih foolproof bila jumlah filenya banyak:

    find -type d -exec chmod 755 ‘{}’ \;
    find -type f -exec chmod 644 ‘{}’ \;

  5. 5
    MasterClickCom Says:

    Hmm.m.. mgkn yg satu ini berguna di kemudian hari. save dulu. thx utk tips.nya

  6. 6
    puty Says:

    teknisss….
    gak ngertiiii :P

  7. 7
    Arikaka.com Says:

    Mundur teratur..

  8. 8
    Kang Adek Says:

    Sip mas topiknya, sekarang saya tidak bingung lagi dengan masalah permission file gituh..
    hehehehe…

    Tukeran link yuk mas, saya juga suka membahas tentang berapa trik Windows

    Link blog nya mas sudak saya pasang

  9. 9
    Kang Adek Says:

    Sip mas topiknya, sekarang saya tidak bingung lagi dengan masalah permission file gituh..
    hehehehe…

    Tukeran link yuk mas, saya juga suka membahas tentang berapa trik Windows

    Link blog nya mas sudak saya pasang di blog saya di http://kang-adek.blogspot.com
    thx…

  10. 10
    custom essay Says:

    Essays belong to a literary species whose extreme variability can be studied most effectively within a three-poled frame of reference. There is the pole of the personal and the autobiographical; there is the pole of the objective, the factual, the concrete-particular; and there is the pole of the abstract-universal. Most essayists are at home and at their best in the neighborhood of only one of the essay’s three poles, or at the most only in the neighborhood of two of them.
    Like the novel, the essay is a literary device for saying almost everything about almost anything, usually on a certain topic. By tradition, almost by definition, the essay is a short piece, and it is therefore impossible to give all things full play within the limits of a single essay. But a collection of essays can cover almost as much ground, and cover it almost as thoroughly, as can a long novel. Montaigne’s Third Book is the equivalent, very nearly, of a good slice of the Comédie Humaine.

  11. 11
    Term Papers Says:

    Very well explained. I would like to say that it is very interesting to read your blog.

  12. 12
    college essays Says:

    This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.

  13. 13
    College Term Papers Says:

    Your posting is very good and theme base for which it is liking to every people. Thanks a lot!!!

Leave a Reply