Disk Enclosures
1748106 Members
5090 Online
108758 Solutions
New Discussion юеВ

Pairdisplay: Execute permission denied.

 
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