This question already has an answer here:
I was trying to extract a web template into the hosting folder /docroot on the web service, which is working, however I do not have permission to complete the action.
I cannot stand being locked out of anything on a machine, and before you all go on a rant about why the root account is locked yadda yadda , dont, just dont.
So... did a sudo visudo
# User privilege specification root ALL=(ALL:ALL) ALL username ALL=(ALL:ALL) ALL
saved as tmp and then as sudoers , checked the files, both sudoers and sudoers.tmp same size
Still no joy, cannot access required folders and files. Rebooted, no go
I was about to start editing the passwd files next, but thought I best ask what might be going on here as I am not entirely familiar with Ubuntu 13.10 desktop and Unity.
This is not a production machine, only experimenting with web services and the available web production tools. I get the root account is locked and sudo 'ing every command from the command line is not an option, just aggro.
If anyone can offer a (even if unsecured) solution to this permissions issue I would be very grateful. I do not care about breakage, please do not lecture, I can re-image this unit in less than 20 min.
I tried adding my account to the admin group as well, only to get an error saying the admin group doesn't exist.
# Members of the admin group may gain root privileges %admin ALL=(ALL) ALL
huh? Yep, confused. TIA