HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with sudo
Operating System - HP-UX
1834752
Members
2851
Online
110070
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
10-01-2002 12:18 PM
10-01-2002 12:18 PM
I have a small problem with sudo syntax.
I am trying to give oracle permission to sudo for the umount and mount commands for temporary filesystems used for backups. I keep getting syntax problems with my /etc/sudoers file when they try to execute it.
Here is the syntax that I have for the command.
oracle ALL=NOPASSWD: /usr/sbin/mount -F vxfs -o delaylog,largefiles,nodatainlog,mincache=direct,convosync=direct /dev/vgora4/oradt_fs12 /oradata/fs12
I am not sure where my problem is. It appears that the syntax is correct, maybe it doesn't like the spaces, but I have other entries with spaces.
Thanks for your help.
I am trying to give oracle permission to sudo for the umount and mount commands for temporary filesystems used for backups. I keep getting syntax problems with my /etc/sudoers file when they try to execute it.
Here is the syntax that I have for the command.
oracle ALL=NOPASSWD: /usr/sbin/mount -F vxfs -o delaylog,largefiles,nodatainlog,mincache=direct,convosync=direct /dev/vgora4/oradt_fs12 /oradata/fs12
I am not sure where my problem is. It appears that the syntax is correct, maybe it doesn't like the spaces, but I have other entries with spaces.
Thanks for your help.
Unix, the other white meat.
Solved! Go to Solution.
- Tags:
- sudo
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 12:23 PM
10-01-2002 12:23 PM
Solution
Just try
/usr/sbin/mount *, see if they can run it then. If they can, you probably have run into a limit on the lenght of the command that sudo can handle.
GL,
C
/usr/sbin/mount *, see if they can run it then. If they can, you probably have run into a limit on the lenght of the command that sudo can handle.
GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 12:24 PM
10-01-2002 12:24 PM
Re: problem with sudo
Also, as the oracle user what does sudo -l say they can run?
GL,
C
GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 12:26 PM
10-01-2002 12:26 PM
Re: problem with sudo
Why not create a script that has the mount and umount commands in it and then just allow oracle access to the script instead of to the specific mount command?
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP