If you’re not using Nano, you’ll need to refer to the manual (unless you already know how to save an edited file). This is generally a good idea, especially if you’re going to heavily modify your system.Īs this is Nano, you can finish editing the sudoers file by pressing the CTRL + X, then Y, and then the ENTER button. (See? Yet another article you can rely on for more information about Nano!) The command to start banging away on your sudoers file would be simply this:īy adding a comment, you’ll be reminded of what changes you’ve made from the default configuration. In my particular case, we’ll be using Nano. With your terminal now open, we’re going to use visudo to edit your sudoers file. In most distros, you can just press CTRL + ALT + T and your default terminal should open. You didn’t click them, did you? Well, you’re going to need an open terminal. If you clicked on either of the two links above, you’d know that those tools are used in the terminal. I’d prefer it if you thought it was the former, but there’s definitely a touch of the latter. Little do you know… It’d be far more accurate to just say that I’ve written a bunch of articles already. For a brief moment, one might be fooled into thinking I am good at preparing things. Huh… It’s almost as if I’ve been waiting to write this article for a while and that I took the time to write articles that explain all these things. This may come as a surprise, but I actually wrote an article about visudo! You can read that as well, especially if you’re new to Linux: Well then, I mentioned another application. In fact, I wrote a whole article on this subject, which you can read if you’re so inclined – and I’d suggest doing so if you’re new to Linux: So, what is sudo? It’s how you temporarily use elevated permissions. Who knows? It’s your computer, you can do what you want! Some people may want to decrease the length of time that they have with sudo because they work in a shared environment. This is also something that someone might want to change for the opposite reason. This is something people may want to change if they’re slow, doing a lot with sudo, or have good physical security. This is an arbitrary value, typically 15 minutes (I think), and you can customize that value for your particular environment. During that time, you can use sudo again without being asked to type your password again. When you use sudo you’re given a grace period. It’s pretty easy to change the sudo password timeout value, and reasonably safe to do so if you use visudo. Today’s article is going to be a pretty basic article about sudo, where we learn how to change the sudo password timeout.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |