07-17-2011
You can setup sudo with NOPASSWD
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I've written a shell script to alter a particular preference file on OS X (10.3.9), which works fine (tested by running the script from the terminal sat in front of the box).
Problem is, I now have to run this script remotely across a number of machines via remote desktop, so where I've used the... (1 Reply)
Discussion started by: Brad_GNET
1 Replies
2. Linux
Hi all..
I'm secering a RH 2.1 server, with gnome (not my choice...), as X manager.
Is ther anyway to get sudo ask for root password other then the actual user's password? Like when you launch the graphical IHM to create a new user, it asks for root's password? Is there a way to do the same... (5 Replies)
Discussion started by: penguin-friend
5 Replies
3. Shell Programming and Scripting
edited and removed (0 Replies)
Discussion started by: mdpalow
0 Replies
4. Shell Programming and Scripting
I need to create an automated script where I have to use sudo to switch to multiple user so the script stops and prompts for password, Is there a way I can provide the password in same command only?
Remember that, I cannot disable the password settings of sudo as I dont have rights. (4 Replies)
Discussion started by: gauravgrover50
4 Replies
5. OS X (Apple)
I'm making a script that will be a double clickable .command file and I need it to prompt for the users admin password.
So far I have:
if ]; then
sudo -p "Please enter your admin password: " date 2>/dev/null 1>&2
if ; then
echo "You entered an invalid password... (2 Replies)
Discussion started by: PatGmac
2 Replies
6. AIX
Hello
I have a partition with Aix 5.3 and I install sudo
I put the commands that I want to use x user and I put the option that donkask for password.
But when I run with this user and I try to run that commands. ask me for a password.
I put this line for no ask for password with that... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies
7. Shell Programming and Scripting
Hi
While doing the following command password is gettin dispalyed :
ssh <host> "sudo command ; exit"
....
while i type my password for 2nd its gettin displayed ...
i tried stty -echo and stty echo
...
still i am havin problem..:confused: (1 Reply)
Discussion started by: ningy
1 Replies
8. Shell Programming and Scripting
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
#!/bin/bash
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies
9. Red Hat
Little confused here
When i go to run sudo nohup ./script.ksh &
I dont get asked for a password.
It starts a process ID, I can see it when i do a ps -ef | grep script.
But I dont get an output file from my script, so its not doing anything.
What gives?
does it have to do the "&" ?
... (4 Replies)
Discussion started by: nitrobass24
4 Replies
10. Solaris
Hi guys,
I have the strangest issue... might be a huge oversight.. who knows!! :)
I am trying to configure a user to use sudo with no password, here is my sudoers configuration file
root@isha:~# egrep -v "^$|^#" /etc/sudoers
root ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: ALL... (5 Replies)
Discussion started by: akame
5 Replies
LEARN ABOUT DEBIAN
qshutdown
qshutdown(1) General Commands Manual qshutdown(1)
NAME
qshutdown - An avanced shutdown tool
SYNOPSIS
qshutdown [options]
DESCRIPTION
qshutdown is a simple tool to choose a time or a number of minutes to shutdown, reboot, suspend or hibernate after.
qshutdown will show itself 3 times as a warning if there are less than 70 seconds left. (if 1 Minute or local time +1 Minute was set
it'll appear only once.)
This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to
HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used.
OPTIONS
-h --help
Prints options with description.
-i Prints information about qshutdown.
-v Prints all errors and warnings.
NOTES
When sending the request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is
used, the program will only be able to shutdown and reboot.
If nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case
one can do the following: Post the following in a terminal:
$ EDITOR=nano sudo -E visudo
and add this line:
* ALL = NOPASSWD:/sbin/shutdown
whereas * replaces the username or %groupname.
For admins:
If you want qshutdown to run with "parental lock" for every user, you can do
$ sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/
and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshut-
down.conf. Furthermore there is a need to do
$ EDITOR=nano sudo -E visudo
and add the following line to the sudoers:
* ALL = NOPASSWD:/usr/bin/qshutdown
If you should ever forget your set password, just remove the whole line starting with Password manually from the qshutdown.conf.
FILES
The configurationfile (and logfile) is located at ~/.qshutdown/ (under Linux/Unix). The maximum Number of countdown_minutes is 1440 (24
hours).
KNOWN ISSUES
There is no system tray icon for qshutdown in Ubuntu 11.04.
SOLUTION: Type the following line in a terminal:
$ gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"
HINTS ON USAGE
If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".
HOTKEYS
Ctrl+I information window
Ctrl+Q Quit
Ctrl+P Prefereces
Ctrl+L write the run time once into the logfile (works
only if qshutdown quits. To make it permanent set it in the preferences.)
Ctrl+S set to shutdown
Ctrl+R set to restart
Ctrl+U set to suspend to RAM
Ctrl+H set to hibernate
Ctrl+E stop timer (only if the countdown has started and
the admin didn't restrict the access)
Shift+E to edit the config file (for this a password is
necessary. If you are a user, you can set an "empty password" (leave the password field empty)).
AUTHOR
Christian Metscher <hakaishi@web.de>
2011-10-23 qshutdown(1)