Re: root loggin in to console without network?

From: Dragan Cvetkovic (me_at_privacy.net)
Date: 09/29/04


Date: Wed, 29 Sep 2004 13:02:12 -0400

mgrd <mgrd@gmx.net> writes:

> Dragan Cvetkovic wrote:
> [..]
>> Password for root is in
>> /etc/security/passwd, all other users are via NIS.
>
> Are you sure?
> Verify in /etc/passwd if the entry for `root' is before the NIS entry,
> which is +::0:0::: (or similar)
>
> just a thought..

It is there:

$ grep -n root /etc/passwd
1:root:!:0:0::/:/usr/bin/ksh
$ grep -n '+::' /etc/passwd
11:+::0:0:::

i.e. root entry is at line 1, '+::0:0' is at line 11 (there are some other
entries after that but no root). Besides

ypcat passwd | grep root

returns nothing (i.e. we don't publish root password via NIS).

Dragan

-- 
Dragan Cvetkovic, 
To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer
!!! Sender/From address is bogus. Use reply-to one !!!


Relevant Pages

  • Re: portmanager core dumps
    ... of "sudo portupgrade -s | grep OLD". ... I've managed to get it to run by chowning it's config, files under /var/db and the entire ports collection to an update user. ... Changing to root will allow me to update as I need to, and as long as the src is cleaned up, no files owned by root are left behind in the ports tree. ...
    (freebsd-questions)
  • Re: I killed my system with grep
    ... Running a grep on an entire system as root is a bad idea. ... How is it possible that a simple command like this could ... Bluescreen leads to downtime. ...
    (freebsd-questions)
  • Re: ps oddity
    ... Now, when I was writing it, I was debugging and what not under my own user ... the program now runs as root because it's started ... ps -aux | grep would show me the daemon process. ...
    (freebsd-questions)
  • Re: "Bugbear" virus in Linux?
    ... It'll only work when root runs it! ... the same as all "linux viruses" on all the antivirus propaganda sites ... I wrote the test above the right way, so that if the grep produces ... nonssense the test will fail and nothing will happen. ...
    (comp.os.linux.misc)
  • Re: execute command on variable...
    ... $PROCESS=`ps -ef | grep smcboot`; ... sh: root: not found ... Assuming this is a sh/ksh/bash script, ... tool, such as awk, rather than combining grep and cut. ...
    (comp.unix.programmer)