- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: exec permission denied to root with mode 777?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 06:38 AM
тАО04-30-2008 06:38 AM
I have a file of mode 777
it's parent directory and all directories are 777.
I'm logged in as root.
I try to run the file.
It says "permission denied".
I even tried this as root on the console.
I also tried running it as other users.
Now if I make my own program: junk.sh
That works fine.
root@mybox:/usr/ud71/bin>file ./accessory
./accessory: ELF-32
root@mybox:/usr/ud71/bin>ls -l ./accessory
-r-xr-xr-x 1 277 999 9799 Nov 27 21:15 ./accessory
I'm hitting a wall here. Any ideas what is going on?
root@mybox:/usr/ud71/bin>./accessory
sh: ./accessory: Execute permission denied.
root@ob2b:/usr/ud71/bin>
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 06:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 06:52 AM
тАО04-30-2008 06:52 AM
Re: exec permission denied to root with mode 777?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 07:00 AM
тАО04-30-2008 07:00 AM
Re: exec permission denied to root with mode 777?
Results will vary, but I am sure that this is NOT an HP-UX executable.
For example:
From a Fedora box, I took '/bin/date' and named it '/tmp/linuxdate':
# elfdump -f /tmp/linuxdate
/tmp/linuxdate:
*** ELF Header ***
Class: ELF-32
Data: Little-endian
OS: 0
ABI Version: 0
Type: EXEC
elfdump: Bad machine: 3 (elfdumperr 3004)
Version: 1
Entry Addr: 0x8049060
Program Hdr Offset: 0x34
Section Hdr Offset: 0xd0fc
Flags: 0x0
Elf Hdr Size: 0x34
Program Hdr Size: 0x20
Program Hdr Number: 8
Section Hdr Size: 0x28
Section Hdr Number: 32
Section Hdr String Idx: 31
# chatr /tmp/linuxdate
chatr(error): file /tmp/linuxdate is not a valid PA executable
From an AIX server:
# elfdump -f /tmp/aixdate
elfdump: Bad input file type: /tmp/aixdate (elfdumperr 2003)
# chatr /tmp/aixdate
chatr(error): chatr cannot recognize file type of file /tmp/aixdate
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 08:08 AM
тАО04-30-2008 08:08 AM
Re: exec permission denied to root with mode 777?
root@mybox:/usr/ud71/bin>elfdump -f ./accessory
./accessory:
*** ELF Header ***
Class: ELF-32
Data: Little-endian
OS: 0
ABI Version: 0
Type: EXEC
elfdump: Bad machine: 3 (elfdumperr 3004)
Version: 1
Entry Addr: 0x80487b0
Program Hdr Offset: 0x34
Section Hdr Offset: 0x15e4
Flags: 0x0
Elf Hdr Size: 0x34
Program Hdr Size: 0x20
Program Hdr Number: 7
Section Hdr Size: 0x28
Section Hdr Number: 27
Section Hdr String Idx: 24
Well I do have: "Bad machine: 3(elfdumperr 3004)"
Perhaps it's is just a bit naughty and not downright bad?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 08:12 AM
тАО04-30-2008 08:12 AM
Re: exec permission denied to root with mode 777?
You are right.
I just red the the details in your response.
It's the same error you have.
I agree.
Thanks.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2008 10:23 AM
тАО04-30-2008 10:23 AM
Re: exec permission denied to root with mode 777?
The unidata version 7.1 I downloaded is for lunix. It says it is for linux,windows, aix, hpux, ..... It's not really accurate.
You see, unidata can run on all that stuff. But the demo can't. It can only run on linux.
I have an old version of the unidata from an ancient backup tape. I grabbed this "accessory" file and tried to run it. It bombed out. The OS is 32bit. I threw the same file on a 64 bit verson of hpux. It ran fine.