in reply to Re^5: File permissions problem (updated)
in thread File permissions problem
Hi Hauke,
Sorry about the delay in responding, lost this response. I need to respond linearly to the comments.
The response to umask command is 0002 which gives file permissions 0664. I should have looked at the permissions before responding instead of relying on my memory.:)
There is a section that appears similar to your possible fix:
Regards, Wayne# Custom file save routine to handle unicode files sub SaveUTF { my ( $w, $filename ) = @_; $filename = $w->FileName unless defined $filename; my $dir = dirname($filename); my $perms = ( stat($dir) )[2] & 07777; unless ( $perms & 0200 ) { $perms = $perms | 0200; chmod $perms, $dir or $w->BackTrace("Can not write to directory $dir: $!\n") and return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: File permissions problem (updated)
by haukex (Archbishop) on Dec 16, 2016 at 16:06 UTC | |
by wdhammond (Novice) on Dec 16, 2016 at 18:09 UTC | |
by haukex (Archbishop) on Dec 17, 2016 at 12:32 UTC | |
by wdhammond (Novice) on Dec 18, 2016 at 16:54 UTC | |
by haukex (Archbishop) on Dec 19, 2016 at 13:16 UTC |