I may be missing something here, but given that the /etc directory belongs to midfun, surely the simplest way to root it is just: cd /etc cp passwd passwd.new vi passwd.new [remove root password] mv passwd passwd.old mv passwd.new passwd John