I just need to know what should be done on a login user so that no one can access it except through sudo
i.e.
telnet server
login: user
NO ACCESS
telnet server
login: mylogin
sudo - user <any command>
ACCESS GRANTED
thanks (0 Replies)
Hi All,
I got lots of request with sudo, a manager request, verbal command, do this and do that.
The problem with this kind of request is when I added that script and that. It will not be perfect, it's because I can't verify the userid sudo access, I can't reset their password as well, I... (2 Replies)
I have installed sudo on AIX 6100-04 and want to know how do I set it up for a user to be able to run only some commands? I want to give the user the rights to only cd to certain directories and run the ls command to name a few? Are there any issues with running sudo when the user is forced to... (2 Replies)
Hello All,
I want to create a script that will do ONLY su to any user on the server with hpadmin login using sudo. Can anyone let me know how can it do it.
Regards
Ankit (1 Reply)
I'm actually working with a Ubuntu-System here and have a question about executing a command with 'sudo'.
I tried and got a error message like "not allowed".
After this I logged in with 'sudo -s' and typed the command without 'sudo'. This worked well.
Can please somebody explain me this... (0 Replies)
Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Hi Folks,
Please help me. I am bit struck here.
Here is the OS info.
Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
I have a... (17 Replies)
I want to give root access to a user called denielr on server - tsprd01, but do not want to share root password. I have sudoers configured already.
He should have all access equal to root. I made this entry in /etc/sudoers, but it is not working
denielr tsprd01 =(root) NOPASSWD: ALL
I tried to... (2 Replies)
Install the sudo pkg SFWsudo.tar
bash#tar -xvf SFWsudo.tar
bash#pkgadd -d . SFWsudo
path may be /opt/sfw/bin
Make entry the user name in sudoer file
path of the sudoer file
/opt/sfw/etc/sudoers
check with the below command as a user (not as a root user)
user1$... (1 Reply)
I had a question on users inheriting SUDO capabilities of another account. Let's say that there are three users A, B, and C. A has access to Sudo into B. B has access to Sudo into C. Does this give A access to sudo into B and then sudo into C.
A -> B
B -> C
A -> B -> C ?
Another example. My... (2 Replies)
I have similar issue as mentioned in
167174-how-run-script-using-batch-file.html
It works good, but the control is not coming back to source i tried adding exit to remote script.
Thanks,
Suresh (0 Replies)
Discussion started by: snsuresh
0 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)