Disk Enclosures
cancel
Showing results for 
Search instead for 
Did you mean: 

Pairdisplay: Execute permission denied.

Pairdisplay :Execute pe
Occasional Visitor

Pairdisplay: Execute permission denied.

Hi Team,

We have CA-BC Concept here.we are running pairdisplay command from the root user and it's running fine but i want to run this pairdisplay command from other user.

Default Pairdisplay permission: r_xr__r__
we have changed pairdisplay permission:
r_x r__ r_x
[Permission checked from this path
/HORCM/usr/bin ]

but still unable to execute this command.

Please help me.

Regds
Bhavin
23 REPLIES
pairdisplay
Occasional Advisor

Re: Pairdisplay: Execute permission denied.

Can anyone please advice?
Amar_Joshi
Honored Contributor

Re: Pairdisplay: Execute permission denied.

All the PAIRxxxxxxx commands depend upon other executables (like raidscan, raidqry etc). If you can change the permission for all the files and try it should work, otherwise you should re-install the RM application with root login itself.
Aashique
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Hi,
paridisplay permission will be:

$ ll /usr/bin/pairdisplay
lrwxrwxrwx 1 root sys 26 Nov 20 2006 /usr/bin/pairdisplay -> /HORCM/usr/bin/pairdisplay

$ ll /HORCM/usr/bin/pairdisplay
-r-xr--r-- 2 root sys 587239 Jun 14 2006 /HORCM/usr/bin/pairdisplay

please paste your command and the error.

Thanks & Regards
Aashique
pairdisplay
Occasional Advisor

Re: Pairdisplay: Execute permission denied.

Hi Aashique,

Thanks for an anticipation reply.

I am attached output & error with this msg.

Regards
Bhavin M.
Aashique
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Hi,
Your error message not coming in the attachment.
the previous permission is ok. when you changed the permission i dont know it will work for other user.
I also used pairdisplay with different user.But same UID as root.That user will never get the shell.It will just do the operation only.

Thanks & Regards
Aashique
pairdisplay
Occasional Advisor

Re: Pairdisplay: Execute permission denied.

Hi,

Pls find the attached with this msgs.

Regards
Bhavin M.
Aashique
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Hi,
This output you will not get from other user.i also tried like you but couldn't. then i create another user with same UID as root to do this.new created user will be not get any shell.his shell will be the script to do the BC operation.

Thanks & Regards
Aashique
pairdisplay
Occasional Advisor

Re: Pairdisplay: Execute permission denied.

Hi,

We have created one user with same UID as root and it's working fine with other user but i want that he can only and only run pairdisplay command not other commands like chmod, useradd (admin commands) etc..

Please help me.......


Regards
Bhavin M.
Aashique
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Hi,
write a script that will display the "paridisplay" output then make this script as his shell.

like this:
bcop:xxx:0:3:BC Operation User:/home/bcop:/tmp/its/bcmenu-new.sh

Thanks & Regards
Aashique
Aashique
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Hi,
If the user only want to see the pairdisplay output and if this frequent then put this in root cron, save output to one file. And a normal user create, he will be just read the file.For this purpose no need to create the user as same UID as root.

Thanks & Regards
Aashique
pairdisplay
Occasional Advisor

Re: Pairdisplay: Execute permission denied.

Hi,

I have created one script as name of paird.sh same way I have changed his shell in /etc/passwd like followings:

cms:*:0:20::/home/cms:/tmp/paird

but we are not getting any prompt as paird is not running in backend.

Regards
Bhavin M.

Aashique
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Hi,
at first check that the user cms can run the script or not.

cms:*:0:20::/home/cms:/usr/bin/ksh
then run the script.the UID same as root so the script must be executed and output will come.
if ok then change the passwd.
cms:*:0:20::/home/cms:/tmp/paird.sh


Thanks & Regards
Aashique
TTr
Honored Contributor

Re: Pairdisplay: Execute permission denied.

The shell /tmp/paird must be owned by the cms user and be executable.
pairdisplay
Occasional Advisor

Re: Pairdisplay: Execute permission denied.

Hi,

Please must read the attahcement with this msgs.

Regards
Bhavin
TTr
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Since you agreed we are going on the wrongtrack the way to solve this is to download and install "sudo" and set up a regular user who is allowed to run pairdisplay as root.


TTr
Honored Contributor

Re: Pairdisplay: Execute permission denied.

sudo is part of the HP-UX Internet Express suite and it is on software.hp.com, search for sudo.
pairdisplay
Occasional Advisor

Re: Pairdisplay: Execute permission denied.

Hi,

Is there any way to solve the problem without sudo application load into the server?

Thanks in advance...

Regards
Bhavin
TTr
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Not really, unless you want to allow any user to run pairdisplay.

I do not recommend this but since pairdisplay is a script and you can not set a script to SUID-root, you have to look inside the pairdisplay script and find all the statements that run binary commands. Then you have to change all these binary commands to SUID-root. There may be a lot of binaries in the pairdisplay script and some of them may be from the LVM commands.

Again I do not recommend this.
Aashique
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Hi,
at first check that the user cms can run the script or not.

cms:*:0:20::/home/cms:/sbin/sh
then run the script.
If its fullfill your output then change the /sbin/sh to /tmp/paired
make the script as menu base. like 1 for pairdisplay 2 for pairsync 3 for pairsplit 4 for exit.

Thanks & Regards
Aashique
pairdisplay
Occasional Advisor

Re: Pairdisplay: Execute permission denied.

Hi,

I am going with the sudo application.

Thanks for help.

Regards
Bhavin M.
Aashique
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Hi,
If our suggestions were helpful, please read the following about assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33


Thanks
Jeff Yaskus
Occasional Visitor

Re: Pairdisplay: Execute permission denied.

I'm trying to use sudo to allow a user to run pairdisplay commands ... It allows them to run it, but the commands fail.

bash-3.00$ sudo /HORCM/usr/bin/pairdisplay -g sqpr3
Password:
pairdisplay: [EX_ATTHOR] Can't be attached to HORC manager
Refer to the command log(/HORCM/log/horcc_sqprdbk2.log) for details.

Yet, it runs OK if I sudo to root first.

Its seems sudo doesnt work, because the pairdisplay also calls other system calls ?? making it fail?
Aashique
Honored Contributor

Re: Pairdisplay: Execute permission denied.

Hi,
Before run the paridisplay command you must export the HORCM value
export HORCC_MRCF=1
export HORCMINST=1

It HORCC_MRCF & HORCMINST value depends on your configuration.

Thanks