HPE GreenLake Administration
Operating System - Linux
1829331
Members
2637
Online
109989
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
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
01-14-2003 12:01 AM
01-14-2003 12:01 AM
sudo
I would like to let the user "edp_usr" to run "ll"
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:
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:
Andy
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 02:33 AM
01-14-2003 02:33 AM
Re: sudo
Hi,
From my very own /opt/sudo/etc/sudoers/sudoers file :
# Host alias specification
User_Alias XPS = xpsb
# Default overrides
Defaults !syslog
Defaults logfile = /var/adm/syslog/sudo.log
Defaults:XPS !authenticate
... and so on ...
What you need for your user is the "!authenticate" parameter ...
Regards,
Tom
From my very own /opt/sudo/etc/sudoers/sudoers file :
# Host alias specification
User_Alias XPS = xpsb
# Default overrides
Defaults !syslog
Defaults logfile = /var/adm/syslog/sudo.log
Defaults:XPS !authenticate
... and so on ...
What you need for your user is the "!authenticate" parameter ...
Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 12:12 AM
01-15-2003 12:12 AM
Re: sudo
you could also try:
edp_usr gzip=NOPASSWD: /bin/ll
edp_usr gzip=NOPASSWD: /bin/ll
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 06:00 AM
01-15-2003 06:00 AM
Re: sudo
You gave him permission to run /bin/ll, not "ll". The user needs to type /bin/ll.
Do *not* change your sudoers file to allow the user to run ll instead of /bin/ll - if you do then the user can write a script to do whatever he wants, name it ll, and run it as root.
Do *not* change your sudoers file to allow the user to run ll instead of /bin/ll - if you do then the user can write a script to do whatever he wants, name it ll, and run it as root.
Hockey PUX?
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