LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   FTP Server not working (https://www.linuxquestions.org/questions/linux-networking-3/ftp-server-not-working-691124/)

shane25119 12-17-2008 12:47 AM

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!

billymayday 12-17-2008 01:04 AM

Are you sure it isn't already running?

Try

#netstat -nalp | grep :21

(or sudo netstat -nalp | grep :21 I guess)

shane25119 12-17-2008 01:31 AM

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.

sandeepthug 12-17-2008 01:46 AM

Hi

i am not able to connect the ftp server but the ftp is running on the server

billymayday 12-17-2008 02:05 AM

So why is wzftpd running if you are trying to run proftpd? I'm getting confused.

shane25119 12-17-2008 02:21 AM

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.

billymayday 12-17-2008 02:25 AM

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.

shane25119 12-17-2008 02:34 AM

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).

billymayday 12-17-2008 02:39 AM

try

sudo kill -s 9 6780

shane25119 12-17-2008 02:41 AM

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.

billymayday 12-17-2008 03:19 AM

You obviously have have permissions issues with those files. Try moving the offending files to somewhere else and try again, check directory permissions, etc.

shane25119 12-17-2008 01:38 PM

How would I do that? (Sorry I am quite dumb when it comes to the finer workings of the command line).

billymayday 12-17-2008 02:08 PM

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.

shane25119 12-17-2008 02:18 PM

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


shane25119 12-17-2008 08:38 PM

SELinux is not installed in Ubuntu


All times are GMT -5. The time now is 11:40 AM.