- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Adding a line to Sudo
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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-27-2004 06:39 AM
07-27-2004 06:39 AM
Thank you.
Nancy L.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2004 06:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2004 07:17 AM
07-27-2004 07:17 AM
Re: Adding a line to Sudo
User_Alias MOUNT_USERS=user1,user2
Cmnd_Alias MOUNT_CMNDS=/usr/sbin/mount /dev/dsk/c1t2t0 /SD_CDROM,/usr/sbin/umount /SD_CDROM
MOUNT_USERS ALL=MOUNT_CMNDS
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2004 10:09 AM
07-27-2004 10:09 AM
Re: Adding a line to Sudo
Try:
# /opt/sudo/sbin/visudo
# /usr/local/sbin/visudo
Don't edit the file directly. Jeff's options are a very good guide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 01:11 AM
07-28-2004 01:11 AM
Re: Adding a line to Sudo
user: error in /etc/sudoers, line 18; TTY=pts/1 ; PWD= /home/user; USER=root
I am login as the user and the path I enter is: sudo /dev/dsk/c1t2d0 /home/user/SD_CDROM
The account was done with "users" as the primary group and the group account has the root permissions same as the lp, shutdown, etc......
See if you give me any suggestions.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 01:19 AM
07-28-2004 01:19 AM
Re: Adding a line to Sudo
You must enter the command exactly as it is in the sudoers file. If there are multiple entries the command must match one of them.
EX:
sudo /usr/sbin/mount /dev/dsk/c1t2t0 /SD_CDROM
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2004 03:25 AM
07-28-2004 03:25 AM
Re: Adding a line to Sudo
I thank you for your help. I was totally sucessful with all your help. Also, another option I added to the user was the following:
Script file called - /etc/mountcd
#!/bin/sh
sudo /usr/sbin/mount /dev/dsk/c1t2d0 /CDROM
and
file - /etc/umountcd
#!/bin/sh
sudo /usr/sbin/umount /CDROM
Changed permissions to /etc/mountcd and /etc/umountcd
chmod +X /etc/mountcd
chmod +X /etc/umountcd
It worked fine both ways.
Thanks,
Nancy L.