[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] [RaQ3] Using chown in Perl scripts



> Try it thus
> 
> chown user.group dir/
> or
> chown uid:gid dir/
> 
> example:
> # touch foo
> # ls -l foo
> -rw-r--r--    1 root     root          440 Jan 20 19:40 foo
> # chown 1:2 foo
> # ls -l foo
> -rw-r--r--    1 bin      daemon        440 Jan 20 19:40 foo

Works fine from a telnet/ssh prompt, like you've done here AND I 
showed in my previous post. But I'm talking about using chown within a 
Perl script. Are you successful at that? Read the post more carefully.