Melakukan Chmod pada Linux per-f dan d

Archive

Mo Tu We Th Fr Sa Su
1234567
891011121314
15161718192021
22232425262728
293031


Poll: Social Media

Which social media you used ?

  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this
  • Facebook

Did you enjoy this article?

(total 5 votes)
Adjust font size: Decrease font Enlarge font
Melakukan Chmod pada Linux per-f dan d

Melakukan Chmod pada Linux per-files dan perdirektori.

I dont know what wrong with my server or my computer. Everytime I compress the files and upload via cpanel and extract with unzip cpanel the files always have permission 600 and directory got 700.

OMG, if I do # > chmod -R 755 . of course all files include directory can be executed.

Then how ? I got my way.. uncle google help me..

#> find . -type d -exec chmod 755 {} ;
#> find . -type f -exec chmod 644 {} ;

Ok that simple but also simple to forget :) Just a little notice in my web.

 

 

  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this
  • Facebook

Post your comment comment Comments (1 posted)

  • Posted by dono, 17 February, 2008 23:01:33
    dont forget about the find . -type d -exec chmod 755 {} /; / behind the code or u will got find: missing argument to `-exec'
Semua yang ada pada website ini adalah ilmu, bacaan dan opini pribadi dalam journal hidup kami di Internet.
© 2000-2010 Gembels.com by dono a.k.a Widhe