General NAS-Central Forums

Welcome to the NAS community
It is currently Sun Jul 23, 2017 2:34 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Mar 17, 2014 10:27 am 
Offline

Joined: Sat Mar 15, 2014 5:04 pm
Posts: 3
I have my NS2 rooted, and have modified some configurations (mainly FTP settings as I need to prevent access to the open share via FTP), it works perfectly, but if I ever need to restart the NS2 all the settings are set back to default, meaning I have to login and change all my settings again after every restart.

Do you know where I can find these default settings so I can change them to what I need, or that I can prevent this reset happening each re-boot?

Thanks.


Top
 Profile  
 
PostPosted: Fri Mar 28, 2014 7:23 am 
Offline

Joined: Fri Sep 16, 2011 6:18 am
Posts: 39
Following is not tested, but should work and a rollback is easy.

Make a persistent copy of the proftpd.conf file and add this as an argument to the init script.
Code:
cp /etc/proftpd.conf /etc/proftpd.persistent.conf


And then change:
exec daemon = /usr/sbin/proftpd;

to:

exec daemon = /usr/sbin/proftpd -c /etc/proftpd.persistent.conf;

in the file /etc/initng/proftp.i

Then you test the change by stoping and restarting the proftpd service:
Code:
ngc --stop proftpd
ngc --start proftpd


Top
 Profile  
 
PostPosted: Wed Apr 02, 2014 6:51 pm 
Offline

Joined: Sat Mar 15, 2014 5:04 pm
Posts: 3
Thanks very much. Sounds promising. I'll try that out.


Top
 Profile  
 
PostPosted: Wed Apr 02, 2014 7:30 pm 
Offline

Joined: Sat Mar 15, 2014 5:04 pm
Posts: 3
Works perfectly, I assume the same will work if I want to change default settings on other services?

Thanks.


Top
 Profile  
 
PostPosted: Fri Apr 04, 2014 10:03 am 
Offline

Joined: Fri Sep 16, 2011 6:18 am
Posts: 39
I have done it for twonky, samba and transmission on my box.


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 7 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