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!

9.2.0.1.943 /usr/local/lib folder

Posts only related to Release Builds, all others will be removed!
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Dread
Starter
Starter
Posts: 15
Joined: 31 Dec 2013 11:04
Status: Offline

9.2.0.1.943 /usr/local/lib folder

Post by Dread »

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.

User avatar
crowi
Forum Moderator
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

Post by crowi »

Can I shutdown the server and reformat the USB drive with a fresh embedded image
Yes, save your config file first and then you can restore the cinfiguration on the new system easily
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

Dread
Starter
Starter
Posts: 15
Joined: 31 Dec 2013 11:04
Status: Offline

Re: 9.2.0.1.943 /usr/local/lib folder

Post by Dread »

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.

User avatar
b0ssman
Forum Moderator
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

Post by b0ssman »

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
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
Starter
Posts: 15
Joined: 31 Dec 2013 11:04
Status: Offline

Re: 9.2.0.1.943 /usr/local/lib folder

Post by Dread »

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 ?).

User avatar
crowi
Forum Moderator
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

Post by crowi »

the password issue was just discussed recently
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

Dread
Starter
Starter
Posts: 15
Joined: 31 Dec 2013 11:04
Status: Offline

Re: 9.2.0.1.943 /usr/local/lib folder

Post by Dread »

Didn't see that, thanks for the link.

Post Reply

Return to “Release Builds”