- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sudo - Cmnd_Alias errors
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
09-17-2007 07:56 AM
09-17-2007 07:56 AM
Sudo - Cmnd_Alias errors
@line 13 ->
Cmnd_Alias PROCESSLOADS=cp,ls
@line 32 ->
USR1 ALL=(USR2) PROCESSLOADS
>>> sudoers file: syntax error, line 13 <<<
Warning: undeclared Cmnd_Alias `PROCESSLOADS' referenced near line 32
Also there isnt an /etc/sudoers file default upon installation. The default path when using visudo is /usr/local/etc/sudoers.tmp. Do I need to create /etc/sudoers?
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 08:32 AM
09-17-2007 08:32 AM
Re: Sudo - Cmnd_Alias errors
Cmnd_Alias PROCESSLOADS = /usr/bin/cp, /usr/bin/ls
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2007 08:35 AM
09-17-2007 08:35 AM
Re: Sudo - Cmnd_Alias errors
I'm guessing you are using sudo from Internet Express. It keeps the sudoers file in the /opt filesystem.
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
09-17-2007 08:27 PM
09-17-2007 08:27 PM
Re: Sudo - Cmnd_Alias errors
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
User_Alias
# Cmnd alias specification
Cmnd_Alias
# User privilege specification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2007 02:06 AM
09-18-2007 02:06 AM
Re: Sudo - Cmnd_Alias errors
Cmnd_Alias PROCESSLOADS = /usr/bin/cp,/usr/bin/ls
USR1 ALL = (USR2) PROCESSLOADS
also my sudoers didn't like it when i did not have spaces between the = the user ..etc
i don't know why but you might want to try that also
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2007 02:07 AM
09-18-2007 02:07 AM
Re: Sudo - Cmnd_Alias errors
Cmnd_Alias PROCESSLOADS = /usr/bin/cp,/usr/bin/ls
USR1 ALL = (USR2) PROCESSLOADS
for the /etc/sudoers, it should be created once you save the file, if not just create a link to the original file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2007 05:08 AM
09-18-2007 05:08 AM
Re: Sudo - Cmnd_Alias errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2007 05:19 AM
09-18-2007 05:19 AM
Re: Sudo - Cmnd_Alias errors
user
USERNAMEGROUP ALL=(user2) NOPASSWD: COMMANDVAR