On Thu, 12 Sep 2002, Nikhil Joshi wrote:
Is it possible to give root previlages to some account ? It shud have all the powers of root. i know its kinda dumb idea but still i wud
create a new user, then edit /etc/passwd and set his uid to 0. However, if you try to change this user's password, it will change root's password instead. The only way to change this user's password is by directly editing /etc/shadow.
I don't think I need to tell you that you should not do this.
$cp /bin/bash /home/foo #chown root /home/foo/bash #chmod +s /home/foo/bash
but when i do ./bash in directory nd type whoami it gives me foo nd not root !
this is a security precaution. bash ignores a setuid flag on itself.