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-24-2002 06:34 AM
07-24-2002 06:34 AM
sudo
on redhat i want that a user can issue some root commands, for example mount. How can i do that?
Just modifying /etc/sudoers?
How this file is modified? I have checked the man file, but i still need help.
I edited the /etc/sudoers with visudo, and there's a line for root
root ALL=(ALL) ALL
I tried with:
oracle mount
but i get
>>> sudoers file: syntax error, line 16 <<<
How can configure it correctly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 10:26 AM
07-24-2002 10:26 AM
Re: sudo
Here's a good article with some examples
how to use sudo.
http://www.linuxmuse.com/articles.php?action=section&article=15&num=1
regards.
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 12:32 PM
07-24-2002 12:32 PM
Re: sudo
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
oracle ALL= /sbin/mount, /sbin/umount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 03:33 PM
07-24-2002 03:33 PM
Re: sudo
This way they can not modify any of the other mounts on the system, just theirs. Unfortunately, this doesn't tie it to a signle user who can issue the 'mount' command, but any user.
(see 'man 8 mount')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 01:51 AM
07-25-2002 01:51 AM
Re: sudo
Here i have a working example of sudoers:
overseer ALL = (x400) NOPASSWD: ALL
overseer ALL = (root) NOPASSWD: /usr/contrib/bin/overpid,/usr/bin/kill
overseer ALL = (bb) NOPASSWD: /home/bb/bb18c1/runbb.sh
www ALL = (overseer) NOPASSWD: /home/overseer/checkstatus
Here:
1. the user 'overseer' can act like x400 without password.
2. the user 'overseer' can user overpid and kill as root without password
3. the user 'overseer' can use runbb.sh as 'bb' without password
4. here the user 'www' can user checkstatus as user 'overseer'.
Works quit well, only sometimes it is better to use techniques like stickybits etcetera.
Regards,
Ceesjan