News for hackers. Stuff that matters.
Re:/bin/false is not security (2005) by jstimpfle on Thursday December 28, 2017 @04:45PM (#16025157)
what's wrong with public key auth as root? The "alternative" would be making a sudo-enabled login account. Another indirection, and probably not fully transparent...
Re:/bin/false is not security (2005) by isostatic on Thursday December 28, 2017 @06:30PM (#16026056)
If you have more than one person logging in, it's far easier to identify who did something as root by looking at the username that logged in.

Also far better to encourage running sudo for every command, gives a nice simple audit log of what happened, right there in your syslog, so you can identify and undo mistakes, and also eliminate lines of enquiry.

Clearly you can cover your tracks with the old sudo vi / !bash and similar tricks, but the goal isn't to protect against hostile privileges users, its to know what happened so that when John is on holiday you can see what he did to fix the problem you had last week.

Re:/bin/false is not security (2005) by cuckcuckspruce on Friday December 29, 2017 @06:30AM (#16028940)
If your sudoers policy allows you to run vi then you've already failed.

sudoedit(8) has been around for a long time and it solves this problem.

Re:/bin/false is not security (2005) by isostatic on Friday December 29, 2017 @02:01PM (#16031193)
Failed at what? I want my sysadmins to have full access, I just want to know what they did. I'm not trying to defend against malicious staff members - I trust them, otherwise they wouldn't have sudo access.
Re:/bin/false is not security (2005) by cuckcuckspruce on Friday December 29, 2017 @06:06PM (#16032645)
If you can trust your administrators then you don't need to worry about shell escapes in editors.

The idea for sudoedit is that it allows you to allow non-root users to safely edit files, and if they shell out of their editor then they've not gained root rights - they edit a temporary file as a regular user and then sudo moves the file into place after it is edited.

Re:/bin/false is not security (2005) by Spooky23 on Thursday December 28, 2017 @06:17PM (#16025972)
Use of shared accounts eliminates individual accountability if humans are using them.

Unless you have an system with its own auth and audit capability connecting as root, shared accountability is bad. People do dumb shit, including illegal shit.

Re:/bin/false is not security (2005) by xstartup on Thursday December 28, 2017 @06:43PM (#16026156)
If you run any command it will run with the root privilege when you are root. It happened to me many times, where I ran a command and it asked for root then I investigated why the particular command needs root and figured that this is not what I want in the first place.

So, account with sudo capabilities is better than then one which is sudo by default.

Re:/bin/false is not security (2005) by drdaeman on Thursday December 28, 2017 @05:56PM (#16025805)
In my personal opinion, there's nothing wrong with that, as long as key is not compromised, of course.

However, it's somewhat less secure than sudo-enabled account with password requirement. If your SSH key is somehow compromised (unpassworded keyfile or attacker had gained access to ssh-agent's socket, or you've ran a network-listening daemon from your account that had an exploitable RCE) you're a little bit more safe if attackers won't get root access. This only works well for noexec $HOME, of course, as attacker can't mess with your .*shrc and trick you into entering the password.