Gossamer Forum
Home : General : Chit Chat :

appreciate assistance with pico and editing a .conf file

Quote Reply
appreciate assistance with pico and editing a .conf file
Hello,

I am attempting to edit proftpd.conf to add the line "AllowStoreRestart on". I am using pico to access the server. I have been able to find the file and open it and add the line but i don't understand how to save the new version of the file or even where to put it.

Please help.

Thanks

Bob


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] appreciate assistance with pico and editing a .conf file In reply to
Do the following fom SSH;

ssh> pico filename.ini

... make the changes. Then press Ctrl + X, and it will prompt you to save the file. Type 'Y' and press enter. Then you will restart ProFTPd. ... most likely with;

ssh> service proftpd restart


Hope that helps Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] appreciate assistance with pico and editing a .conf file In reply to
Quote:
ssh> service proftpd restart

On our servers yes, but on most systems it will be something like:

/etc/init.d/proftpd restart
or
killall -HUP proftpd

or if you are running proftpd via (x|i)netd, no restarts are required.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] appreciate assistance with pico and editing a .conf file In reply to
>>>/etc/init.d/proftpd restart <<<

Don't you mean;

/etc/rc.d/init.d/proftpd restart

? Wink

Most servers these days seem to suport the 'service' command.. I have had 3 different dedicated servers in my time, and 2 of the 3 supported the 'service' command :)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] appreciate assistance with pico and editing a .conf file In reply to
Most servers (RedHat, Mandrake, Gentoo) will have /etc/init.d and /etc/rc.d/init.d be the same thing. Less typing.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] appreciate assistance with pico and editing a .conf file In reply to
You learn something new every day...LOL

And there I was thinking I had got one over you Tongue

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] appreciate assistance with pico and editing a .conf file In reply to
Quote:
/etc/rc.d/init.d/proftpd restart

On a RedHat system, yes.

Darwin / BSD-based system:

Code:
spoon% service
Usage: service --list | <service-name> <command>
spoon%

Debian GNU/Linux system:

Code:
memphis% service
zsh: command not found: service
memphis%

Those are the only two servers I have around me at the moment.

Cheers

- wil

Last edited by:

Wil: Sep 3, 2003, 8:56 AM
Quote Reply
Re: [Wil] appreciate assistance with pico and editing a .conf file In reply to
I think i have basically done what you all suggest, though I am using WHM/Cpanel and it allows me to restart Proftpd through an admin console. This is still not working for me so please bear with a couple more questions.

I have learned that for this function "AllowStoreRestart on" to be applied for all users on the account i must place a global tag around the line. Does this sound correct? I am not very knowledgable about this to say the least. The server has about ten accounts on it and I would like to make these changes server wide. My current understanding is that i need to modify proftpd.conf in each accounts etc/ directory. Does this sound correct? Is there a way to make a single change that will affect all accounts on the server?

Thanks for your help.

bobUnsure


.:SEAWEAD:.
Quote Reply
Re: [baidarkabob] appreciate assistance with pico and editing a .conf file In reply to
Hi,

Yes, it can either be placed inside of a <Global>..</Global> section, or should be able to be placed inside of the main config file, outside of any global section.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] appreciate assistance with pico and editing a .conf file In reply to
Well, i have added "AllowStoreRestart on" with global tags but it is not working. Anyone happen to have experience with Proftpd that could offer some trouble shooting advice? my ftp client says:

COMMAND:> APPE windfall.zip
STATUS:> Connecting ftp data socket 66.129.86.150:44431...
451 windfall.zip: Append/Restart not permittedShocked, try again
ERROR:> Temporary completion problem reply.
COMMAND:> REST 262144
350 Restarting at 262144. Send STORE or RETRIEVE to initiate transfer
COMMAND:> STOR windfall.zip
STATUS:> Connecting ftp data socket 66.129.86.150:44431...
451 windfall.zip: Append/Restart not permitted, try again
ERROR:> Temporary completion problem reply.

Bob


.:SEAWEAD:.