Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
By unrecoverable issues is meant permanently unrecoverable? Would you give an example of unrecoverable when when a backup exists offline?
Unrecoverable means you will lose something which cannot be recovered at all (like personal data). Obviously a backup may help to avoid that situation.
Unrecoverable may mean you cannot recover any change made after the last backup.
Recovering always has a cost. If you can't afford that the data loss is permanent.
Depending on your distro, you may have root shell available from grub advanced options anyway. So somebody in your home can already get root access fairly easily even if you didnt leave the terminal in a root session.
If the reason you leave terminal in root shell is you're tired of entering your password, you know you can increase the length of time before sudo asks for password again? That eliminates the other concern people have with your method of doing root tasks and accidentally thinking its a normal user terminal when entering things, cuz you still have to type sudo when you need such privs....
Code:
echo "Defaults timestamp_timeout=120" | sudo tee /etc/sudoers.d/timeout
I use 120 minutes, but you could set it much higher if you want...
Depending on your distro, you may have root shell available from grub advanced options anyway. So somebody in your home can already get root access fairly easily even if you didnt leave the terminal in a root session.
If the reason you leave terminal in root shell is you're tired of entering your password, you know you can increase the length of time before sudo asks for password again? That eliminates the other concern people have with your method of doing root tasks and accidentally thinking its a normal user terminal when entering things, cuz you still have to type sudo when you need such privs....
Code:
echo "Defaults timestamp_timeout=120" | sudo tee /etc/sudoers.d/timeout
I use 120 minutes, but you could set it much higher if you want...
Or use doas or sudo configured so that it does not require a password.
I wasn't going to comment any more on this thread ( probably ), but I would never
I would, but only for specific non-destructive commands.
Every security decision requires at LEAST an informal risk analysis, and often risk remediation. In the case of sudo and doas, limiting the things you can do without using a password to those things that cannot do damage seems a good FIRST step!
Keeping also in mind that configuring the REST of your node to be secure is just as important.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.