- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script issue
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
тАО10-21-2009 08:07 PM
тАО10-21-2009 08:07 PM
I need some help regarding script execution.
we have a script which has got full permission wth normal user say 'test'.
when the test executes the script ,it throwing error..
./stop: kill: permission denied
The script contains kill command
I think user does not have permission to run kill command.
How to solve this issue..
Regards
himacs
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 08:15 PM
тАО10-21-2009 08:15 PM
Re: script issue
The other, slightly more likely, possibility is that the script is trying to kill a process that was not started by this user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 08:19 PM
тАО10-21-2009 08:19 PM
Re: script issue
See what happens if you run that command (or script) manually from that User....if you still get same error message, then probably it is a permission issue.
(It depends what is done/killed by the script. May be the process it is trying to kill requires root powers.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 08:20 PM
тАО10-21-2009 08:20 PM
Re: script issue
Give sudo nopasswd access to all user who is using this scirpt
sudo nopasswd access to kill command
nopasswd because when script will run then passwd will not ask.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 08:37 PM
тАО10-21-2009 08:37 PM
Re: script issue
Thanx for th reply.
The script is trying to kill a PID file,own by root user.I have set ACL permission for that user with PID file.
Waiting for user's update..
Whether i have to give ACL for group also,wher that user belongs..?
Regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2009 08:44 PM
тАО10-21-2009 08:44 PM
Re: script issue
ACl didnot work..
Need i change the mill permission for that user ...
regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 01:46 AM
тАО10-22-2009 01:46 AM
Re: script issue
Is your problem reading the PID file or killing the process?
ACLs will allow you to read the file but not kill PIDs. The error looks like the latter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 04:12 AM
тАО10-22-2009 04:12 AM
Re: script issue
> we have a script which has got full permission wth normal user say 'test'.
when the test executes the script ,it throwing error.../stop: kill: permission denied
You might want to verify that your script is finding _correctly_ what it wants to kill. It is possible that your script is trying to kill a process that it shouldn't and then fortunately for you the kernel denies that.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2009 09:43 AM
тАО10-22-2009 09:43 AM
SolutionThat would seem to imply that the PID that you want to kill is owned by root as well, at least from the sketchy infomation provided....
what user id is running the script?
the exact kill command that is being attempted?
if the "PID file" ref'd above has a process ID in it, what does "ps -ef" show for the specified process?
As noted before, non root users can only kill processes that they own...I'd start with finding out who owns what and go from there.