HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Why the user "oracle" can not start an executable ...
Operating System - HP-UX
1834149
Members
3848
Online
110064
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
Go to solution
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
04-05-2002 06:30 PM
04-05-2002 06:30 PM
Hi,
There is an executable file named "tts" and the file access permission is:
-r-sr-xr-- 1 root sys /home/jerry/tts
But I can not start it as "oracle". The output on the screen is:
sh: /home/jerry/tts : Execute permission denied
Can anybody tell me why and what the purpose of the command "chmod u+s"?
Thanks!
Best Regards.,
May
There is an executable file named "tts" and the file access permission is:
-r-sr-xr-- 1 root sys /home/jerry/tts
But I can not start it as "oracle". The output on the screen is:
sh: /home/jerry/tts : Execute permission denied
Can anybody tell me why and what the purpose of the command "chmod u+s"?
Thanks!
Best Regards.,
May
May
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 06:37 PM
04-05-2002 06:37 PM
Solution
The 'chmod u+s' set the set-uid bit to on for this file. Whenever it runs, no matter who starts it (assuming they have permission) it willrun as root.
If you want to run this as the oracle user you must do a 'chmod o+x /home/jerry/tts' in order to set world execute permission. The only problem with that is that ANYONE can then run the program and it will run as root.
If only oracle needs to run this, change the ownership to oracle 'chown oracle /home/jerry/tts'.
You probably also should do a 'chmod u-s /home/jerry/tts'
If you want to run this as the oracle user you must do a 'chmod o+x /home/jerry/tts' in order to set world execute permission. The only problem with that is that ANYONE can then run the program and it will run as root.
If only oracle needs to run this, change the ownership to oracle 'chown oracle /home/jerry/tts'.
You probably also should do a 'chmod u-s /home/jerry/tts'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 07:22 PM
04-05-2002 07:22 PM
Re: Why the user "oracle" can not start an executable file ?
if you want oracle to run it, chmod o+x /home/jerry/tts.
-r-sr-xr-- 1 root sys /home/jerry/tts
s is setuid, when it is executed, it runs as root. It was set via chmod 4000.
-r-sr-xr-- 1 root sys /home/jerry/tts
s is setuid, when it is executed, it runs as root. It was set via chmod 4000.
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