- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Running RC script
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
Forums
Discussions
Discussions
Discussions
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
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
07-29-2003 07:43 AM
07-29-2003 07:43 AM
I want to know who runs rc scripts... Is that always root????
Thanks
Jonathan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:47 AM
07-29-2003 07:47 AM
Re: Running RC script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:48 AM
07-29-2003 07:48 AM
Re: Running RC script
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:52 AM
07-29-2003 07:52 AM
Re: Running RC script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:53 AM
07-29-2003 07:53 AM
Re: Running RC script
To see who can run something, no matter where it is.
Check permissions.
ll filename
Example:
ll /sbin/init.d/oracle
-rwx------ 1 root sys
The only one that can read write or execute this script is root
If there was an x in the second set of permissions
-rwxr-x---
Then other members of the sys group could also execute it.
If it looked like this:
-rwxr-xr-x
Then anyone can execute it. Note you have to be able to read it to execute it. Hence the r.
Permissions tells the whole story of who can do what on a Unix box.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:55 AM
07-29-2003 07:55 AM
Re: Running RC script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 09:09 AM
07-29-2003 09:09 AM
Re: Running RC script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 12:39 PM
07-29-2003 12:39 PM
Re: Running RC script
You create the script in /sbin/init.d/
that can handle parameters (start|stop|start_msg|stop_msg)
and in the /sbin/rcX.d/ create link to it
S
-> /sbin/init.d/<ScriptName>
and in /sbin/rc(X-1).d/ create link to it
K
-> /sbin/init.d/<ScriptName>
And yes it's run with root always.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 03:58 PM
07-29-2003 03:58 PM
Re: Running RC script
please advise this.
$ ls -l /bin/newgrp
-r-sr-xr-x 1 root bin 16384 Feb 20 2001 /bin/newgrp
so when I did this
$ newgrp dba
Sorry
Why??? as i have the execute on newgrp set.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 05:41 PM
07-29-2003 05:41 PM
Re: Running RC script
However, newgrp is archaic today. For 10.20 your sysadmin can create a symlink between /etc/group and /etc/logingroup. For 11.0 and higher, the link is not needed. /etc/group needs to have ONLY alternate group membership listed, not the primary group as this is found in /etc/passwd. This simplifies the passwd file.
To see what groups your login belongs to, use the command: id
Bill Hassell, sysadmin