[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] config sh file



Hi All,

Please can anyone help with this part of the boot config for the router
boot CD I am trying to use, boot from the CD you can log in with just
root, but if you try this config in the floppy drive it will not allow
root access.

How is the encrypted root password made as 
USER_ROOT_PW="Ij2ldhhBjCBj."

Used grub ones for making password on menu selection, think it was like
this command crypt, maybe look on my Mandrake system for info.

Is it possible that you need to login via ssh as guest account, then su
as root in order to log on.


Looked at passwd to see if I could run it on the system, but its hash
character set is far to long

thanks for any insight or help with regards

fred dodd


# This is where accounts are declared. Passwords are generated from
# normal unix crypt().

USER_ROOT_PW="Ij2ldhhBjCBj."		# encrypted root password
USER_GUEST_PW="E8BbGFPzjcKUc"		# encrypted guest password

# The DHCPd configuration.

DHCPD_CONF="/mnt/dhcpd.conf"		# Path to master DHCPd config
DHCPD_LEASE="/var/run/dhcpd.leases"	# Path to ramdisk DHCP leases
DHCPD_PID="/var/run/dhcpd.pid"		# Path to ramdisk pid file

# Whether or not to run as a proxy server.

PROXY=yes				# Anything other than "yes" is no.

#
# NO MODIFICATIONS BEYOND THIS POINT
------------------------------------------
#

export MY_IP MY_MASK MY_BCAST MY_GATEWAY MY_HOSTNAME MY_DOMAIN

# First we need to create accounts on this machine.

echo "root:$USER_ROOT_PW:0:0:Root User:/:/bin/bash"	> /var/etc/passwd
echo "guest:$USER_GUEST_PW:2000:99:Guest:/:/bin/bash" 	>>
/var/etc/passwd
echo "nobody:x:99:99:Nobody:/:/dev/null"		>> /var/etc/passwd


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.