HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- su: [command]: Execute permission denied.
Operating System - HP-UX
1833759
Members
2171
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-17-2011 11:55 AM
03-17-2011 11:55 AM
su: [command]: Execute permission denied.
I'm running across a weird permissions situation. If I become root, and then su - to a user, and then try to run a command called "tols" that's owned by that user, I get this:
$ ./tols
su: ./tols: Execute permission denied.
Here's the file info:
$ ls -l tols
-rwxrwxrwx 1 usera usera 9926 Feb 27 04:42 tols
$ what tols
tols:
$Revision: 92453-07 linker linker crt0.o B.11.30 010914 $
The file may have been copied from a PA-RISC server to the Itanium blade we're working on, so I'm suspecting we have to get an Itanium version (or recompile). It's a weird message, though; I would have thought I'd be getting linker or library errors, not a permissions failure from su.
Any ideas? Thanks!
$ ./tols
su: ./tols: Execute permission denied.
Here's the file info:
$ ls -l tols
-rwxrwxrwx 1 usera usera 9926 Feb 27 04:42 tols
$ what tols
tols:
$Revision: 92453-07 linker linker crt0.o B.11.30 010914 $
The file may have been copied from a PA-RISC server to the Itanium blade we're working on, so I'm suspecting we have to get an Itanium version (or recompile). It's a weird message, though; I would have thought I'd be getting linker or library errors, not a permissions failure from su.
Any ideas? Thanks!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2011 05:13 AM
03-18-2011 05:13 AM
Re: su: [command]: Execute permission denied.
What does "file tols" say?
How about "ldd tols"?
Is the result different if you run "ldd tols" as root? In that case, one of the libraries required to run "tols" might not be accessible when you're running as a non-root user. Check the permissions of the listed libraries.
MK
How about "ldd tols"?
Is the result different if you run "ldd tols" as root? In that case, one of the libraries required to run "tols" might not be accessible when you're running as a non-root user. Check the permissions of the listed libraries.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2011 03:14 AM
04-08-2011 03:14 AM
Re: su: [command]: Execute permission denied.
Try to chmod the file to 755 instead of 777. There could be a security feature which prevents running world-writable binaries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2011 11:45 AM
04-10-2011 11:45 AM
Re: su: [command]: Execute permission denied.
>MK: What does "file tols" say?
Right, this most likely says the architecture isn't valid for Integrity. But your what strings seems to indicate PA.
Do you have all of your shlibs and paths readable and executable, including Aries?
>Jan: Try to chmod the file to 755 instead of 777. There could be a security feature which prevents running world-writable binaries.
I thought they fixed that PID thrashing issue on shlibs long ago.
But it is a good practice to not have world-writable binaries and scripts.
Right, this most likely says the architecture isn't valid for Integrity. But your what strings seems to indicate PA.
Do you have all of your shlibs and paths readable and executable, including Aries?
>Jan: Try to chmod the file to 755 instead of 777. There could be a security feature which prevents running world-writable binaries.
I thought they fixed that PID thrashing issue on shlibs long ago.
But it is a good practice to not have world-writable binaries and scripts.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP