I am working on AIX 4.3 and attempting to change ownership of files. Below is an excerpt from my script of the area that is causing the problem.
defined($user = getpwnam "$_") or die "Bad user name"; defined($group = getgrnam "staff") or die "Bad group name"; chdir "/home/$_"; chown $user, $group, glob "*"; The input $_ is the username either from a file or User input inside a loop. The user has a choice. When I run the above I get bad username. It is like it is trying to lookup the numeric user ID for $_ and not what $_ actually contains. If I replace $_ with an actual user name in the getpwnam function it works fine. Any comments or suggestions would be appreciated. Thanks in Advance. Grant -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]