On Jan 23, 2008 7:02 AM, Vahid Moghaddasi <[EMAIL PROTECTED]> wrote:

> Assigning different UID is my long term goal but in short term, I can
> not change anything. These users are system users not just ordinary
> users, changing their UID will create problems.

I don't know what you're trying to accomplish by mixing several passwd
files, then. I'm not trying to be obtuse, but I can't make sense of
what you're doing.

By "system users", do you mean accounts that are used by daemon
processes? You're right; it's not trivial to change the UID that a
system uses for a daemon process, in general. Still, I don't see why
you should need to do that.

If I were thinking of combining several passwd files, it would be
because I wanted to unify several machines that had been heretofore
administered separately. I'd start by migrating users on each machine
to new UIDs and usernames as needed to eliminate conflicts. I'd
probably migrate them all the way to NIS, in fact. And unless a
daemon's UID needs to be changed for some reason, I wouldn't change
it.

In fact, now that I think of it, I'd start even earlier: I'd start by
looking in the archives of discussion areas for system administrators.
Surely somebody else has had to unify machines like this.

> my $result = grep( /$system/, $geco);

Do you want something like this?

  my $result = ( index($geco, $system) != -1 );

Cheers!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to