menu for some options
hi
my customer asked to implement a menu for some linux admin activities for normal user which means using sudo for example menu options 1. show network status 2. Disk status 3. CPU resources 4. apache status but my question is for example for ifconfig I will need sudo /etc/init.d/service network my question is how can I avoid asking the password for the user every time they use a option on the menu that would require sudo??? the same for apache or any other option in my menu that would require that I was thinking to ask the password the first time the menu is invoke but how can I save that password? any idea I hope you get my idea kinda difficult to explain thanks a lot |
Quote:
|
Note that configuring users with "NOPASSWD" commands obviously weakens security as no passwords will be asked. IMO that should only be suggested in rare cases, meanwhile keeping extra security measures to take in mind, and only for users who have no login like for instance a daemon.
Quote:
|
thanks a lot guys I will try NOPASSWD option and check more documentation something else any idea where to find a script like the one my customer is asking me????
|
I may be wrong, and perhaps just because the example list is so short, but all the options
listed would not need sudo access or at least an alternative could be found that would display the necessary info |
Quote:
.... something else once the script is created I will put at /scripts/menuCOMPANYNAME I would like to know how to set that PATH to all users I read it is in /etc/profile but in the code below I should add /scripts/ Code:
# /etc/profile |
Quote:
(at least I can on my Ubuntu machine) |
All times are GMT -5. The time now is 08:46 PM. |