ngocanh has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mkdir and set permission using Net::FTP
by Corion (Patriarch) on Apr 04, 2016 at 08:17 UTC | |
|
Re: mkdir and set permission using Net::FTP
by hippo (Archbishop) on Apr 04, 2016 at 08:11 UTC |