Home page logo
/

basics logo Security Basics mailing list archives

Re: Root account desactivated
From: Paul Mohr <boredMDer74 () gawab com>
Date: Thu, 11 Mar 2004 20:39:15 -0500


On Mar 11, 2004, at 5:50 PM, sil wrote:



If you have sudo on the machine you can try doing something like

sudo sed 's/\/sbin/\/nologin/\/bin\/bash/g' /etc/passwd >> /tmp/passwd|\
mv /tmp/passwd /etc/passwd

Mind you that would change every single locked out account to have a shell of '/bin/bash'. Not just root.


---------------------------------------------------------------------------
Ethical Hacking at the InfoSec Institute. Mention this ad and get $545 off any course! All of our class sizes are guaranteed to be 10 students or less to facilitate one-on-one interaction with one of our expert instructors. Attend a course taught by an expert instructor with years of in-the-field pen testing experience in our state of the art hacking lab. Master the skills of an Ethical Hacker to better assess the security of your organization. Visit us at: http://www.infosecinstitute.com/courses/ethical_hacking_training.html
----------------------------------------------------------------------------


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault