General NAS-Central Forums

Welcome to the NAS community
It is currently Mon Mar 27, 2017 4:44 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Mar 01, 2017 2:01 am 
Offline

Joined: Wed Mar 01, 2017 1:48 am
Posts: 3
Hi,

I have a NSA325-v2 and I installed the Tweaks package to modify the administrator home directory to /i-data/md0/admin

Then I modified the ownership of /i-data/md0/admin and its subdirectory .ssh to admin and modifed the access rights with read-only access go-w to the admin home and also modified access to its subdirectory .ssh to 700

Then I de-installed Tweaks.

The restart or shutdown GUI button stopped working. When trying to click on the "Yes" button, the GUI does not re-act at all, nothing happens.

Also after re-installing Tweaks, Tweaks stopped working too.
I get "Internal Server Error" when starting the Tweak web link.

Any idea what can be the problems?

Thanks in advance.


Top
 Profile  
 
PostPosted: Wed Mar 01, 2017 4:28 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5973
Quote:
Then I de-installed Tweaks.
Did you reboot after that? Tweaks can patch some firmware scripts, and sometimes it will point to a Tweaks script.

Normally the patch is undone when you stop/disable Tweaks (I don't guarantee that's true for all patches), but I have seen in the past that a package is not (always?) stopped before uninstalling, which means that after deinstalling some firmware scripts may fail because the Tweaks scripts are gone.

A reboot resolves that, because all patched files are volatile.

Having said that, I wouldn't know which Tweak could block the GUI shutdown.

Quote:
I get "Internal Server Error" when starting the Tweak web link.
Again, did you reboot? The Tweaks webinterface is a CGI script. You get an 'Internal Server Error' when the CGI script errors out, which can be the case when parts of the 'old' Tweaks are still running.


Top
 Profile  
 
PostPosted: Mon Mar 06, 2017 9:54 pm 
Offline

Joined: Wed Mar 01, 2017 1:48 am
Posts: 3
Thanks for your answer.
I re-installed all the package and now it works, I am back to initial state.

But actually, what I am trying to do is to have the NSA325 to be backed up on another NAS (ReadyNAS).
To do that I need to scp without login from the ReadyNAS to the NSA325, but this does not seem to work.
When I try to login from ReadyNAS to NSA325 without password the NSA325 seems to reject the connection.

I modified the sshd_config file to save the log to a file on the NSA325. First it rejected the connection because the admin account is owned by root and has og+w has chmod access, which seems to be forbidden by SSH.
But after fixing this problem, the sshd log did not seem to complain anymore but the from the ReadyNAS, the connection was still rejected.

So I started the SSH daemon as debug mode, and that's where I ran into the problem described above (which was to be expected since the SSH daemon could not fork anymore...).

So now I don't know how to keep on debugging and get more info/logs...

/BR


Top
 Profile  
 
PostPosted: Mon Mar 06, 2017 11:44 pm 
Offline

Joined: Wed Mar 01, 2017 1:48 am
Posts: 3
I solved the problem, it was a missconfiguration in authorized_keys file.

Everytime the NSA325 is rebooted or when a new package is installed, it seems that /i-data/md0/admin is reset to ownership and access rights:
drwxrwxrwx 7 root root 4096 Jan 30 15:23 /i-data/md0/admin/
(I am using Tweaks).

Is there a way to make sure that the admin directory is not re-chown:ed or re-chmod:ed?

Thanks
BR


Top
 Profile  
 
PostPosted: Tue Mar 07, 2017 8:52 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5973
Not that I'm aware of. Of course you can run a script to recover the damage, but the most straight forward way is to use Tweaks to give admin a different homedirectory, one which is outside the share-pool, so the firmware will leave it alone.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group