I have a script which transfers files between 2 servers. Before transferring, the script uses mkdir to recursively create the same path as that of the files to be transferred . I'm using Perl's Net::FTP. The problem is that I realised all the directory created has the permission drwxr-xsr-x, so a different user will be unable to create more directory or add anymore file to all those directory created by the current user.
So is there anyway for me to mkdir recursively AND set permission to these folders to eg. drwxrwxsrwx or drwxrwxsr-x at the same time, so that other people can still read/write and manipulated the generated folder? Thanks in advance.
In reply to mkdir and set permission using Net::FTP by ngocanh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |