HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Execute bit without read on a script
Operating System - HP-UX
1833756
Members
2433
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
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
06-02-2000 01:32 PM
06-02-2000 01:32 PM
I am trying to allow all the members of a group to execute a script (ksh) without having the read bit set. I thought it was possible to set the execute bit only at the group level allowing users to execute the script but restricting read access. When the users run the script they receive a message unable to open file. Anyone know if it is possible to do this or of any work arounds?
Thanks,
Thanks,
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2000 01:59 PM
06-02-2000 01:59 PM
Re: Execute bit without read on a script
I do not believe that this s posible. The shell must be able to read the commands to parse the script, and the shell is owned by the user. If you want users to be able to "do the job" without "seeing the job" then you will probably need to write it in C and compile it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2000 01:13 AM
06-03-2000 01:13 AM
Re: Execute bit without read on a script
Hi Gary,
Think about installing "sudo" for those tasks (http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1)
This way, you can made the script executable only by root, and
(in the sudo's config file) define which logins or groups can
run it. Then, put an alias in each user's .kshrc/.profile:
alias myscript="/opt/sudo/bin/sudo /usr/local/bin/myscript"
You can configure sudo to restrict the users from running *any
other* binary or script on yout system, not even a shell,
apart those configured in the sudo's config file.
Read about sudo at http://www.courtesan.com/sudo
Regards,
Think about installing "sudo" for those tasks (http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1)
This way, you can made the script executable only by root, and
(in the sudo's config file) define which logins or groups can
run it. Then, put an alias in each user's .kshrc/.profile:
alias myscript="/opt/sudo/bin/sudo /usr/local/bin/myscript"
You can configure sudo to restrict the users from running *any
other* binary or script on yout system, not even a shell,
apart those configured in the sudo's config file.
Read about sudo at http://www.courtesan.com/sudo
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2000 07:12 PM
06-03-2000 07:12 PM
Solution
Hi,
Give restricted SAM or RSAM a try. It allows a predefined set of users to execute a script by selecting the corresponding item from a SAM menu. In this way, you can give your group of users execute privileges without allowing read or write access by the same group of users.
I have been using RSAM to give operators specific privileges to certain scripts for daily operations without giving them any read access into any of the script's internals.
Regards.
Steven Sim.
Give restricted SAM or RSAM a try. It allows a predefined set of users to execute a script by selecting the corresponding item from a SAM menu. In this way, you can give your group of users execute privileges without allowing read or write access by the same group of users.
I have been using RSAM to give operators specific privileges to certain scripts for daily operations without giving them any read access into any of the script's internals.
Regards.
Steven Sim.
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