Cervante
PS3 ID: Cervante1
I got a replacement usb cable, then started to telnet the gp2x, logged in as root, changed the pass and now I forgot the pass
...what do I do now?
Opps.Cervante posted on Mar 3 2007 at 01:07 AM said:I got a replacement usb cable, then started to telnet the gp2x, logged in as root, changed the pass and now I forgot the pass...what do I do now?
root::0:0:root:/root:/bin/sh
Cervante posted on Mar 3 2007 at 01:42 AM said:no i am not logged in anymore...![]()
max@vila:~> telnet gp2x
Trying 10.1.0.1...
Connected to gp2x.
Escape character is '^]'.
Linux 2.4.25 (gp2x) (ttyp0)
gp2x login: root
[root@gp2x root]$cat /etc/passwd
root::0:0:root:/root:/bin/sh
bin:x:1:1:bin:/bin:
daemon:x:2:2:daemon:/sbin:
adm:x:3:4:adm:/var/adm:
lp:x:4:7:lp:/var/spool/lpd:
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:
news:x:9:13:news:/var/spool/news:
uucp:x:10:14:uucp:/var/spool/uucp:
operator:x:11:0:operator:/root:
games:x:12:100:games:/usr/games:
gopher:x:13:30:gopher:/usr/lib/gopher-data:
ftp:x:14:50:FTP User:/home/ftp:
nobody:x:99:99:Nobody:/:
A little investigation suggests that only /etc/passwd changes.Cervante posted on Mar 3 2007 at 01:42 AM said:no i am not logged in anymore...![]()
<see below> (hardwired path here - god am I a kiddie today...)
But I've tested this on firmware 2...Cervante posted on Mar 3 2007 at 02:46 AM said:the FW im running is 3.0
#! /bin/sh
cd /etc
cp passwd passwd_dave
sed '/^root/d' passwd > passwd_fix
if [ -f passwd_fix ]; then
echo "root::0:0:root:/root:/bin/sh" > passwd
cat passwd_fix >> passwd
fi
exec /usr/gp2x/gp2xmenu
/etc/passwd is.Orkie posted on Mar 3 2007 at 08:49 AM said:I'm not sure if /etc/passwd or /etc/shadow is used on the GP2X.
#! /bin/sh
cat /etc/passwd > /mnt/sd/passwd.txt
cat /etc/shadow > /mnt/sd/shadow.txt
sync
exec /usr/gp2x/gp2xmenu
root:<something>:0:0:root:/root:/bin/sh
#! /bin/sh
cd /etc
cp passwd passwd_dave
sed '/^root/d' passwd > passwd_fix
if [ -f passwd_fix ]; then
echo "root::0:0:root:/root:/bin/sh" > passwd
cat passwd_fix >> passwd
fi
sync
exec /usr/gp2x/gp2xmenu