0

I have an Ubuntu server, i have a directory /testftp/. In this directory i have many other directories and files in them, how can i set to all existing and new directories and files in this directories rights - 755?

/testftp/ group is testclient

Thanks!

upd using chmod -R 755 /testftp/ all ok, but when i create/upload new file or directory it has 600 rights

2 Answers 2

1

check the following manual pages

man chmod
man umask
0

Try chmod -R 755 /testscript/

-R means recursive and it applies to all sub directories.

3
  • avajava.com/tutorials/lessons/…. Then u have to set the umask value. Have a look into this. Nov 27, 2012 at 12:25
  • i have a 600 rights when i upload this files via ftp, maybe i need to change something in ftp config?
    – Roman
    Nov 27, 2012 at 12:29
  • If u r using proftpd then u can change umask in /etc/proftpd.conf Nov 27, 2012 at 12:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.