I ran rsync -aHA --delete --devices -S -xv /media/tmp/oldroot/ /media/newroot/. After I reboot, I can login. But I cannot use sudo and passwd.

How to fix this?

$ sudo ls
sudo: must be setuid root

$ passwd
Changing password for galaxy.
(current) UNIX password: 
passwd: Authentication failure
passwd: password unchanged
link|improve this question
also $ chromium Failed to move to new PID namespace: Operation not permitted – Galaxy Jul 14 '11 at 14:23
1  
Well, I just find I mount the new disk with nosuid. That is the reason. Maybe I should keep this question for those just made a mistake like me. – Galaxy Jul 14 '11 at 14:28
Go ahead add that comment as an answer. It lets us know that you have answered the question. And hey, you might just get upmodded ;) – new123456 Jul 15 '11 at 0:28
I tried and found I cannot self-answer within 8 hours ... – Galaxy Jul 16 '11 at 15:04
feedback

1 Answer

up vote 0 down vote accepted

Well, I just find I mount the new disk with nosuid. That is the reason.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.