New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
After TuxLite installation, su gives Authentication failure error
So I installed TuxLite on a clean Ubuntu 12.04 Minimal 32 Bit OpenVZ VPS and after installation and logging in with the newly created account, su gives an Authentication failure after entering the correct root password.... I reinstalled my VPS and tried it twice, but no-go.
I also added the newly created account to the sudoers before rebooting, but that didn't help either
Surely I must be something stupid wrong, because if I even fail to install/run a script like Tuxlite, I can go home....
Any pointers?
Thanks!
Comments
@Freek, did you follow the installation correctly (http://tuxlite.com/installation/)? I'm not really sure what the problem would be, but looking at the available scripts, it seems they are built on Debian: (http://tuxlite.com/scripts/)
Perhaps Ubuntu is the problem?
sudo
Are you up for doing what you did again, but on Debian, and see if you get the same problem?
Tried that already too but it says: sudo: must be setuid root
Could it be that the first root account had the same password as the second account I created?
I know it worked in the past on 10.04, but now I'm running it on 12.04, but should work as well. I'm willing to give it another shot on Debian if it can't be solved though.
A good experience that you can share on your upcoming project
Absolutely !
Hi again Freek, I've seen the same error message before on a Debian 6 minimal template ; the sudo binary was installed without setuid permissions. Just remove and reinstall the sudo package.
Sean
"sudo su" is ubuntu's weird syntax for me
Hi Sean. Thanks for the reply. I assume I have to do this directly after I installed TuxLite, so that means I have to do a complete reinstall again? Not a problem, but just checking!
I believe it's first su and then afterwards sudo everytime, right?
Hi Freek, I have not used TuxLite myself, but you shouldn't need to reinstall the OS, just the sudo package (e.g., 'apt-get remove sudo; apt-get install sudo'). Of course, you will need to be root to do this, and if you can't get to root right now, you will need to reset the root password or reinstall the OS.
Sudo and su serve equivalent purposes; you shouldn't need to chain them together, just use one or the other. sudo is beefed-up su, with access control lists, logging, restricting commands users can run, etc.
best,
Sean
I have multiple ubuntu 12.04 vpses with the same problem, they were this way out of the box. Has nothing to do with tuxlite (didn't use that on at least 2 systems). Haven't been able to fix it (not willing to spend a lot of time on this), I'm using the method @djvdorp suggested to circumvent the problem.
The root account is disabled after Tuxlite has been installed for security reason.
Resetting the root password via SolusVM did not work.
I managed to fix it by reinstalling sudo after Tuxlite ran AND by adding my newly created account to the sudoers file, so like:
apt-get remove sudo
apt-get install sudo
nano /etc/sudoers
freek ALL=(ALL) ALL
See my 'fix' above. What @djvdorp says only worked for me after manually adding me to the sudoers file.
Ubuntu has a sudoers/Admin group so editting the sudoers file shouldnt be needed iirc
sudo su -> sudo -s
Sadly it was needed because the first time I didnt and ended up reinstalling the whole thingy again
Glad to hear you resolved the issue!