in reply to Re: SCALAR output instead of attribute name. in thread SCALAR output instead of attribute name.
1. Disallowing root logins over ssh is fine, but don't they even allow su or sudo? In fact, you should be using those even if you're logging in locally.
Yes, absolutely. But I'm looking to grab a giant list of users from our 90-some *nix boxes. I could use a client-server design, but decided it'd be just as easy to cat /etc/passwd over a (non-privileged) ssh connection and parse the return results on whatever machine the script is being run from.
Make more sense? I'm avoiding Unix::PasswdFile becuase it requires root privileges to use, and I don't want the script to be run as root.
-s.
|