No Shares management from Dashboard

Re: No Shares management from Dashboard

Postby carloph » Thu Mar 22, 2018 1:57 pm

I did everithing on the private LAN (192.168.10.x) and then I move back the NAS on the std LAN

I used PUTTY on the PC and I can access the NAS SSH LOGIN, but

- SSH answers on port 22 (does not answer on port 2222)

- SSH access denied when I insert the root password (I used "the same as you use with the admin account to open the web-interface")

Code: Select all
login as: root
root@x.y.z.k's password:
Access denied


Thanks
carloph
Donator VIP
Donator VIP
 
Posts: 45
Joined: Tue Sep 09, 2014 2:01 pm

Re: No Shares management from Dashboard

Postby Jocko » Thu Mar 22, 2018 3:25 pm

:scratch

I am sorry but you need to move again your NAS on the 2d LAN and open a telent access.

So I assume you re-assemble the raid md1 and it is mounted on the folder /md1.
Then do
Code: Select all
ls -l /md1/etc/shadow*
ls -l /md1/usr/lib/python2.6/site-packages/unicorn/authentication/local/user.py*
(you should at each time to get two files (one with the extension '.backup')
Code: Select all
ls -l /md1/etc/initng/runlevel
ls -l /md1/etc/initng

Download the file /md1/etc/shadow
Code: Select all
cd /md1/etc
tftp -l shadow -r shadow -p ip-pc
(use this time the flag p)
So you should have a new file in tftp folder and please to send it to me by pm
Download the file user.py
Code: Select all
cd /md1/usr/lib/python2.6/site-packages/unicorn/authentication/local
tftp -l user.py -r user.py -p ip-pc
(use the flag p)
So you should have a new file in tftp folder and please to send it to me by pm
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: No Shares management from Dashboard

Postby carloph » Tue Mar 27, 2018 9:17 am

Ok,
when I perform
Code: Select all
ls -l /md1/etc/shadow*
-rw-rw-r--    1 root     root           416 Mar 18  2009 /md1/etc/shadow
ls -l /md1/usr/lib/python2.6/site-packages/unicorn/authentication/local/user.py*
-rw-rw-r--    1 root     root          9513 Dec 12  2011 /md1/usr/lib/python2.6/site-packages/unicorn/authentication/local/user.py
-rw-rw-r--    1 root     root          9455 Dec 12  2011 /md1/usr/lib/python2.6/site-packages/unicorn/authentication/local/user.pyc
-rw-rw-r--    1 root     root          9159 Dec 12  2011 /md1/usr/lib/python2.6/site-packages/unicorn/authentication/local/user.pyo

I found only the original files in each dir: no files with the extension '.backup' as it should be created by the new sshD.i script

It seems that the new SSHD.I did not run: i checked and the new runlevel & ssh.i files maintained the permissions of the original files

Again, the fact that ssh answers on port 22 (not 2222) is really strange.

NOTE: the file /etc/unicorn.conf contains the following statements
Code: Select all
ssh:
      _config:
             enabled: false
             port: 2222
sftp:
      _config:
             enabled: false
             enabled_on_default_shares: true

question: do I have to disable sftp from the lacie Dashboard services ?
carloph
Donator VIP
Donator VIP
 
Posts: 45
Joined: Tue Sep 09, 2014 2:01 pm

Re: No Shares management from Dashboard

Postby carloph » Tue Mar 27, 2018 11:11 am

Now I disabled sftp from the lacie Dashboard services and I cannot reach the NAS from SSH anymore (nor port 22 neither port 2222)

I scan all ports and the 22 is not open (before, when sftp was enable, port-scan showed that SSH port 22 was open)
carloph
Donator VIP
Donator VIP
 
Posts: 45
Joined: Tue Sep 09, 2014 2:01 pm

Re: No Shares management from Dashboard

Postby carloph » Tue Mar 27, 2018 2:12 pm

I'm trying to understand what's happening and I found this really strange situation:

If I boot from fvdw console, the content of the DIR /md1/etc/initng/runlevel is the following:
Code: Select all
-rwxrwxr-x    1 root     root           135 Mar 22  2018 09:30 default.runlevel
-rwxr-xr-x    1 root     root           136 Mar 22  2018 09:27 default.runlevel.org
-rwxrwxrwx    1 root     root            43 Feb 04  2011 21:26 wait.runlevel

where default.runlevel has sshd line without #, while default.runlevel.org has sshd line with #

If I boot from LACIE firmware, the content of the DIR /etc/initng/runlevel (extracted from the Dashboard log) is the following:
Code: Select all
-rwxrwxr-x    1 root     root           136 Mar 22  2018 09:30 default.runlevel
-rwxr-xr-x    1 root     root           136 Mar 22  2018 09:27 default.runlevel.org
-rwxrwxrwx    1 root     root            43 Feb 04  2011 21:26 wait.runlevel

where default.runlevel is the same of default.runlevel.org (both with #sshd line) ! Here is why SSHD do not start at boot !

I tried modifying the default.runlevel permissions to the original one (from 775 to 755), but nothing change.

Any suggestions ?
carloph
Donator VIP
Donator VIP
 
Posts: 45
Joined: Tue Sep 09, 2014 2:01 pm

Re: No Shares management from Dashboard

Postby carloph » Tue Mar 27, 2018 2:18 pm

The same for
Code: Select all
/etc/initng/sshd.i.org
/etc/initng/sshd.i

same content if I download them from LACIE Dahboard log
carloph
Donator VIP
Donator VIP
 
Posts: 45
Joined: Tue Sep 09, 2014 2:01 pm

Re: No Shares management from Dashboard

Postby Jocko » Tue Mar 27, 2018 2:38 pm

Hi carloph,

With your last tests, I see better the issue. :thumbup

First the port issue, you get an answer on port 22 because the sftp server was running. You should keep it running. You get no answer on port 2222 because the ssh server is not running at least according to your unicorn.conf output
Code: Select all
ssh:
      _config:
             enabled: false
             port: 2222


So I think you will get the ssh access if you edit this file.

Then download this file on your laptop to edit it and upload it again :
( I assume you still get the raid1 md1 mounted on /md1)
Code: Select all
cd /md1/etc
cp unicorn.conf unicorn.conf.org
tftp -l unicorn.conf -r unicorn.conf -p ip-pc

then edit the file available in tftp folder to get these settings
Code: Select all
ssh:
      _config:
             enabled: true
             port: 2222
and upload it
Code: Select all
tftp -l unicorn.conf -r unicorn.conf -g ip-pc


So try to reboot the nas and see if you can get a root login.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: No Shares management from Dashboard

Postby carloph » Tue Mar 27, 2018 4:22 pm

No SSH available

Ports 22 and 2222 are not open

It happens as I explained in the last 2 msgs: If I check the updated files (default.runlevel, sshd.i and now unicorn.conf) when I boot from the fvdw console they are ok, if I boot from LACIE firmware and download them from the Dahboard log, their contents are NOT changed, while their last-change-date are updated correctly (with the time when I update them).

It means that SSHD is still commented in default.runlevel and SSHD remain FALSE in unicorn.conf

Could be due to some RAID checking ?
carloph
Donator VIP
Donator VIP
 
Posts: 45
Joined: Tue Sep 09, 2014 2:01 pm

Re: No Shares management from Dashboard

Postby Jocko » Wed Mar 28, 2018 9:22 am

Hi Carloph,

after rebooting, if you do not see the changes from the dashboard but with a new "last modification date" on the related files that would mean either Lacie overwrites the files on nas booting (but in this case, you should have later the restored lacie file version on md1, Can you confirm this point?) or now the firmware uses file versions from other raids

So for the 2d idea, get again a telnet access, and build these raids :
Code: Select all
mkdir /md0
mdadm --assemble /dev/md0 /dev/sd[abcde]7
mount /dev/md0 /md0

mkdir /md2
mdadm --assemble /dev/md2 /dev/sd[abcde]9
mount /dev/md2 /md2


So post these outputs
Code: Select all
ls -l /md2
ls -l /md0


use cd and ls commands to search on these both raid if you have a folder etc and its subfolder initng and post their content (ls cmd)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: No Shares management from Dashboard

Postby carloph » Wed Mar 28, 2018 9:43 am

I mount also md1 for comparison, here are the output

Code: Select all
root@fvdw-sta-kirkwood:/ # ls -la /md2
total 28
drwxr-xr-x    5 root     root          4096 Dec  4 09:17 .
drwxr-xr-x   15 root     root           580 Mar 28 09:34 ..
drwxr-xr-x    4 root     root          4096 Mar 27 15:40 EDMINI
drwx------    2 root     root         16384 Dec  4 09:17 lost+found
drwxr-xr-x    3 root     root          4096 Dec  4 09:17 snaps

root@fvdw-sta-kirkwood:/ # ls -la /md0
total 30
drwxr-xr-x   20 root     root          1024 Jul 31  2013 .
drwxr-xr-x   15 root     root           580 Mar 28 09:34 ..
drwxr-xr-x    2 root     root          1024 Jul 31  2013 bin
drwxr-xr-x    2 root     root          1024 Dec 12  2011 boot
drwxr-xr-x    2 root     root          1024 Jul 31  2013 dev
drwxr-xr-x    4 root     root          1024 Jul 31  2013 etc
drwxr-xr-x    3 root     root          1024 Jul 31  2013 home
drwxr-xr-x    2 root     root          1024 Dec 12  2011 include
drwxr-xr-x    4 root     root          1024 Jul 31  2013 lib
drwx------    2 root     root         12288 Jul 31  2013 lost+found
drwxr-xr-x    2 root     root          1024 Dec 12  2011 mnt
drwxr-xr-x    2 root     root          1024 Dec 12  2011 opt
drwxr-xr-x    2 root     root          1024 Dec 12  2011 proc
drwxr-xr-x    2 root     root          1024 Dec 12  2011 root
drwxr-xr-x    2 root     root          1024 Feb 20 16:02 sbin
drwxr-xr-x    2 root     root          1024 Dec 12  2011 snapshots
drwxr-xr-x    2 root     root          1024 Dec 12  2011 sys
drwxr-xr-x    2 root     root          1024 Dec 12  2011 tmp
drwxr-xr-x    4 root     root          1024 Jul 31  2013 usr
drwxr-xr-x    6 root     root          1024 Jul 31  2013 var

root@fvdw-sta-kirkwood:/ # ls -la /md1
total 104
drwxr-xr-x   22 root     root          4096 Jul 31  2013 .
drwxr-xr-x   15 root     root           580 Mar 28 09:34 ..
drwxr-xr-x    2 root     root          4096 Jul 31  2013 bin
drwxr-xr-x    2 root     root          4096 Jul 31  2013 boot
drwxrwxr-x    2 root     root          4096 Jul 31  2013 dev
drwxr-xr-x   28 root     root          4096 Jul 31  2013 etc
drwxr-xr-x    2 root     100           4096 Dec 12  2011 home
drwxr-xr-x    3 root     root          4096 Jul 31  2013 lacie
drwxr-xr-x    7 root     root          4096 Jul 31  2013 lib
drwx------    2 root     root         16384 Jul 31  2013 lost+found
drwxr-xr-x    2 root     root          4096 Dec 12  2011 media
drwxr-xr-x    2 root     root          4096 Dec 12  2011 mnt
drwxr-xr-x    2 root     root          4096 Dec 12  2011 opt
drwxr-xr-x    2 root     root          4096 Dec 12  2011 proc
drwxr-x---    2 root     root          4096 Feb 20 16:03 root
drwxr-xr-x    2 root     root          4096 Jul 31  2013 sbin
drwxr-xr-x    2 root     root          4096 Dec 12  2011 share
drwxr-xr-x    2 root     root          4096 Dec 12  2011 sys
drwxrwxrwt    2 root     root          4096 Dec 12  2011 tmp
drwxr-xr-x   13 root     root          4096 Jul 31  2013 usr
drwxr-xr-x   14 root     root          4096 Jul 31  2013 var
drwxr-xr-x   11 root     root         12288 Jul 31  2013 www

root@fvdw-sta-kirkwood:/ # ls -la /md*/etc
/md0/etc:
total 7
drwxr-xr-x    4 root     root          1024 Jul 31  2013 .
drwxr-xr-x   20 root     root          1024 Jul 31  2013 ..
-rw-r--r--    1 root     root            19 Jun 24  2008 inittab
drwxr-xr-x    2 root     root          1024 Jul 31  2013 lvm
-rw-r--r--    1 root     root             0 Jun 24  2008 mtab
-rw-r--r--    1 root     root           228 Dec  9  2010 partition.gpt
-rw-r--r--    1 root     root           103 Dec 14  2010 partition.map
drwxr-xr-x    2 root     root          1024 Jul 31  2013 udev

/md1/etc:
total 1688
drwxr-xr-x   28 root     root          4096 Jul 31  2013 .
drwxr-xr-x   22 root     root          4096 Jul 31  2013 ..
drwxrwxr-x    3 root     root          4096 Jul 31  2013 NetworkManager
drwxrwxr-x    3 root     root          4096 Jul 31  2013 avahi
-rw-r--r--    1 root     root       1310700 Dec 12  2011 blacklist.dat
drwxr-xr-x    2 root     root          4096 Jul 31  2013 bonding
drwxrwxr-x    2 root     root          4096 Jul 31  2013 cron.d
drwxr-xr-x    5 root     root          4096 Jul 31  2013 cups
drwxrwxr-x    4 root     root          4096 Jul 31  2013 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 Jul 31  2013 fan_controller
-rw-rw-r--    1 root     root           251 Jul 31  2013 fstab
-rw-rw-r--    1 root     root           299 Nov 19  2009 group
drwxrwxr-x    3 root     root          4096 Jul 31  2013 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 Jul 31  2013 iet
drwxr-xr-x    2 root     root          4096 Jul 31  2013 init.d
drwxrwxr-x    3 root     root          4096 Mar 22 09:27 initng
-rw-rw-r--    1 root     root          1723 Mar 18  2009 inputrc
drwxr-xr-x    2 root     root          4096 Jul 31  2013 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 Jul 31  2013 lighttpd
drwxr-xr-x    2 root     root          4096 Jul 31  2013 logrotate.d
-rw-rw-r--    1 root     root            36 Jun 26  2009 logrotate.tab
drwxr-xr-x    2 root     root          4096 Jul 31  2013 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 Jul 31  2013 mtab -> /proc/mounts
drwxr-xr-x    3 root     root          4096 Jul 31  2013 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 Jul 31  2013 openldap
-rw-rw-r--    1 root     root           110 Dec 12  2011 packageversion
drwxr-xr-x    2 root     root          4096 Jul 31  2013 pam.d
-rw-rw-r--    1 root     root           556 Mar 18  2009 passwd
drwxr-xr-x    2 root     root          4096 Jul 31  2013 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 Jul 31  2013 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 Jul 31  2013 security
-rw-rw-r--    1 root     root         13726 Mar 18  2009 services
-rw-rw-r--    1 root     root           416 Mar 18  2009 shadow
-rw-rw-r--    1 root     root            52 Mar 18  2009 shells
drwxrwxr-x    4 root     root          4096 Jul 31  2013 smart_spindown
drwxrwxr-x    2 root     root          4096 Jul 31  2013 ssh
drwxrwxr-x    5 root     root          4096 Jul 31  2013 ssl
drwxr-xr-x    3 root     root          4096 Jul 31  2013 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 Jul 31  2013 udev
lrwxrwxrwx    1 root     root            29 Jul 31  2013 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
carloph
Donator VIP
Donator VIP
 
Posts: 45
Joined: Tue Sep 09, 2014 2:01 pm

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 4 guests