Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Location
    Belgium
    Posts
    62

    vsftpd accessing conf file


    hi,

    I installed vsftpd from yast online programs (I use suse 9.1),
    I can find the /etc/vsftpd.conf file but cannot edit it,
    I know I have to do it as root but how?
    if I go to konsole, as root, I type vi /etc/vsftpd.conf, ok I can change the file but how do I save the file?

    next, do I need to start the vsftpd service?
    cause when I type service etc at the konsole, it does not recognise the command...

    thnx,
    davy

  2. #2
    Hi,

    Q'n'D vi tut.

    There are two modes in vi (vim), command mode and input mode.
    To get to input mode just type a single "i"
    To get back to command mode type ESC

    To write and quit a file (from command mode)
    :wq

    To undo stuff (from command mode)
    u

    So this might be your session

    vi /etc/vsftpd.conf
    i (go to input mode)
    bla bla bla (add/change stuff)
    ESC (go to command mode)
    :wq (write and quit the file)



    Also have a look at "vimtutor" for a more extensive explaination...

    Good luck!

    Jonas
    --
    in Linux Computing we Trust

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •