[Chicago-talk] Permission?
Andrew Rodland
arodland at comcast.net
Sat Dec 16 10:44:46 PST 2006
On Saturday 16 December 2006 12:35 pm, Richard Reina wrote:
> Hope everyone is having a great weekend.
> When I execute:
>
>
> $: perl -ni.bak -e 'print unless 1..1' my_log.txt'
>
> I get:
>
> can't rename my_log.txt to my_log.txt.bak: Permission denied, skipping
> file.
>
> However, the permissions for my_log.txt and my_log.txt.bak are:
>
> -rwxrwxrwx root root
>
The permission on the file doesn't matter, you need write permission on the
directory that it's in.
Andrew
More information about the Chicago-talk
mailing list