Hi !
I accidentally deleted the /usr/local/lib folder and I can't use scp/cp/whatever to get the files back where they were (not enough space). Indeed, my USB stick is very small (256MB) and adding nmap didn't help. Now I'm stuck with a server that has one open SSH session and SMB shares working for now.
Can I shutdown the server and reformat the USB drive with a fresh embedded image OR replace core system files only and then reload my config file ? Or am I better backing up my data now and retransfer it once the system has been reinstalled ?
Thanks a lot.
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
9.2.0.1.943 /usr/local/lib folder
-
Dread
- Starter

- Posts: 15
- Joined: 31 Dec 2013 11:04
- Status: Offline
- crowi
- Forum Moderator

- Posts: 1176
- Joined: 21 Feb 2013 16:18
- Location: Munich, Germany
- Status: Offline
Re: 9.2.0.1.943 /usr/local/lib folder
Yes, save your config file first and then you can restore the cinfiguration on the new system easilyCan I shutdown the server and reformat the USB drive with a fresh embedded image
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
-
Dread
- Starter

- Posts: 15
- Joined: 31 Dec 2013 11:04
- Status: Offline
Re: 9.2.0.1.943 /usr/local/lib folder
Thing is, I don't know if the last two config files I have origin from this version of n4f or the last one. Any way to extract the config file through the SSH session ?
Thanks for your reply.
Thanks for your reply.
- b0ssman
- Forum Moderator

- Posts: 2438
- Joined: 14 Feb 2013 08:34
- Location: Munich, Germany
- Status: Offline
Re: 9.2.0.1.943 /usr/local/lib folder
if you installed the embedded version just reboot and the files will be there again.
if you didnt install the embedded version, that would be very bad for the usb stick
if you didnt install the embedded version, that would be very bad for the usb stick
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.
-
Dread
- Starter

- Posts: 15
- Joined: 31 Dec 2013 11:04
- Status: Offline
Re: 9.2.0.1.943 /usr/local/lib folder
Indeed, after rebooting things went normal again. But it seems nas4free had some sort of "old, safe config" which was somewhere on the USB key which the OS then used to restore its state. This is confirmed by the fact that I could only log in using my older password.
Also, something that bothers me is the fact that the config.xml file contains all passwords in cleartext, which is kinda scary. Isn't there any way to use a hash of the passwords instead of storing them in clear ? The OS would then compute then hash of a password entered on the login page (or SSH/FTP/SFTP/whatever session) and, if it equals to what the config.xml contains, access is granted. Good hash algorithms are, in my opinion and according to my research work on the topic, Whirlpool and SHA-3 (backdoors ?).
Also, something that bothers me is the fact that the config.xml file contains all passwords in cleartext, which is kinda scary. Isn't there any way to use a hash of the passwords instead of storing them in clear ? The OS would then compute then hash of a password entered on the login page (or SSH/FTP/SFTP/whatever session) and, if it equals to what the config.xml contains, access is granted. Good hash algorithms are, in my opinion and according to my research work on the topic, Whirlpool and SHA-3 (backdoors ?).
- crowi
- Forum Moderator

- Posts: 1176
- Joined: 21 Feb 2013 16:18
- Location: Munich, Germany
- Status: Offline
Re: 9.2.0.1.943 /usr/local/lib folder
the password issue was just discussed recently
viewtopic.php?f=15&t=6529&p
viewtopic.php?f=15&t=6529&p
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded
-
Dread
- Starter

- Posts: 15
- Joined: 31 Dec 2013 11:04
- Status: Offline
Re: 9.2.0.1.943 /usr/local/lib folder
Didn't see that, thanks for the link.