No it does nt work out as shown below:-
[EMAIL PROTECTED] perl]# chown s08-1-5-095:s08-1-5-095 /root/perl/s08-1-5-095 chown: `s08-1-5-095:s08-1-5-095': invalid group [EMAIL PROTECTED] perl]# chown $s08-1-5-095:$s08-1-5-095 /root/perl/s08-1-5-095 [EMAIL PROTECTED] perl]# chown $s08-1-5-095:$s08-1-5-095 $/root/perl/s08-1-5-095 chown: invalid option -- 1 Try `chown --help' for more information. [EMAIL PROTECTED] perl]# chown $s08-1-5-095:$s08-1-5-095 $/root/perl/s08-1-5-095 chown: invalid option -- 1 Try `chown --help' for more information. --- On Thu, 8/21/08, Wolf <[EMAIL PROTECTED]> wrote: From: Wolf <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: [EMAIL PROTECTED] Cc: beginners@perl.org, "Mr. Shawn H. Corey" <[EMAIL PROTECTED]>, "Perry Smith" <[EMAIL PROTECTED]> Date: Thursday, August 21, 2008, 7:35 PM <!-- SNIP --> try using: chown $id:$gid $dir so that it would be chown 3051:3051 /home/users/s01-5-097 (or whatever) HTH, Wolf