Rabu, 02 April 2014

Something Else on myTerminal

When i log in as root on terminal i see error like this "sudo: /var/lib/sudo/username writable by non-owner (040777), should be mode 0700" I confused about this, so i search and google and i see someone to try type "sudo chmod 0700 /var/lib/sudo" but isn't work to me and now the notif changed to bla bla bla should be mode uid, now i can fixed :D , i get the solutions on askubuntu someone comment like this:

"
To fix that particular issue is easy:

sudo chown -R root /var/lib/sudo
As for why that happened... I believe that when you were messing with permissions for /var/www you somehow, by accident, changed permissions (and ownership) of all /var tree, including /var/lib/sudo. (I bet the user you were trying to set has id=33)

This may have many consequenses, the sudo warning message being just one symptom.

UPDATE

As for the consequences... it really depends on what (and where) you did. Many (but not all) files and folds in the /var tree are owned by root:root, and its basically impossible to know who each and every file and folder originally belonged to. Full reinstall would be the only feasible way to restore it.

If you changed only the /var/lib tree, it narrows down the "damage", but not much: there are still hundreds of files there.

You can try to find out which command you issued caused this trouble, accesing your bash history:

gedit ~/.bash_history &
Maybe this will give a clue about what happened and its consequences"

and it's works to me....

0 komentar:

Posting Komentar