I cannot edit /etc/shadow from an SSH session. I can download the shadow file, modify it, upload the changed version but when I try to SSH as root I get access denied.
I cannot run passwd. I also cannot su ... I get this message
Code:
su: must be suid to work properly
This is strange - the contents of /etc/shadow has changed after the reboot. The passwords for admin are different. The hash was
ri5o6zUUfwduo but it is now
1IlwGAR3XpQEU?
Code:
root:$1$mbpEqsa2$RPHO543rkcUijYhtWsKp70:10933:0:99999:7:::
nobody:*:10933:0:99999:7:::
admin:1IlwGAR3XpQEU:15311:0:99999:7:::
wuala::10933:0:99999:7:::
messagebus::10933:0:99999:7:777
sshd::10933:0:99999:7:777
Here is /proc/mounts ...
Code:
~ $ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / jffs2 ro,relatime 0 0
none /proc proc rw,relatime 0 0
none /sys sysfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,relatime,size=512k,mode=777 0 0
tmpfs /etc tmpfs rw,relatime,size=2048k 0 0
tmpfs /var tmpfs rw,relatime,size=4096k 0 0
tmpfs /var/log tmpfs rw,relatime,size=1024k 0 0
none /lacie/var tmpfs rw,relatime,size=1024k 0 0
usbfs /proc/bus/usb usbfs rw,relatime 0 0
udev /dev tmpfs rw,relatime,mode=755 0 0
ubi4:config /lacie/flash/config ubifs rw,relatime 0 0
ubi5:data /lacie/flash/data ubifs rw,relatime 0 0
/dev/sea1 /lacie/var/userPart/share/THIRD tntfs rw,relatime,uid=0,gid=0,umask=00,nls=utf8,reset_journal,errors=continue,mft_zone_multiplier=1 0 0
/dev/seb1 /lacie/var/userPart/share/FIRST tntfs rw,relatime,uid=0,gid=0,umask=00,nls=utf8,errors=continue,mft_zone_multiplier=1 0 0
/dev/sec1 /lacie/var/userPart/share/SECOND tntfs rw,relatime,uid=0,gid=0,umask=00,nls=utf8,reset_journal,errors=continue,mft_zone_multiplier=1 0 0
/dev/see1 /lacie/var/userPart/share/EXT3 ext3 rw,relatime,errors=continue,data=writeback 0 0
Here is /proc/mtd ...
Code:
~ $ cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00800000 00020000 "updater"
mtd2: 00400000 00020000 "system kernel"
mtd3: 03c00000 00020000 "system rootfs"
mtd4: 00800000 00020000 "config"
mtd5: 1af00000 00020000 "data"
Here is /proc/cpuinfo..
Code:
Processor : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 797.90
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1
Hardware : netspace_plug_v2
Revision : 0001
Serial : 0000000000000000
Here is /proc/meminfo
Code:
MemTotal: 125748 kB
MemFree: 5064 kB
Buffers: 132 kB
Cached: 96560 kB
SwapCached: 0 kB
Active: 38812 kB
Inactive: 65260 kB
Active(anon): 3292 kB
Inactive(anon): 5624 kB
Active(file): 35520 kB
Inactive(file): 59636 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 131064 kB
SwapFree: 131064 kB
Dirty: 28 kB
Writeback: 0 kB
AnonPages: 7408 kB
Mapped: 10264 kB
Slab: 9796 kB
SReclaimable: 1152 kB
SUnreclaim: 8644 kB
PageTables: 476 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 193936 kB
Committed_AS: 53248 kB
VmallocTotal: 516096 kB
VmallocUsed: 3540 kB
VmallocChunk: 508924 kB
Here is /proc/version ...
Code:
Linux version 2.6.31.8 (root@ws32.lacie.com) (gcc version 4.2.1) #2 Fri May 20 13:03:24 UTC 2011
Here is /proc/cmdline ...
Code:
root=/dev/mtdblock3 rootfstype=jffs2 ro console=ttyS0,115200
Here is /proc/partitions ...
Code:
major minor #blocks name
31 0 1024 mtdblock0
31 1 8192 mtdblock1
31 2 4096 mtdblock2
31 3 61440 mtdblock3
31 4 8192 mtdblock4
31 5 441344 mtdblock5
8 0 976762584 sea
8 1 976759808 sea1
8 16 976762584 seb
8 17 976760001 seb1
8 32 976762584 sec
8 33 976760001 sec1
8 64 7847935 see
8 65 7846890 see1
Here is df -h ... /dev/sea1, /dev/seb1, /dev/sec1,/dev/see1 are the external drives I have connected, It is weird to me that there is no /dev/sed1 though
Code:
~ $ df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 60.0M 39.1M 20.9M 65% /
tmpfs 512.0K 4.0K 508.0K 1% /tmp
tmpfs 2.0M 600.0K 1.4M 29% /etc
tmpfs 4.0M 560.0K 3.5M 14% /var
tmpfs 1.0M 140.0K 884.0K 14% /var/log
none 1.0M 120.0K 904.0K 12% /lacie/var
udev 61.4M 124.0K 61.3M 0% /dev
ubi4:config 5.0M 32.0K 4.7M 1% /lacie/flash/config
ubi5:data 392.3M 24.0K 387.6M 0% /lacie/flash/data
/dev/sea1 931.5G 694.2G 237.3G 75% /lacie/var/userPart/share/THIRD
/dev/seb1 931.5G 709.9G 221.6G 76% /lacie/var/userPart/share/FIRST
/dev/sec1 931.5G 857.4G 74.1G 92% /lacie/var/userPart/share/SECOND
/dev/see1 7.4G 145.0M 6.8G 2% /lacie/var/userPart/share/EXT3
Here is the output of ps ...
Code:
PID USER VSZ STAT COMMAND
1 root 1620 S init [2]
2 root 0 SW< [kthreadd]
3 root 0 SW< [ksoftirqd/0]
4 root 0 SW< [events/0]
5 root 0 SW< [khelper]
8 root 0 SW< [async/mgr]
89 root 0 SW< [kblockd/0]
122 root 0 SW [crypto]
123 root 0 SW [crypto_ret]
127 root 0 SW< [input-watchdog]
132 root 0 SW [pdflush]
133 root 0 SW [pdflush]
134 root 0 SW< [kswapd0]
135 root 0 SW< [aio/0]
137 root 0 SW< [crypto/0]
447 root 0 SW< [scsi_eh_0]
448 root 0 SW< [scsi_eh_1]
463 root 0 SW< [mtdblockd]
464 root 0 SW< [ftld]
465 root 0 SW< [nftld]
498 root 0 SW< [kondemand/0]
499 root 0 SW< [kconservative/0]
570 root 0 SW< [khubd]
595 root 1968 S < /sbin/udevd --daemon
943 root 0 SW< [ubi_bgt4d]
947 root 0 SW< [ubifs_bgt4_0]
951 root 0 SW< [ubi_bgt5d]
955 root 0 SW< [ubifs_bgt5_0]
986 root 4636 S klaxonServer -l /dev/null -v --key-create-allowed
1069 root 2912 S fsguardiand -c /etc/fsguardiand/fsguardiand.cfg -l /dev/null
1077 root 2892 S syslogd
1082 root 2892 S crond -c /var/spool/cron/crontabs
1188 root 3996 S < /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
1195 root 2732 S buttons-manager -l /dev/null
1196 root 8052 S < /usr/bin/php-cgi
1258 root 0 SW< [scsi_eh_2]
1259 root 0 SW< [usb-storage]
1286 root 15380 S /usr/sbin/smbd -D -s /etc/smb.conf
1289 root 15380 S /usr/sbin/smbd -D -s /etc/smb.conf
1468 root 0 SW< [scsi_eh_3]
1469 root 0 SW< [usb-storage]
1476 nobody 2920 S proftpd: (accepting connections)
1486 root 0 SW< [scsi_eh_4]
1487 root 0 SW< [usb-storage]
1503 root 4820 S /usr/sbin/afpd -F /etc/netatalk/afpd.conf
1621 root 2692 S avahi-daemon: running [STORAGE.local]
1727 root 2896 S /sbin/getty 115200 ttyS0 vt320
2735 root 0 SW< [RtmpCmdQTask]
2736 root 0 SW< [RtmpWscTask]
18449 root 3968 S < /usr/sbin/sshd -f /etc/openssh.conf
19402 root 0 SW< [scsi_eh_6]
19403 root 0 SW< [usb-storage]
19729 root 0 SW< [kjournald]
19970 root 6944 S /usr/sbin/nmbd -D -s /etc/smb.conf
20099 root 6652 S < sshd: admin [priv]
20103 admin 6652 S < sshd: admin@ttyp0
20104 admin 2896 R < -sh
22807 root 15488 R /usr/sbin/smbd -D -s /etc/smb.conf
25027 root 8348 S < /usr/bin/php-cgi
26776 admin 2896 R < ps