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
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
01-14-2003 12:50 AM
01-14-2003 12:50 AM
sudo
as root, I have add the below line to file /etc/sudoers
" edp_usr gzip=/bin/ll" ,
then the user "edp_usr" try to run the below statement, the system ask to input the password, can suggest what is wrong in my setting? thx.
#whoami
edp_usr
# sudo ll /tmp
Password:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:04 AM
01-14-2003 01:04 AM
Re: sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:08 AM
01-14-2003 01:08 AM
Re: sudo
You have not insert the nopasswd option
edp_usr gzip=NOPASSWD:/bin/ll
http://www.courtesan.com/sudo/man/sudoers.html#nopasswd%20and%20passwd
Regards,
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:18 AM
01-14-2003 01:18 AM
Re: sudo
By default, sudo requires that a user authenticate him or herself before running a command. This can be modified via the NOPASSWD tag.
edp_usr = NOPASSWD /bin/ll
would allow the user edp_usr to run /bin/ll as root without authenticating himself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:21 AM
01-14-2003 01:21 AM
Re: sudo
sudo requires that a user has to enter his password before he can run the defined commands
You can change this with the NOPASSWD option.
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:30 AM
01-14-2003 01:30 AM
Re: sudo
give some points to correct answers:
This member has assigned points to 98 of 175 responses to his/her questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 01:49 AM
01-14-2003 01:49 AM
Re: sudo
my statement is /etc/sudoers is "edp_usr ll = NOPASSWD: /bin/ll" , then the user "edp_usr" run "sudo ll /tmp" , it still ask password, can suggest what is wrong? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 02:17 AM
01-14-2003 02:17 AM
Re: sudo
try sudo /bin/ll
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 06:28 PM
01-15-2003 06:28 PM
Re: sudo
edp_usr ALL = NOPASSWD: /bin/ll
If you want edp_usr to be able to use this without specifying the user's passwd on any host this is installed on. If you want to restrict it to a specific host, replace the "ALL" above with your hostname as returned by `hostname` (see the man page for some more details).
Both of your examples:
edp_usr gzip=/bin/ll
edp_usr ll=NOPASSWD:/bin/ll
Have the same mistake, by putting a command name BEFORE the "=" you've stated that these permissions are only valid on the hosts named "gzip" and "ll" respectively.
The command "sudo -l" may be helpfull in checking complex configurations.
Hope this helps,
-Scott-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2006 05:44 AM
10-25-2006 05:44 AM
Re: sudo
edg_usr ALL=(root) NOPASSWD:/bin/ll , /bin/another_command , and so on
Matthew From Boston