Prevent default setting on reset

Post Reply
twobs
Posts: 3
Joined: Sat Mar 15, 2014 5:04 pm

Prevent default setting on reset

Post by twobs » Mon Mar 17, 2014 10:27 am

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.

kea
Posts: 39
Joined: Fri Sep 16, 2011 6:18 am

Re: Prevent default setting on reset

Post by kea » Fri Mar 28, 2014 7:23 am

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: Select all

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: Select all

ngc --stop proftpd
ngc --start proftpd

twobs
Posts: 3
Joined: Sat Mar 15, 2014 5:04 pm

Re: Prevent default setting on reset

Post by twobs » Wed Apr 02, 2014 6:51 pm

Thanks very much. Sounds promising. I'll try that out.

twobs
Posts: 3
Joined: Sat Mar 15, 2014 5:04 pm

Re: Prevent default setting on reset

Post by twobs » Wed Apr 02, 2014 7:30 pm

Works perfectly, I assume the same will work if I want to change default settings on other services?

Thanks.

kea
Posts: 39
Joined: Fri Sep 16, 2011 6:18 am

Re: Prevent default setting on reset

Post by kea » Fri Apr 04, 2014 10:03 am

I have done it for twonky, samba and transmission on my box.

Post Reply