Re: [freebsd-questions] root passwd change

2003-10-22 Thread Lowell Gilbert
Eric Pogroski [EMAIL PROTECTED] writes:

 here's whats needed:
 
 presuming a full, multiuser system is running
 # shutdown now
 # hit return at the prompt for 'sh' (csh  tcsh both go fubar in
 single-user mode) at this point, all of the filesystems are
 still mounted 
 # passwd root --- this is important - lost one system by NOT doing
 this
 # exit-or-reboot  --- I prefer a reboot, but that's me.

Oh, right; we're only trying to change the root password here.  That's
not actually affected by securelevel at all, so that was a red herring
for me to bring up securelevel in the first place.

 work's about 9 times out of 10. It's the tenth one that makes you bald
 from frustration... :)

You need the ability to invoke shutdown.  Since you don't have the
root password, you need some other account with either root (via sudo,
for example) or operator-group access.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [freebsd-questions] root passwd change

2003-10-22 Thread Eric Pogroski
On Wed, 22 Oct 2003 10:06:12 -0400
Lowell Gilbert [EMAIL PROTECTED] wrote:

 Eric Pogroski [EMAIL PROTECTED] writes:
 
  here's whats needed:
  
  presuming a full, multiuser system is running
  # shutdown now
  # hit return at the prompt for 'sh' (csh  tcsh both go fubar in
  single-user mode) at this point, all of the filesystems are
  still mounted 
  # passwd root   --- this is important - lost one system by NOT doing
  this
  # exit  -or-reboot  --- I prefer a reboot, but that's me.
 
 Oh, right; we're only trying to change the root password here.  That's
 not actually affected by securelevel at all, so that was a red herring
 for me to bring up securelevel in the first place.
 
  work's about 9 times out of 10. It's the tenth one that makes you
  bald from frustration... :)
 
 You need the ability to invoke shutdown.  Since you don't have the
 root password, you need some other account with either root (via sudo,
 for example) or operator-group access.
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Alright, before this turns ugly, I have a better way to go about this:

either a) just reboot the box, and boot off of a fixit disc, and use the
emergency terminal, follow the directions regarding soft linking
/etc/groups  /etc/*.db, and then change the password from there

or b) reboot the box, hit any key but enter when the countdown appears,
and enter single user mode, and do (providing no errors on boot):
mount -u / (takes the / partition out of read only mode)
mount -a -t ufs (mounts /tmp, /usr, and /var, and any other ufs
filesystems for you)
passwd root enter new pass, confirm new pass
reboot
login as root

it's kinda like doing the build world routine, only no fsck or massive
amounts of compiling.

However, if kern.securelevel is set to anything but '-1', and
kernsecurelevel_enable is set to YES in rc.conf, your not going to get
in without some good, old fashioned hacking.
Seeing as it was never mentioned what either or both of the previous
settings are, we both are shooting in the dark here.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [freebsd-questions] root passwd change

2003-10-21 Thread Eric Pogroski
On Tue, 21 Oct 2003 08:55:54 -0400
Lowell Gilbert [EMAIL PROTECTED] wrote:

 Eric Pogroski [EMAIL PROTECTED] writes:
 
  On Tue, 07 Oct 2003 19:37:19 +
  DanB [EMAIL PROTECTED] wrote:
  
   Is there other way to change the root password that been lost
   without shutting down the computer.
   
   Old way shutdown space barboot -s  #mount  -t ufs -a
   #passwd
   # exit to multiusers.
  
  Try this:
  
  # shutdown now
   hit return to accept 'sh' as the default shell 
  # passwd
  # exit
 
 Did you try that?
many, many times in the past... :)

 Won't it still be in the raised securelevel?
nope. sorry about the brevity of my previous reply, in a bit of a rush
then.

here's whats needed:

presuming a full, multiuser system is running
# shutdown now
# hit return at the prompt for 'sh' (csh  tcsh both go fubar in
single-user mode) at this point, all of the filesystems are
still mounted 
# passwd root   --- this is important - lost one system by NOT doing
this
# exit  -or-reboot  --- I prefer a reboot, but that's me.


work's about 9 times out of 10. It's the tenth one that makes you bald
from frustration... :)

ps: cc your replies to [EMAIL PROTECTED] so this stuff will get
to the archives.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: root passwd change

2003-10-20 Thread Lowell Gilbert
DanB [EMAIL PROTECTED] writes:

 Is there other way to change the root password that been lost without
 shutting down the computer.

Other than hacking the password file, no.
At least, I hope not -- that would be a big security hole.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: root passwd change

2003-10-20 Thread Eric Pogroski
On Tue, 07 Oct 2003 19:37:19 +
DanB [EMAIL PROTECTED] wrote:

 Is there other way to change the root password that been lost without
 shutting down the computer.
 
 Old way shutdown space barboot -s  #mount  -t ufs -a
 #passwd
 # exit to multiusers.

Try this:

# shutdown now
 hit return to accept 'sh' as the default shell 
# passwd
# exit

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


root passwd change

2003-10-19 Thread DanB
Is there other way to change the root password that been lost without
shutting down the computer.

Old way shutdown space barboot -s  #mount  -t ufs -a
#passwd
# exit to multiusers.


Dan

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]