LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2008, 12:47 AM   #1
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Rep: Reputation: 53
FTP Server not working


Hi everyone-

I use proftpd for file transfers across my network when need be, which isn't often. Today I needed to move a file and I received this error message as I went to start proftpd:

Code:
 - notice: unable to bind to Unix domain socket at '/var/run/proftpd/test.sock': Permission denied
 - notice: unable to listen to local socket: Operation not permitted
 - Fatal: SystemLog: unable to redirect logging to '/var/log/proftpd/proftpd.log': Permission denied on line 98 of '/etc/proftpd/proftpd.conf'
I looked at line 98 it referenced..... and this is all it gave me:::

Code:
SystemLog   /var/log/proftpd/proftpd.log
I have tried to run it as both the regular user and root.

I am using Ubuntu 8.10- and it was working as little as a few days ago.

I went into services, where I had previously disabled the proftpd service- but have since reenabled it.

Also worth noting--- I have galeon installed as a backup browser if you will... lately when I call for it- nothing happens at all.

I am thinking it might be prudent to reinstall Ubuntu- your thoughts?


Thanks!
 
Old 12-17-2008, 01:04 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you sure it isn't already running?

Try

#netstat -nalp | grep :21

(or sudo netstat -nalp | grep :21 I guess)
 
Old 12-17-2008, 01:31 AM   #3
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Original Poster
Rep: Reputation: 53
Here is my output:

Code:
shane@geno:~$ sudo netstat -nalp | grep :21
[sudo] password for shane: 
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      6780/wzdftpd    
shane@geno:~$
I have tried to access my main desktop with a laptop- it is unable to connect to said desktop/server.

An added update- Galeon is once again working.
 
Old 12-17-2008, 01:46 AM   #4
sandeepthug
Member
 
Registered: Nov 2008
Posts: 38

Rep: Reputation: 15
Hi

i am not able to connect the ftp server but the ftp is running on the server
 
Old 12-17-2008, 02:05 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So why is wzftpd running if you are trying to run proftpd? I'm getting confused.
 
Old 12-17-2008, 02:21 AM   #6
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Original Poster
Rep: Reputation: 53
When proftpd stopped working on me I tried installing another ftpd to see if the problem might easily be resolved by switching daemons- years ago that worked when wu-ftpd conked out on me.

I just went into the services tab and verified wzftpd is not checked off- and that proftpd is.

Then I tried to initiate proftpd- same result, and I ran the command you gave me earlier- same output.... why wzftpd is listing itself therein- I don't know.
 
Old 12-17-2008, 02:25 AM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I wouldn't expect you'll get proftpd running until you stop the other server - it won't be able to bind to port 21 for one thing.
 
Old 12-17-2008, 02:34 AM   #8
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Original Poster
Rep: Reputation: 53
When I run
Code:
killall wzftpd
or
Code:
sudo killall wzftpd
I get the 'no process killed error- how can I stop it? (The packages are not even installed for wzftpd).
 
Old 12-17-2008, 02:39 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
try

sudo kill -s 9 6780
 
Old 12-17-2008, 02:41 AM   #10
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Original Poster
Rep: Reputation: 53
Ok- that seems to have helped- now when I run:
Code:
sudo netstat -nalp | grep :21
I get nothing returning on the screen.

However, when I attempt to initiate proftpd- I'm still getting the same error message.
 
Old 12-17-2008, 03:19 AM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You obviously have have permissions issues with those files. Try moving the offending files to somewhere else and try again, check directory permissions, etc.
 
Old 12-17-2008, 01:38 PM   #12
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Original Poster
Rep: Reputation: 53
How would I do that? (Sorry I am quite dumb when it comes to the finer workings of the command line).
 
Old 12-17-2008, 02:08 PM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try posting

ls -ldZ /var/run/proftpd/
ls -ldZ /var/log/proftpd
ls -ldZ /var/log/proftpd/proftpd.log

You can just delete the socket, so its permissions won't matter.

Can you also do one test for me.

Turn SELinux off (I think it's on in Ubuntu)

sudo setenforce 0 (that's a zero)
sudo whatever you use to start proftpd
sudo setenforce 1

Just to see if SELinux is the issue.
 
Old 12-17-2008, 02:18 PM   #14
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Original Poster
Rep: Reputation: 53
Hey-

Here's my output--- in the first two commands I ran the /var stuff was in blue, in the last one it was plain old white text. I'm not sure what you wanted me to delete.

Code:
shane@geno:~$ ls -ldZ /var/run/proftpd/
drwxr-xr-x 2 root root ? 100 2008-12-17 03:37 /var/run/proftpd/
shane@geno:~$ ls -ldZ /var/log/proftpd
drwxr-xr-x 2 root root ? 4096 2008-12-06 07:45 /var/log/proftpd
shane@geno:~$ ls -ldZ /var/log/proftpd/proftpd.log
-rw-r----- 1 root adm ? 80444 2008-12-17 01:37 /var/log/proftpd/proftpd.log
When I ran the setenforce.... the command was not found, I tried to install it... also not found.

Code:
shane@geno:~$ sudo setenforce 0
sudo: setenforce: command not found
shane@geno:~$ sudo apt-get install setenforce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package setenforce
 
Old 12-17-2008, 08:38 PM   #15
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Original Poster
Rep: Reputation: 53
SELinux is not installed in Ubuntu
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why FTP server: proftpd NOT working? cucolin@ Fedora 10 10-30-2007 03:13 PM
LS Command not working FTP Server shawnbishop Linux - Software 5 01-10-2006 10:38 AM
Steps to get that FTP server working! tribalmasters Fedora 2 08-14-2005 06:10 AM
partimage to ftp server not working crofty13 Linux - Software 3 06-03-2005 08:42 AM
FTP server not working after moving /var jeffpoulsen Linux - Software 2 10-22-2002 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration