Quote:
Originally Posted by
iswarya123
can anyone help me in the above ?
First off: please do not bump up threads. If someone can answer you s/he will - and if not, then bumping up the thread won't help you either. Many people here do not visit unix.com regularly on weekends which is probably why your thread hasn't been answered up to now.
Second: yes, i can help you but are not going to like what i say.
The first thing is, you have generally no business tampering with the ownership of rights of files put there by the system. Actually you
can do that in select few exceptional cases but if you do that you have to understand you are taking a very big risk and so you should know what you are doing and why pretty clearly beforehand.
I like it better that way is NO such reason to do it.
The reason why
sudo refuses to use
/etc/sudoers now is because it needs to be readable/writable only for root for security reasons. It doesn't make sense to have rules about who is allowed to become root writable by anybody else but root.
Therefore, by changing the right of the file you have made
sudo absolutely useless and effectively shut it off. You need a "conventional" way of becoming root therefore, but in many cases these are blocked intentionally for security considerations.
One way is to use
su - root and switch to the root user. You need the root password for that and
su may be forbidden to be executed.
Second way is to log on as root directly. You also need the root password and root may be forbidden to log on remotely or generally. If it is only forbidden to log on remotely you can log on locally - usually via the KVM, ILO or whatever the maintenance access to the server is called - via a local serial console.
Third, you can use a boot-CD and reboot the server from that, then mount the original root filesystem (
/etc is probably located there) and change the rights back to what it was. Then reboot the server from its own filesystem and it should work again. You will need local access to the server for this and the procedure is going to be disruptive.
I hope this helps.
bakunin