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
Discussions
Discussions
Forums
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
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-18-2005 12:07 AM
тАО01-18-2005 12:07 AM
sudo
I need help to use sudo. HP 11.11 I am login as [oper] within the menu I want to run fbackup and reboot system. sudoers file I defined oper, but I could not run the backup and reboot system. Please guide me where is there is something missing in sudoers file. File is attached.
Thanks and regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2005 12:19 AM
тАО01-18-2005 12:19 AM
Re: sudo
your syntax for user oper is correct
(in my opinion there are to much priviliges for user oper)
and if you want to shutdown system by sudo
you need to change directory to /
ex:
cd /; /opt/sudo/bin/sudo /sbin/shutdown -r 0
change your path to sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2005 12:22 AM
тАО01-18-2005 12:22 AM
Re: sudo
I'm not sure if this will make a difference but it could.
Instead of
oper ALL=(ALL) NOPASSWD:ALL
try
oper ALL=(ALL) NOPASSWD: ALL
which has a space before the last ALL.
Regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2005 12:23 AM
тАО01-18-2005 12:23 AM
Re: sudo
#visudo
this will open sudoers file, at the end add the lines
%users ALL=fbackup reboot
save and close the file.
login as the user, now you can use fbackup and reboot command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2005 12:49 AM
тАО01-18-2005 12:49 AM
Re: sudo
No it is not working, file attached.
operAll=(ALL)NOPASSWD: ALL giving error &
%user ALL=fbackup reboot is also giving error both parameter cannot be add in visudo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2005 01:54 AM
тАО01-18-2005 01:54 AM
Re: sudo
oper ALL=(ALL) NOPASSWD: ALL
In your sudoers file there is no space between oper and ALL.
for fbackup & reboot commands give the path. IT may prompt you to give your password while running this command.
%user ALL=/usr/sbin/fbackup,some_path/reboot
this will allow everyone in the user group to have the ability to run this command as root using sudo.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2005 12:50 PM
тАО01-18-2005 12:50 PM
Re: sudo
You need to run fbackup and reboot as user oper.
Use visudo to open the sudoers file in vi mode and add the following lines.
# Host alias specification
(This is where you sepcify the alias name to the server hostname
eg:- if your hostname of the server is devtest
Host_Alias TEST = devtest
# User alias specification
(This is where you specify the user alias who will execute the commnad / script)
User_Alias BACKUP_USER=oper
#Runas alias specification
(This is where you specify the original user
Runas_Alias BACKUP = root
# Cmnd alias specification
(This is where you specify the command or script with the command)
Cmnd_Alias SYSTEM_BACKUP = /path_name/script_name
# User privilege specification
(This is where you specify the user and the command alias)
BACKUP_USER TEST = (BACKUP) NOPASSWD: SYSTEM_BACKUP
Attached is the sudoers file that I entered some examples.
I hope this helps
Indira A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2005 12:55 AM
тАО01-19-2005 12:55 AM
Re: sudo
I am trying it, still it is not working. I did some changes, file is attached. Is there is any thing has to be modified on some other file system.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2005 11:27 AM
тАО01-19-2005 11:27 AM
Re: sudo
There are two modifications. The modifications are under the sections
# User alias specification and # User privilege specification
I modified your file and attached.
Indira A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2005 03:34 PM
тАО01-22-2005 03:34 PM
Re: sudo
Indira
I try as per your modification, it did not work. Tell me do I uninstall and install sudo again, or is there is any file has to be modified other than sudoers.
Regards