I've got a VPS and have been trying to get my non-admin user added to the sudoers file to no avail. I tried running:
sudo adduser <username> sudo
which worked and said my account was added to that group but every time I try to run a sudo command with that account, I get this message:
ps_kkerley is not in the sudoers file. This incident will be reported.
And when I open up sudoers in vi, I see that I am, in fact, not added to the file. And sudoers is stuck in read-only. Using sudo visudo results in me getting this message:
visudo: sudoers file unchanged
So I can't even edit the file in the way it's supposed to be edited. I turned off Panel user management, rebooted the server and tried again to edit the sudoers file and it's the same situation.
What's INCREDIBLY frustrating about all this is that for my admin user (admin_kyle), I have RVM installed with Ruby 1.9.3-p374. When I'm in ps_kkerley and I check rvm list, I get "no rubies installed" and every attempt to install one ends in failure because I don't have access to create directories because that's not an admin user and despite being in the sudo group, ps_kkerley cannot run sudo commands.
When I go to use admin_kyle to run bundle install on my site, it gets up to this point:
Gem::InstallError: paperclip requires Ruby version >= 1.9.2.
So...again, Ruby 1.9.3-p374 is installed and being used by RVM for my admin_kyle account which I'm using to try and force the install of the gems needed for my site to work but I can't get past a certain point because Ruby 1.9.2 or greater isn't installed despite it being installed and I can't progress.
I'm getting extremely frustrated and after hours of Googling for answers for this am no better off than I was beforehand. Can someone PLEASE offer some suggestions/tips for this?
I'm going to cancel my VPS and regular hosting plan pretty quickly here if I can't get this resolved ASAP.