Recently I came across some documentation that stated that once sudo was successfully ran it stays unlocked for 5 minutes and can be reset through sudo -k. What I was wondering was how do I increase this 5 minute timer to say 10 minutes?
121112
Is there a way through which I can make the sudo command give me permissions for a longer period than its default time?  It can be a pain having to keep entering the sudo password, when requiring the installation of many packages, so it would be nice if there exists a command or configuration that can be done to affect it usage period.
88610
$ ls -l /usr/bin/sudo -rwsr-xr-x 1 root root 136808 Jul  4  2017 /usr/bin/sudo   so sudo is runnable by any user, and any user who runs sudo will have root as the effective user ID of the process because the set-user-id bit of /usr/bin/sudo is set.  From      the most visible difference between sudo and su is that sudo requires the user's password and su requires root's password.    Which user's password does sudo asks for? Is it the user represented by the real user ID of the process?   If yes, doesn't any user can gain the superuser privilege by running sudo and then providing their own password? Can Linux restrict that on some users? Is it correct thatsudo asks for the password after execve() starts to execute main() of /usr/bin/sudo?  Since the euid of the process has been changed to root (because the set-user-id bit of /usr/bin/sudo is set), what is the point of sudo asking for password later?   Thanks.  I have read , but it doesn't answer the questions above.
58188
I entered chmod -R 777 /usr/bin and now sudo is not working.  It says sudo must be setuid root.  Some advice online said to run chown root:root /usr/bin/sudo chmod 4755 /usr/bin/sudo.  On entering chown root:root /usr/bin/sudo it shows an opened in readonly mode error.
119491
I use following commands very often, and they're too long.  sudo /etc/init.d/kerio-kvc start sudo /etc/init.d/kerio-kvc stop   how can I create a shortcut command for them? something like sudo kerio start or sudo kerio stop
804
When using sudo to allow edits to files, I regularly get 'permission denied'.  For example, my mouse is jittery and sluggish, so I want to disable polling:  sudo echo "options drm_kms_helper poll=N"&gt;/etc/modprobe.d/local.conf   I'm prompted for a password, and then get:  bash: /etc/modprobe.d/local.conf: Permission denied   So I tried to do a temporary change to disable polling by using:  sudo echo N&gt; /sys/module/drm_kms_helper/parameters/poll   Yet again the system responded with:  bash: /sys/module/drm_kms_helper/parameters/poll: Permission denied   Any ideas?
15154
This is what I'd like to be able to do:  After a user's account is created, they should be able to ssh-tunnel, but their account is automatically removed after 30 days unless the countdown is reset by the root user.  How can I automate this? I'll have to handle around 15 users.
20310
Possible Duplicate:          Yeah I could  (and probably will) just escalate to root, but I'd like to know why this doesn't work?  sudo cat .mplayer/config &gt;&gt; /home/griff/.mplayer/config zsh: permission denied: /home/griff/.mplayer/config   sudo is configured to be able to run any command, I've placed no restrictions on it.
27663
I just ran this a few seconds ago. I managed to do Ctrl - C as soon as I realized what I started doing.  So far the only directory it's started going through is /bin.  I'm afraid to do anything else. So far I realized I can't use su as my normal user anymore.  Luckily I still have another root terminal open. What do I do?
65241
After running this command - sudo chown -R $(whoami) usr/{lib/node_modules,bin,share} I am not able to run sudo anymore: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set. How do I fixed that?  I read  but I am not sure what advice to follow and if it's applicable to my case.
83374
I recently found out that reboot works just as well as sudo reboot, from what I can tell. However, in a lot of instances, I see people saying to sudo reboot. Why is this? Are they the same, and just personal preference? Or are they different? Does sudo reboot do more than reboot?
74746
How do I reboot a Ubuntu Server from the command line? sudo reboot now never seems to work for me. Because its a server, I don't have a window manager installed, so I can't do it from a GUI (which always seems to work).    I've had the problem for years on different versions of the operating system. It happens in virtual machines and on real metal. The same problem exists with sudo shutdown now, too.  I've lived with it in the past. The difference now is I don't want to just hit the power button because I might lose data.
58568
I am trying to make a script like this:  #!/bin/bash sudo -s something...   When I execute it, I get a new shell but something is executed only when I exit the shell created by sudo -s, not inside it.  Any help?
74565
So far I have found four different ways to add a user to the sudoers group and not all methods work in all systems.  Why so many different implementations? What is the best? What is the standard (i.e. work in most systems)?  Different implementations:   Adding the user to the 'wheel' group.  Adding the user to the 'sudo' group.  Editing the file /etc/sudoers Editing the file /etc/sudoers using visudo
26678
My company has created lots of computer software but one issue we have is with login timeouts.  Some developers want to make them shorter for security, while most users want it be infinite?  Is there ever a justification to have no login timeout? How short is too short?
84019
I am having a problem where when I try to run say GParted, when I am prompted for a password, it says "Incorrect Password"  But when I enter the same password using terminal sudo gparted for example, it works. Why is that?  UPDATE  I noticed that theres a difference between using sudo and gksu. The later will fail with incorrect password ...
87180
Currently, for all my commands that require root access, I have to type them out on a command line.  I would like for the GUI to prompt me to key in my password, when sudo is required, instead of having to type out the commands from command line.  Is there any way to enable this? Previously one version of Ubuntu desktop had this feature out of the box.  This version of Ubuntu (that I am now running) I upgraded from a server installation.  I will add, my user account is already added to sudo group. Thus I can run commands such as sudo gedit or sudo apt-get but I'm not able to install software in the Ubuntu Software Center.
777
This seems to be a chicken-egg problem. The most common task using sudo is installing and removing software.  sudo apt-get purge &lt;appname&gt;   But sudo itself can be removed.  sudo apt-get purge sudo # Do not run this command on production computers!   This is where the fun comes  ubuntu@ubuntu:~$ sudo bash: /usr/bin/sudo: No such file or directory   Although it's obvious that no person in his right mind will purge sudo (other than me), someone can be fooled to run this command (not directly, in its hex mode, or whatever it's called) or a person could SSH in disguised as tech guru and do the mess.  So is there a way of reinstalling sudo?