Suddenly I'm running into permission problems when I issue commands as root via sudo.
I can create files in my home directory using normal permissions, so something like this works for example:
vi /home/mike/test.txt
But the equivalent command run using sudo doesn't work:
sudo vi /home/mike/test.txt
"test.txt" E212: Can't open file for writing
This is just one example, all commands using sudo fail for permission reasons.
I'm assuming because I can write using normal permissions that it's not an issue with the file system being read-only. It's also not limited to file writes, commands like "sudo visudo" will fail for permission reasons as well. I am not aware of any recent changes to the server that would have caused this ("sudo" had been working fine for this user for the 8 or so months it's been up). A hard reboot hasn't solved the issue.
Server is: Ubuntu 8.04.2 LTS (hardy)
Any ideas or help would be greatly appreciated!