vsftpd Permissions issue?

Issues related to applications and software problems
Post Reply
CharmingNathan
Posts: 155
Joined: 2014/04/09 12:48:55

vsftpd Permissions issue?

Post by CharmingNathan » 2014/04/15 22:31:30

Hi,

I hope someone can help me with this, which I feel should be an elementary 500 OOPS: cannot read config file: /etc/vsftpd.confproblem as every post I've read about vsftpd suggests "it should just work" when it is installed, but despite disabling the Firewall, removing, and restarting the test bed P.C, it still won't install.

Everytime I attempt to run the service it fails, the only 'clue' being that if I attempt to run it via my own login (rather than root), I receive this error message:

500 OOPS: cannot read config file: /etc/vsftpd.conf

Lo and behond, when I visit the file and try and open it a message states I do not have permission, I have to be root apparently - any ideas? When I try and run the service as root it just states "FAILED".

On a totally separate topic, does anyone have any mail server software compatible with this O.S. they would care to recommend?

Thanks for any ideas in advance.

CharmingNathan
Posts: 155
Joined: 2014/04/09 12:48:55

Re: starting vsftpd FAILED

Post by CharmingNathan » 2014/04/16 09:35:58

I don't mean to interrupt this thread unnecessarily, but I think I have exactly the same problem.

I've literally done nothing with the installation, apart from well, installed it and vsftp fails.

The only 'clue' I get is if I try to run it under my login, rather than root, and I get an OOPS Error 500 Permissions denied, stating it was unable to find the.conf file, which is there, but I don't even have permission to open it...?

[edit/avij: please don't hijack others' threads, moving this back to the other topic]

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: vsftpd Permissions issue?

Post by avij » 2014/04/16 10:17:09

See if the diagnostic steps in viewtopic.php?f=14&t=45945 give you any clues about what's going on. If not, let's continue here.

CharmingNathan
Posts: 155
Joined: 2014/04/09 12:48:55

Re: vsftpd Permissions issue?

Post by CharmingNathan » 2014/04/16 10:31:18

avij wrote:See if the diagnostic steps in viewtopic.php?f=14&t=45945 give you any clues about what's going on. If not, let's continue here.
Okay avij, fair enough.

Having read that thread, I haven't knowingly downloaded any other F.T.P. software apart from vsftp, is that one mentioned in the other thread installed as part of the O.S.?

Anyway, I will go through those diagnostic steps and come back to you.

EDIT: No hijacking intended, I thought at the time they maybe the same issue, and assumed you'd prefer not to have separate threads relating to the same topic!

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: vsftpd Permissions issue?

Post by avij » 2014/04/16 12:16:26

I don't know if your issue is the same or not. As you had already started this topic earlier, it's better to keep this discussion in this topic.

I also don't know which packages you chose to install during the initial install. If you run rpm -qa \*ftp\* you will see which FTP servers and clients you have installed (lftp is a client and does not affect this problem). In any case, running the commands I mentioned in the other topic and comparing the output may yield some useful information.

CharmingNathan
Posts: 155
Joined: 2014/04/09 12:48:55

Re: vsftpd Permissions issue?

Post by CharmingNathan » 2014/04/16 12:54:23

My results from following the diagnostic in the other thread as you suggested, run in Terminal, for the most part as root:

rpm -q vsftpd
vsftpd-2.2.2-11.el6_4.1.x86_64

grep NETWORKING /etc/sysconfig/network
NETWORKING=yes

~]$ ls -l /usr/sbin/vsftpd
-rwxr-xr-x. 1 root root 159568 Mar 1 2013 /usr/sbin/vsftpd

ls -ld /etc/vsftpd
drwxr-xr-x. 2 root root 4096 Apr 15 23:28 /etc/vsftpd

ls -l /etc/vsftpd
total 20
-rw-------. 1 root root 125 Mar 1 2013 ftpusers
-rw-------. 1 root root 361 Mar 1 2013 user_list
-rw-------. 1 root root 4629 Apr 16 00:17 vsftpd.conf
-rwxr--r--. 1 root root 338 Mar 1 2013 vsftpd_conf_migrate.sh

netstat -anp | grep :21
tcp 0 0 127.0.0.1:2196 0.0.0.0:* LISTEN 2929/imaged [master
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2923/cc-ftpd (SERVE
tcp 0 0 0.0.0.0:2197 0.0.0.0:* LISTEN 2895/cc-web
tcp 0 0 127.0.0.1:2198 0.0.0.0:* LISTEN 2918/cc-control [rp
tcp 0 0 0.0.0.0:2199 0.0.0.0:* LISTEN 2895/cc-web

chkconfig --list | grep ftp
vsftpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: vsftpd Permissions issue?

Post by avij » 2014/04/16 13:06:21

Thanks for the output. I would appreciate it if you would also spend a few moments examining the output yourself, instead of other people having to point out the problems to you.

cc-ftpd is already running on the FTP port (21). That is the reason why vsftpd won't start. cc-ftpd is apparently a Centova Cast program.

What are you trying to achieve by installing vsftpd? Doesn't Centova Cast's FTP daemon fulfill those needs?

I would also discourage anyone using FTP for anything, scp/sftp are much better for file transfer.

CharmingNathan
Posts: 155
Joined: 2014/04/09 12:48:55

Re: vsftpd Permissions issue?

Post by CharmingNathan » 2014/04/16 15:16:25

As it happens, I did look through the output myself, and thought that port 21 was already in use and that Centova Cast was already using it, and therefore presumably causing the issue.

However, I wanted a confirmation from one of the experts here, as I am as new to Centova Cast as I am to Cent O.S., so thank you for your time.

Post Reply