The strange issuee is that before the command, the shadow file is here after is gone
- Code: Select all
root@fvdw-sta-kirkwood:/md1/etc # ls -la
total 1688
drwxr-xr-x 28 root root 4096 Oct 28 2014 .
drwxr-xr-x 22 root root 4096 Oct 28 2014 ..
drwxrwxr-x 3 root root 4096 Oct 28 2014 NetworkManager
drwxrwxr-x 3 root root 4096 Oct 28 2014 avahi
-rw-r--r-- 1 root root 1310700 Dec 12 2011 blacklist.dat
drwxr-xr-x 2 root root 4096 Oct 28 2014 bonding
drwxrwxr-x 2 root root 4096 Oct 28 2014 cron.d
drwxr-xr-x 5 root root 4096 Oct 28 2014 cups
drwxrwxr-x 4 root root 4096 Oct 28 2014 dbus-1
-rw-rw-r-- 1 root root 1 Mar 30 2010 dhclient.conf
-rw-r--r-- 1 root root 7212 Dec 12 2011 dhparams.pem
-rw-r--r-- 1 root root 97 Dec 12 2011 environment
-rw-r--r-- 1 root root 85 Dec 12 2011 ethtool.conf
drwxr-xr-x 2 root root 4096 Oct 28 2014 fan_controller
-rw-rw-r-- 1 root root 251 Oct 28 2014 fstab
-rw-rw-r-- 1 root root 299 Nov 19 2009 group
drwxrwxr-x 3 root root 4096 Oct 28 2014 hal
-rw-rw-r-- 1 root root 63 Mar 18 2009 host.conf
-rw-rw-r-- 1 root root 11 Dec 12 2011 hostname
-rw-rw-r-- 1 root root 20 Sep 24 2009 hosts
drwxr-xr-x 2 root root 4096 Oct 28 2014 iet
drwxr-xr-x 2 root root 4096 Oct 28 2014 init.d
drwxrwxr-x 3 root root 4096 Oct 28 2014 initng
-rw-rw-r-- 1 root root 1723 Mar 18 2009 inputrc
drwxr-xr-x 2 root root 4096 Oct 28 2014 iproute2
-rw-rw-r-- 1 root root 50 Dec 12 2011 issue
-rw-rw-r-- 1 root root 37 Mar 18 2009 ld.so.conf
-rw-r--r-- 1 root root 5067 Dec 12 2011 led_ctrl.conf
drwxr-xr-x 2 root root 4096 Oct 28 2014 lighttpd
drwxr-xr-x 2 root root 4096 Oct 28 2014 logrotate.d
-rw-rw-r-- 1 root root 36 Jun 26 2009 logrotate.tab
drwxr-xr-x 2 root root 4096 Oct 28 2014 lvm
-rw-r--r-- 1 root root 417 Dec 12 2011 mke2fs.conf
-rw-rw-r-- 1 root root 0 Mar 18 2009 motd
lrwxrwxrwx 1 root root 12 Oct 28 2014 mtab -> /proc/mounts
drwxr-xr-x 3 root root 4096 Oct 28 2014 netatalk
-rw-rw-r-- 1 root root 350 Mar 18 2009 nsswitch.conf
-rw-r--r-- 1 root root 409 Dec 12 2011 ntpd.conf
drwxrwxr-x 2 root root 4096 Oct 28 2014 openldap
-rw-rw-r-- 1 root root 110 Dec 12 2011 packageversion
drwxr-xr-x 2 root root 4096 Oct 28 2014 pam.d
-rw-rw-r-- 1 root root 556 Mar 18 2009 passwd
drwxr-xr-x 2 root root 4096 Oct 28 2014 patch
-rw-rw-r-- 1 root root 123 Nov 26 2010 php.ini
-rw-rw-r-- 1 root root 1351 Mar 18 2009 profile
-rw-r--r-- 1 root root 290 Dec 12 2011 profile.bash
-rw-r--r-- 1 root root 1911 Dec 12 2011 proftpd.conf
-rw-rw-r-- 1 root root 5606 Mar 18 2009 protocols
-rw-rw-r-- 1 root root 81 Mar 18 2009 resolv.conf
drwxrwxr-x 3 root root 4096 Oct 28 2014 samba
-rw-r--r-- 1 root root 666 Dec 12 2011 scsi_id.config
-rw-r--r-- 1 root root 70 Dec 12 2011 sd_alias.conf
-rw-rw-r-- 1 root root 89 Aug 6 2009 securetty
drwxrwxr-x 4 root root 4096 Oct 28 2014 security
-rw-rw-r-- 1 root root 13726 Mar 18 2009 services
-rw-rw-r-- 1 root root 416 Jun 13 21:11 shadow
-rw-rw-r-- 1 root root 52 Mar 18 2009 shells
drwxrwxr-x 4 root root 4096 Oct 28 2014 smart_spindown
drwxrwxr-x 2 root root 4096 Oct 28 2014 ssh
drwxrwxr-x 5 root root 4096 Oct 28 2014 ssl
drwxr-xr-x 3 root root 4096 Oct 28 2014 sysconfig
-rw-rw-r-- 1 root root 558 Apr 14 2011 syslog.conf
-rw-rw-r-- 1 root root 5 Mar 18 2009 timeserver
-rwxrwxr-x 1 root root 7135 Dec 12 2011 tzselect
drwxrwxr-x 3 root root 4096 Oct 28 2014 udev
lrwxrwxrwx 1 root root 29 Oct 28 2014 unicorn.conf -> /usr/lib/unicorn/unicorn.conf
-rw-rw-r-- 1 root root 1732 Dec 12 2011 unicorn.prod
-rwxrwxr-x 1 root root 38916 Dec 12 2011 zdump
-rwxrwxr-x 1 root root 80324 Dec 12 2011 zic
root@fvdw-sta-kirkwood:/md1/etc # tftp
BusyBox v1.21.0 (2013-02-04 10:48:06 GMT+1) multi-call binary.
Usage: tftp [OPTIONS] HOST [PORT]
Transfer a file from/to tftp server
-l FILE Local FILE
-r FILE Remote FILE
-g Get file
-p Put file
-b SIZE Transfer blocks of SIZE octets
root@fvdw-sta-kirkwood:/md1/etc # tftp -l /md1/etc/shadow -r shadow.txt -g 10.211.55.35
tftp: server error: (1) File not found
root@fvdw-sta-kirkwood:/md1/etc # cd /
root@fvdw-sta-kirkwood:/ # tftp -l /md1/etc/shadow -r shadow.txt -g 10.211.55.35
tftp: server error: (1) File not found
root@fvdw-sta-kirkwood:/ # cd md1
root@fvdw-sta-kirkwood:/md1 # cd etc
root@fvdw-sta-kirkwood:/md1/etc # ls -la
total 1684
drwxr-xr-x 28 root root 4096 Jun 14 19:52 .
drwxr-xr-x 22 root root 4096 Oct 28 2014 ..
drwxrwxr-x 3 root root 4096 Oct 28 2014 NetworkManager
drwxrwxr-x 3 root root 4096 Oct 28 2014 avahi
-rw-r--r-- 1 root root 1310700 Dec 12 2011 blacklist.dat
drwxr-xr-x 2 root root 4096 Oct 28 2014 bonding
drwxrwxr-x 2 root root 4096 Oct 28 2014 cron.d
drwxr-xr-x 5 root root 4096 Oct 28 2014 cups
drwxrwxr-x 4 root root 4096 Oct 28 2014 dbus-1
-rw-rw-r-- 1 root root 1 Mar 30 2010 dhclient.conf
-rw-r--r-- 1 root root 7212 Dec 12 2011 dhparams.pem
-rw-r--r-- 1 root root 97 Dec 12 2011 environment
-rw-r--r-- 1 root root 85 Dec 12 2011 ethtool.conf
drwxr-xr-x 2 root root 4096 Oct 28 2014 fan_controller
-rw-rw-r-- 1 root root 251 Oct 28 2014 fstab
-rw-rw-r-- 1 root root 299 Nov 19 2009 group
drwxrwxr-x 3 root root 4096 Oct 28 2014 hal
-rw-rw-r-- 1 root root 63 Mar 18 2009 host.conf
-rw-rw-r-- 1 root root 11 Dec 12 2011 hostname
-rw-rw-r-- 1 root root 20 Sep 24 2009 hosts
drwxr-xr-x 2 root root 4096 Oct 28 2014 iet
drwxr-xr-x 2 root root 4096 Oct 28 2014 init.d
drwxrwxr-x 3 root root 4096 Oct 28 2014 initng
-rw-rw-r-- 1 root root 1723 Mar 18 2009 inputrc
drwxr-xr-x 2 root root 4096 Oct 28 2014 iproute2
-rw-rw-r-- 1 root root 50 Dec 12 2011 issue
-rw-rw-r-- 1 root root 37 Mar 18 2009 ld.so.conf
-rw-r--r-- 1 root root 5067 Dec 12 2011 led_ctrl.conf
drwxr-xr-x 2 root root 4096 Oct 28 2014 lighttpd
drwxr-xr-x 2 root root 4096 Oct 28 2014 logrotate.d
-rw-rw-r-- 1 root root 36 Jun 26 2009 logrotate.tab
drwxr-xr-x 2 root root 4096 Oct 28 2014 lvm
-rw-r--r-- 1 root root 417 Dec 12 2011 mke2fs.conf
-rw-rw-r-- 1 root root 0 Mar 18 2009 motd
lrwxrwxrwx 1 root root 12 Oct 28 2014 mtab -> /proc/mounts
drwxr-xr-x 3 root root 4096 Oct 28 2014 netatalk
-rw-rw-r-- 1 root root 350 Mar 18 2009 nsswitch.conf
-rw-r--r-- 1 root root 409 Dec 12 2011 ntpd.conf
drwxrwxr-x 2 root root 4096 Oct 28 2014 openldap
-rw-rw-r-- 1 root root 110 Dec 12 2011 packageversion
drwxr-xr-x 2 root root 4096 Oct 28 2014 pam.d
-rw-rw-r-- 1 root root 556 Mar 18 2009 passwd
drwxr-xr-x 2 root root 4096 Oct 28 2014 patch
-rw-rw-r-- 1 root root 123 Nov 26 2010 php.ini
-rw-rw-r-- 1 root root 1351 Mar 18 2009 profile
-rw-r--r-- 1 root root 290 Dec 12 2011 profile.bash
-rw-r--r-- 1 root root 1911 Dec 12 2011 proftpd.conf
-rw-rw-r-- 1 root root 5606 Mar 18 2009 protocols
-rw-rw-r-- 1 root root 81 Mar 18 2009 resolv.conf
drwxrwxr-x 3 root root 4096 Oct 28 2014 samba
-rw-r--r-- 1 root root 666 Dec 12 2011 scsi_id.config
-rw-r--r-- 1 root root 70 Dec 12 2011 sd_alias.conf
-rw-rw-r-- 1 root root 89 Aug 6 2009 securetty
drwxrwxr-x 4 root root 4096 Oct 28 2014 security
-rw-rw-r-- 1 root root 13726 Mar 18 2009 services
-rw-rw-r-- 1 root root 52 Mar 18 2009 shells
drwxrwxr-x 4 root root 4096 Oct 28 2014 smart_spindown
drwxrwxr-x 2 root root 4096 Oct 28 2014 ssh
drwxrwxr-x 5 root root 4096 Oct 28 2014 ssl
drwxr-xr-x 3 root root 4096 Oct 28 2014 sysconfig
-rw-rw-r-- 1 root root 558 Apr 14 2011 syslog.conf
-rw-rw-r-- 1 root root 5 Mar 18 2009 timeserver
-rwxrwxr-x 1 root root 7135 Dec 12 2011 tzselect
drwxrwxr-x 3 root root 4096 Oct 28 2014 udev
lrwxrwxrwx 1 root root 29 Oct 28 2014 unicorn.conf -> /usr/lib/unicorn/unicorn.conf
-rw-rw-r-- 1 root root 1732 Dec 12 2011 unicorn.prod
-rwxrwxr-x 1 root root 38916 Dec 12 2011 zdump
-rwxrwxr-x 1 root root 80324 Dec 12 2011 zic
root@fvdw-sta-kirkwood:/md1/etc #
look at the amount of files on the /md1/etc dirs
before the command we have 1688 files, after the tftp command the files are 1684.
4 files are gone and one of this is
shadowobviously no trace of shadow.txt on my pc