Operating System - HP-UX
1832754 Members
2907 Online
110045 Solutions
New Discussion

more execute permmission denied

 
SOLVED
Go to solution
Neerav Kothari
Occasional Contributor

more execute permmission denied

Hi,
one of the sys admins deleted 'more' by mistake. I copied it from the Core OS CD into the /usr/bin directory. Changed the owner to bin:bin and gave read and execute privilleges to everyone. I still get a execute permission denied when I try to use it (through man, for example). Any help will be appreciated. Thank you.
7 REPLIES 7
Victor BERRIDGE
Honored Contributor

Re: more execute permmission denied

Hi,
I tried to simulate your situation:
mv more $HOME/.
I get your message..
cd $HOME
mv more /usr/bin/.

It works again
This is what it looks like in HPUX11 (D230)
-r-xr-xr-x 2 bin bin 61440 Nov 7 1997 moreusr/bin>file more
more: PA-RISC1.1 shared executable dynamically linked

Hope it helps
Victor

Antoanetta Naghiu
Esteemed Contributor
Solution

Re: more execute permmission denied

I am not sure if you can just to copy it from the cdrom. You may mount the cdrom, issue swinstall, and go at the command level and select it and install. Or, from what you copied from cdrom, swcopy to make a depot and swinstall after. Or, if you have a secondary box at the same level of OS, ftp it over.
Don't you have a backup of the system to try to recover it from there? It is easiest...
G.E. van Beek
Occasional Advisor

Re: more execute permmission denied

I don't know it exactly but i believe that files on the CDROM are zipped files. When make a copy more en zip it gives the execute permission denied message (tried it).

Try "file more" (must be data when zipped) to find out what type of file more is and try gunzip (or uncompress/unpack) to expand it.
Stefan Farrelly
Honored Contributor

Re: more execute permmission denied


I think the files are on CDROM in crypt format so it wont be possible to decrypt it.
You need to resintall it from CDROM using swinstall, but only install the 1 fileset that contains more, which is OS-Core.CMDS-MIN so do the following command to reinstall it; swinstall -x reinstall=true -s /SD_CDROM OS-Core.CMDS-MIN
It wont require a reboot.

Im from Palmerston North, New Zealand, but somehow ended up in London...
Andy Monks
Honored Contributor

Re: more execute permmission denied

I checked my system. more has a hard link to it from 'page'. Check that /usr/bin/page also exists. It should have a link count of 2 (just like more).

If it doesn't exist, just do 'ln /usr/bin/more /usr/bin/page'.

Then see if reading the man pages work.

You could also try 'more /etc/rc.log' and see if that works.
Fred Martin_1
Valued Contributor

Re: more execute permmission denied

Sorry for not being more helpful but would not your admin have this file on a backup? In terms of getting back to ground zero this would be the quickest solution.
fmartin@applicatorssales.com
Wodisch
Honored Contributor

Re: more execute permmission denied

Hello Neerav,
get the name of the fileset containing "more" with
swlist -l file | grep "bin/more"
re-install that fileset with options "-x reinstall=true" and only the name of that fileset.
If you have an Ignite tape (make_recovery tape), you can restore "more" from there:
mt -f /dev/rmt/0mn fsf 1
tar xvf /dev/rmt/0m bin/more
HTH,
Wodisch