Centos: VSFTPD not Starting
up vote
0
down vote
favorite
I have a minimal install of Centos in VirtualBox. I want to run a ftp service to share files between the host and my VM, and then learn about ftp servers.
I installed vsftpd and changed the vsftpd.conf file as bellow:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=O22
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port 2O=YES
xferlog_std format=YES
chroot_local_user=YES
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
But, when I type service vsftpd start
I get the following error:
Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" and journalctl -xe" for details.
Is this issue happening due of a wrong config as showed above, or is it something else?
What can I do to start my ftp server?
Thanks!
EDIT
Output if systemctl status -l vsftpd.service
[user@localhost vsftpd]$ systemctl status -l vsftpd.service
vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service, disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Ter 2017-05-09 21:03:19 -03; 3min 2s ago
Process: 3047 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited status=2)
Mai 09 21:03:19 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
Mai 09 21:03:19 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=2
Mai 09 21:03:19 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
Mai 09 21:03:19 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
Mai 09 21:03:19 localhost.localdomain systemd[1]: vsftpd.service failed.
[user@localhost vsftpd]$
centos ftp vsftpd
add a comment |
up vote
0
down vote
favorite
I have a minimal install of Centos in VirtualBox. I want to run a ftp service to share files between the host and my VM, and then learn about ftp servers.
I installed vsftpd and changed the vsftpd.conf file as bellow:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=O22
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port 2O=YES
xferlog_std format=YES
chroot_local_user=YES
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
But, when I type service vsftpd start
I get the following error:
Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" and journalctl -xe" for details.
Is this issue happening due of a wrong config as showed above, or is it something else?
What can I do to start my ftp server?
Thanks!
EDIT
Output if systemctl status -l vsftpd.service
[user@localhost vsftpd]$ systemctl status -l vsftpd.service
vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service, disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Ter 2017-05-09 21:03:19 -03; 3min 2s ago
Process: 3047 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited status=2)
Mai 09 21:03:19 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
Mai 09 21:03:19 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=2
Mai 09 21:03:19 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
Mai 09 21:03:19 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
Mai 09 21:03:19 localhost.localdomain systemd[1]: vsftpd.service failed.
[user@localhost vsftpd]$
centos ftp vsftpd
1
So, whatsystemctl status vsftpd
says?
– fugitive
May 11 '17 at 23:34
@fugitive I just edited to display the output ofsystemctl status vsftpd
– tdmsoares
May 12 '17 at 2:49
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a minimal install of Centos in VirtualBox. I want to run a ftp service to share files between the host and my VM, and then learn about ftp servers.
I installed vsftpd and changed the vsftpd.conf file as bellow:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=O22
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port 2O=YES
xferlog_std format=YES
chroot_local_user=YES
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
But, when I type service vsftpd start
I get the following error:
Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" and journalctl -xe" for details.
Is this issue happening due of a wrong config as showed above, or is it something else?
What can I do to start my ftp server?
Thanks!
EDIT
Output if systemctl status -l vsftpd.service
[user@localhost vsftpd]$ systemctl status -l vsftpd.service
vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service, disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Ter 2017-05-09 21:03:19 -03; 3min 2s ago
Process: 3047 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited status=2)
Mai 09 21:03:19 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
Mai 09 21:03:19 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=2
Mai 09 21:03:19 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
Mai 09 21:03:19 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
Mai 09 21:03:19 localhost.localdomain systemd[1]: vsftpd.service failed.
[user@localhost vsftpd]$
centos ftp vsftpd
I have a minimal install of Centos in VirtualBox. I want to run a ftp service to share files between the host and my VM, and then learn about ftp servers.
I installed vsftpd and changed the vsftpd.conf file as bellow:
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=O22
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port 2O=YES
xferlog_std format=YES
chroot_local_user=YES
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
But, when I type service vsftpd start
I get the following error:
Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" and journalctl -xe" for details.
Is this issue happening due of a wrong config as showed above, or is it something else?
What can I do to start my ftp server?
Thanks!
EDIT
Output if systemctl status -l vsftpd.service
[user@localhost vsftpd]$ systemctl status -l vsftpd.service
vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service, disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Ter 2017-05-09 21:03:19 -03; 3min 2s ago
Process: 3047 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited status=2)
Mai 09 21:03:19 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
Mai 09 21:03:19 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=2
Mai 09 21:03:19 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
Mai 09 21:03:19 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
Mai 09 21:03:19 localhost.localdomain systemd[1]: vsftpd.service failed.
[user@localhost vsftpd]$
centos ftp vsftpd
centos ftp vsftpd
edited May 12 '17 at 2:48
asked May 11 '17 at 23:20
tdmsoares
110116
110116
1
So, whatsystemctl status vsftpd
says?
– fugitive
May 11 '17 at 23:34
@fugitive I just edited to display the output ofsystemctl status vsftpd
– tdmsoares
May 12 '17 at 2:49
add a comment |
1
So, whatsystemctl status vsftpd
says?
– fugitive
May 11 '17 at 23:34
@fugitive I just edited to display the output ofsystemctl status vsftpd
– tdmsoares
May 12 '17 at 2:49
1
1
So, what
systemctl status vsftpd
says?– fugitive
May 11 '17 at 23:34
So, what
systemctl status vsftpd
says?– fugitive
May 11 '17 at 23:34
@fugitive I just edited to display the output of
systemctl status vsftpd
– tdmsoares
May 12 '17 at 2:49
@fugitive I just edited to display the output of
systemctl status vsftpd
– tdmsoares
May 12 '17 at 2:49
add a comment |
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
You have a space
between xferlog_std
and format=YES
according to the configuration you supplied.
Also, you might wish to compare with a working configuration:
$ sudo cat /etc/vsftpd/vsftpd.conf | grep -v "#"
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=abdullah
xferlog_std_format=YES
chroot_local_user=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
Source:
Not able to upload as anonymous user in vsftpd
1
Similaryly, there's a space (and a capital "O", not zero "0") inconnect_from_port 2O=YES
; it should beconnect_from_port_20=YES
.
– Castaglia
May 12 '17 at 16:44
Man, in the mean time I replaced the vsftpd.conf for the original one, and it worked... The problem was the config file... The space you said, was only a typo, because I couldn't copy and paste from my VM machine
– tdmsoares
May 12 '17 at 22:12
add a comment |
up vote
0
down vote
In my case I have another process on TCP 21.
$ netstat -nalp | grep 21
I saw xinetd on the port at this time. Vfstpd successfully starts after stoppping it.
$ service stop xinetd
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f364529%2fcentos-vsftpd-not-starting%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
You have a space
between xferlog_std
and format=YES
according to the configuration you supplied.
Also, you might wish to compare with a working configuration:
$ sudo cat /etc/vsftpd/vsftpd.conf | grep -v "#"
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=abdullah
xferlog_std_format=YES
chroot_local_user=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
Source:
Not able to upload as anonymous user in vsftpd
1
Similaryly, there's a space (and a capital "O", not zero "0") inconnect_from_port 2O=YES
; it should beconnect_from_port_20=YES
.
– Castaglia
May 12 '17 at 16:44
Man, in the mean time I replaced the vsftpd.conf for the original one, and it worked... The problem was the config file... The space you said, was only a typo, because I couldn't copy and paste from my VM machine
– tdmsoares
May 12 '17 at 22:12
add a comment |
up vote
3
down vote
accepted
You have a space
between xferlog_std
and format=YES
according to the configuration you supplied.
Also, you might wish to compare with a working configuration:
$ sudo cat /etc/vsftpd/vsftpd.conf | grep -v "#"
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=abdullah
xferlog_std_format=YES
chroot_local_user=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
Source:
Not able to upload as anonymous user in vsftpd
1
Similaryly, there's a space (and a capital "O", not zero "0") inconnect_from_port 2O=YES
; it should beconnect_from_port_20=YES
.
– Castaglia
May 12 '17 at 16:44
Man, in the mean time I replaced the vsftpd.conf for the original one, and it worked... The problem was the config file... The space you said, was only a typo, because I couldn't copy and paste from my VM machine
– tdmsoares
May 12 '17 at 22:12
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
You have a space
between xferlog_std
and format=YES
according to the configuration you supplied.
Also, you might wish to compare with a working configuration:
$ sudo cat /etc/vsftpd/vsftpd.conf | grep -v "#"
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=abdullah
xferlog_std_format=YES
chroot_local_user=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
Source:
Not able to upload as anonymous user in vsftpd
You have a space
between xferlog_std
and format=YES
according to the configuration you supplied.
Also, you might wish to compare with a working configuration:
$ sudo cat /etc/vsftpd/vsftpd.conf | grep -v "#"
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=abdullah
xferlog_std_format=YES
chroot_local_user=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
Source:
Not able to upload as anonymous user in vsftpd
answered May 12 '17 at 3:31
Abdullah
1717
1717
1
Similaryly, there's a space (and a capital "O", not zero "0") inconnect_from_port 2O=YES
; it should beconnect_from_port_20=YES
.
– Castaglia
May 12 '17 at 16:44
Man, in the mean time I replaced the vsftpd.conf for the original one, and it worked... The problem was the config file... The space you said, was only a typo, because I couldn't copy and paste from my VM machine
– tdmsoares
May 12 '17 at 22:12
add a comment |
1
Similaryly, there's a space (and a capital "O", not zero "0") inconnect_from_port 2O=YES
; it should beconnect_from_port_20=YES
.
– Castaglia
May 12 '17 at 16:44
Man, in the mean time I replaced the vsftpd.conf for the original one, and it worked... The problem was the config file... The space you said, was only a typo, because I couldn't copy and paste from my VM machine
– tdmsoares
May 12 '17 at 22:12
1
1
Similaryly, there's a space (and a capital "O", not zero "0") in
connect_from_port 2O=YES
; it should be connect_from_port_20=YES
.– Castaglia
May 12 '17 at 16:44
Similaryly, there's a space (and a capital "O", not zero "0") in
connect_from_port 2O=YES
; it should be connect_from_port_20=YES
.– Castaglia
May 12 '17 at 16:44
Man, in the mean time I replaced the vsftpd.conf for the original one, and it worked... The problem was the config file... The space you said, was only a typo, because I couldn't copy and paste from my VM machine
– tdmsoares
May 12 '17 at 22:12
Man, in the mean time I replaced the vsftpd.conf for the original one, and it worked... The problem was the config file... The space you said, was only a typo, because I couldn't copy and paste from my VM machine
– tdmsoares
May 12 '17 at 22:12
add a comment |
up vote
0
down vote
In my case I have another process on TCP 21.
$ netstat -nalp | grep 21
I saw xinetd on the port at this time. Vfstpd successfully starts after stoppping it.
$ service stop xinetd
add a comment |
up vote
0
down vote
In my case I have another process on TCP 21.
$ netstat -nalp | grep 21
I saw xinetd on the port at this time. Vfstpd successfully starts after stoppping it.
$ service stop xinetd
add a comment |
up vote
0
down vote
up vote
0
down vote
In my case I have another process on TCP 21.
$ netstat -nalp | grep 21
I saw xinetd on the port at this time. Vfstpd successfully starts after stoppping it.
$ service stop xinetd
In my case I have another process on TCP 21.
$ netstat -nalp | grep 21
I saw xinetd on the port at this time. Vfstpd successfully starts after stoppping it.
$ service stop xinetd
answered Sep 25 at 15:13
kujiy
20127
20127
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f364529%2fcentos-vsftpd-not-starting%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
So, what
systemctl status vsftpd
says?– fugitive
May 11 '17 at 23:34
@fugitive I just edited to display the output of
systemctl status vsftpd
– tdmsoares
May 12 '17 at 2:49