Jump to content



Photo

/etc/vsftpd.conf ...cant edit


  • Please log in to reply
4 replies to this topic

#1 Original Poster

Original Poster

    C++ n00b

  • Tech Issues Solved: 1
  • Joined: 15-July 08
  • Location: my room
  • OS: windows 7, backtrack 5, OSx 10.6

Posted 14 November 2012 - 02:29

hi ! I have tried to edit my vsftpd.conf so many times now ... I have tried using "vi", "gedit" both user and root I have chmod'ed the file to allow full read and write so open every tom, dick or harry can see it... but I cannot for the life of me edit it! every time i open it with vi (the only thing i have sucessfully opened it with)

I messes up with the keyboard .... and when i try to use gedit it tells me to F my self


#2 ElliottLan

ElliottLan

    one three three seven

  • Joined: 14-April 03
  • Location: UK
  • OS: Lindows

Posted 14 November 2012 - 02:34

use nano - so 'nano vsftpd.conf'.

Go here to learn how to use vi - http://vim-adventures.com/

edit - more info:

to use vim you need to browse to the text you want using the hjkl keys and then switch to input mode, edit the text, switch out of input mode and then write the file.

For quick edits nano is easier - ctrl+w to find some text. ctrl+x to close nano and save the file.

for ubuntu/debian: apt-get install nano
for redhat/fedora/cent: yum install nano

#3 OP Original Poster

Original Poster

    C++ n00b

  • Tech Issues Solved: 1
  • Joined: 15-July 08
  • Location: my room
  • OS: windows 7, backtrack 5, OSx 10.6

Posted 14 November 2012 - 02:50

use nano - so 'nano vsftpd.conf'.

Go here to learn how to use vi - http://vim-adventures.com/

edit - more info:

to use vim you need to browse to the text you want using the hjkl keys and then switch to input mode, edit the text, switch out of input mode and then write the file.

For quick edits nano is easier - ctrl+w to find some text. ctrl+x to close nano and save the file.

for ubuntu/debian: apt-get install nano
for redhat/fedora/cent: yum install nano


ahhh thank you I no longer wish to shoot the server :D

use nano - so 'nano vsftpd.conf'.

Go here to learn how to use vi - http://vim-adventures.com/

edit - more info:

to use vim you need to browse to the text you want using the hjkl keys and then switch to input mode, edit the text, switch out of input mode and then write the file.

For quick edits nano is easier - ctrl+w to find some text. ctrl+x to close nano and save the file.

for ubuntu/debian: apt-get install nano
for redhat/fedora/cent: yum install nano


wouldnt be able to tell me how to get this ftp working would ya haha ? I have turned off annoymous ftp and I turnned on SFTP and I thought I turned on authentication FTP as well ... but my ftp client still is getting refused ... just differently...well actually i got the SFTP working just not the ftp but eh who needs that lol :p

#4 ElliottLan

ElliottLan

    one three three seven

  • Joined: 14-April 03
  • Location: UK
  • OS: Lindows

Posted 14 November 2012 - 02:52

Turn on logging on vsftpd and then tail or nano /var/log/vsftpd.log.

The log will tell you what is going wrong.

Also make sure you have allowed ftp in your firewall.

#5 Xepol

Xepol

    Neowinian

  • Joined: 10-January 09

Posted 14 November 2012 - 03:23

Files in the /etc folder are usually protected and only editable by root. If your OS variant supports sudo, you should toss that in before your editor on the command line... like:

sudo nano /etc/vsftpd.conf

otherwise, use su first, like:

su
nano /etc/vsftpf.conf
exit


Here, I have used nano as an editor, you could use vi, emacs, whatever, and the exit after the su is because it starts a shell in the super-user account.