Operating System - HP-UX
1833873 Members
1853 Online
110063 Solutions
New Discussion

Re: getting "execute permission denied" running remote tape backups

 
Jim Mills_4
Advisor

getting "execute permission denied" running remote tape backups

I'm trying to do a remote tape backup through SAM and am getting the following...

/usr/bin/sh: /etc/rmt: Execute permission denied.

on the target machine.

Any help would be greatly appreciated!
9 REPLIES 9
Jose Mosquera
Honored Contributor

Re: getting "execute permission denied" running remote tape backups

Hi,

Take note about sudo software at http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.7p5/

Rgds.
Cheryl Griffin
Honored Contributor

Re: getting "execute permission denied" running remote tape backups

Check out /etc/rmt, it should be a link:
# ll rmt
lrwxr-xr-t 1 root sys 13 Oct 8 2003 rmt -> /usr/sbin/rmt

# ll /usr/sbin/rmt
-r-xr-xr-x 1 bin bin 16384 Nov 9 2000 /usr/sbin/rmt

Check file size, owner:group, permissions too.
"Downtime is a Crime."
Jim Mills_4
Advisor

Re: getting "execute permission denied" running remote tape backups

I was wondering if I needed to use sudo, was hoping not to as this is supposed to be a basic feature of HP-UX (the remote tape backup).

As for the permissions suggestion, the only difference I had was that I needed to add Write to the Owner (user) permission (chmod u+w). But that didn't help either.

I'm sure it's gotta be something simple (at least I hope it is).
melvyn burnard
Honored Contributor

Re: getting "execute permission denied" running remote tape backups

I think you may have to have the .rhosts file set up to allow you to do this.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Jim Mills_4
Advisor

Re: getting "execute permission denied" running remote tape backups

I do have .rhosts file in the / directory as I am doing this as root. I have no problem using rcp for example.
bhavin asokan
Honored Contributor

Re: getting "execute permission denied" running remote tape backups

hi,

check the exec option is not hashed in /etc/services on remote server.

on your server make a .netrc file in the home directory of the user for not asking the password.

see the netrc manpage for the entries



The following is a valid entry for the host hpxdzg whose guest account
has the password sesame:

machine hpxdzg login guest password sesame
bhavin asokan
Honored Contributor

Re: getting "execute permission denied" running remote tape backups

hi,

check the /var/adm/inetd.sec also for that exec is not denied or restricted for some machines.

regds,
Jose Mosquera
Honored Contributor

Re: getting "execute permission denied" running remote tape backups

Hi again,

Please excuse my mistaken/nonsense previous answer!

Rgds
Jim Mills_4
Advisor

Re: getting "execute permission denied" running remote tape backups

It seems I have stumped HP...they've escalated this problem with engineering.

Thanks to all that tried to help me out.