Melakukan Chmod pada Linux per-f dan d

Archive

Mo Tu We Th Fr Sa Su
1234
567891011
12131415161718
19202122232425
262728293031


Poll: Indonesia

Masihkah Indonesia lebih baik ?

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

Did you enjoy this article?

(total 0 votes)
Adjust font size: Decrease font Enlarge font
image

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

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'
© 2000-2008 Gembels.com by dono a.k.a Widhe