![]() I have largely come to the conclusion that privilege management for non-remote access desktop computers is really just down to personal preference, basically all configurations are sane. The problem was to get su to work without sudo. ![]() If you use sudo not having a root password closes an 'attack vector', of course how many are attacking your desktop computer by trying to log in as root, not really a problem! It also just makes your user account the attack vector instead, but now they have to find out your name. except for a minor detail it works fine, its true that sudo would do the job for you. I have tried the command 'sudo su' several times. root is not disabled! sudo really does switch to root, see passwd manual for the '-l' flag. Usually its trivial to get a root maintenance shell without a password in default configuration (makes recovering when you forget your password easy!), sudo will not change that. If something breaks in your system and you need to boot into single user mode the system will expect you to enter the root password to access a maintenance shell. You will see this usage of sudo pretty much anywhere you read a tutorial about Ubuntu on the web. Installing tools and other using command line in Ubuntu 18.04 with sudo works perfectly. The dirty fix is to reset the users password via sudo su & passwd username. ![]() For instance, to run apt-get dist-upgrade as a superuser, you could use: sudo apt-get dist-upgrade. I can not login with that password neither after this has occurred. There are some tasks that you cannot do thru sudo. Anybody with full 'sudo' permission may perform something 'as a superuser' by pre-pending sudo to their command. As a single user on a workstation, I accomplish everything with sudo.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |