- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sudo - configuring the sudoers file
Operating System - HP-UX
1755643
Members
3210
Online
108837
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
тАО07-20-2000 03:28 AM
тАО07-20-2000 03:28 AM
sudo - configuring the sudoers file
Can someone please help me.
I have read the man pages on sudo, sudoers, and visudo and can still not determine the proper syntax for adding a user the capability to execute certain commands (as root user using the sudo command).
I simply want to grant my DBA the ability to execute pfs_mount, root.sh (owner by Oracle but must be run by root), mkdir, and a couple of other commands.
I have even gone to the SUDO page: http://www.courtesan.com/sudo/ and can still not find any examples of putting an entry type that I need into the sudoers file.
My current type entries are:
# Host alias specification
# User alias specification
# Cmnd alias specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
joeDBA ALL=(ALL) ALL
I would like to give user joeDBA only certain privileges, not all of root's.
Thanks in advance...
jim
I have read the man pages on sudo, sudoers, and visudo and can still not determine the proper syntax for adding a user the capability to execute certain commands (as root user using the sudo command).
I simply want to grant my DBA the ability to execute pfs_mount, root.sh (owner by Oracle but must be run by root), mkdir, and a couple of other commands.
I have even gone to the SUDO page: http://www.courtesan.com/sudo/ and can still not find any examples of putting an entry type that I need into the sudoers file.
My current type entries are:
# Host alias specification
# User alias specification
# Cmnd alias specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
joeDBA ALL=(ALL) ALL
I would like to give user joeDBA only certain privileges, not all of root's.
Thanks in advance...
jim
Sr. Oracle DBA
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 05:35 AM
тАО07-20-2000 05:35 AM
Re: sudo - configuring the sudoers file
Hi,
What about:
# Host alias specification
Host_Alias HOSTS = aldebaran
# User alias specification
User_Alias ADMIN = rik
# Cmnd alias specification
Cmnd_Alias ADMIN_CMDS = /usr/bin/ksh, /bin/bash
# Runas alias specification
Runas_Alias ADMIN_RUNAS = root, oracle
# User privilege specification
root ALL = (ALL) ALL
ADMIN HOSTS = (ADMIN_RUNAS) ADMIN_CMDS
Above example works on my host.
Hope this helps,
Rik.
What about:
# Host alias specification
Host_Alias HOSTS = aldebaran
# User alias specification
User_Alias ADMIN = rik
# Cmnd alias specification
Cmnd_Alias ADMIN_CMDS = /usr/bin/ksh, /bin/bash
# Runas alias specification
Runas_Alias ADMIN_RUNAS = root, oracle
# User privilege specification
root ALL = (ALL) ALL
ADMIN HOSTS = (ADMIN_RUNAS) ADMIN_CMDS
Above example works on my host.
Hope this helps,
Rik.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 05:39 AM
тАО07-20-2000 05:39 AM
Re: sudo - configuring the sudoers file
I have attached a sudoers file that I have been using. It doesn't contain the pfs_mount but I believe it will get you what you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2000 05:41 AM
тАО07-20-2000 05:41 AM
Re: sudo - configuring the sudoers file
Hi,
Forgot to mention that the sudoers manpage contains a good example.
See http://www.courtesan.com/sudo/man/sudoers.html
Bye,
Rik
Forgot to mention that the sudoers manpage contains a good example.
See http://www.courtesan.com/sudo/man/sudoers.html
Bye,
Rik
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP