I have a script which log in a remote box using Net::SSH::Perl.
this script belongs to user lp and lp group.
if i run this script as root, it runs fine.
however i need to run this script as user 'lp' ( i guess it's the line print for short). however i got error that
mkdir /root/.ssh: Permission denied at /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Util/Hosts.pmline 50
i am not sure why it is trying to touch root. any thoughts ?
Qiang
update: i just chown this script to a common user, it runs fine for this user.