HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: privileges of init process
Operating System - HP-UX
1826502
Members
2162
Online
109693
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
11-11-2003 12:01 AM
11-11-2003 12:01 AM
how can I execute the process init with an normal user (not root).
I try execute "init 2" and i received this message:
Could not send signal to "init"
thanks
I try execute "init 2" and i received this message:
Could not send signal to "init"
thanks
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 12:03 AM
11-11-2003 12:03 AM
Re: privileges of init process
Jose,
Stop and think about it - do you really want any user to be able to switch run levels? I don't think so.
You could look into sudo:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.7p5/
Pete
Pete
Stop and think about it - do you really want any user to be able to switch run levels? I don't think so.
You could look into sudo:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.7p5/
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 12:05 AM
11-11-2003 12:05 AM
Solution
You can't.
init is always running (check out "ps -fp1").
When you run init from the command line you send a signal to the real init, and if you aren't root, you don't have permission to send the signal.
It would be extremely scary to think it could be otherwise. If any user could run "init 2", to bring he system down to level 2, there would be mayhem.
-- Graham
init is always running (check out "ps -fp1").
When you run init from the command line you send a signal to the real init, and if you aren't root, you don't have permission to send the signal.
It would be extremely scary to think it could be otherwise. If any user could run "init 2", to bring he system down to level 2, there would be mayhem.
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 12:06 AM
11-11-2003 12:06 AM
Re: privileges of init process
You really don't want your users sending random signals to "init". If you want to achieve it yourself you can write a quick "C" wrapper around the command which you then set as SETUID or you use an application like "sudo" which you can get from here
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.7p5/
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.7p5/
Never preceed any demonstration with anything more predictive than "watch this"
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP