LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP Critical Error (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-critical-error-853376/)

rewards 12-30-2010 10:44 PM

FTP Critical Error
 
Hello all,

I have two questions. 1- The vfstpd is running on the Centos server. The server is in the same home network. The SeLinux and firewall are disabled. I can use Filzilla from a Windows PC from another computer and connect and see directory listing. There is a user names adminftp and he is a memeber of root group. When I try to upload or download I get an ftp critical error message. Does anyone know how to fix this? 2- How can I install Adobe Acrobat Reader, Flash Player and Adobe Shockwave on this Linux box? Thank you all.

TB0ne 12-31-2010 09:21 AM

Quote:

Originally Posted by rewards (Post 4208398)
Hello all,

I have two questions. 1- The vfstpd is running on the Centos server. The server is in the same home network. The SeLinux and firewall are disabled. I can use Filzilla from a Windows PC from another computer and connect and see directory listing. There is a user names adminftp and he is a memeber of root group. When I try to upload or download I get an ftp critical error message. Does anyone know how to fix this?

You follow the advice given to you in the last thread where you asked this same question (and marked it SOLVED):
http://www.linuxquestions.org/questi...-error-852751/
Quote:

2- How can I install Adobe Acrobat Reader, Flash Player and Adobe Shockwave on this Linux box? Thank you all.
You go to Adobe's website, and read the instructions.

hda7 12-31-2010 10:31 AM

Quote:

Originally Posted by TB0ne (Post 4208784)
You go to Adobe's website, and read the instructions.

I tried installing flash player. Following either Abode's instructions or the instructions from Mozilla (I was installing on Firefox) resulted in trying to run a file not in the download archive. I guess there was some mis-communication somewhere.

redhatstand 12-31-2010 11:07 AM

Not a good idea to ask two questions in one thread, unless you only want an answer to one/none of them :-)

https://help.ubuntu.com/community/Medibuntu

Has some info on installing some Windowy type stuff you are used to having access to.

Ubuntu only, but you may get some extra pointers.

Your first (or was it second?) question: Are you absolutely positive you have disabled SELinux? How did you do it? Sure looks like an SELinux thing to me.

Or it could be even simpler: just becuase there is an adminftp user doesn't mean that the ftp server is using it...

as root, try

ps aux | grep ftp

and see which user each of the FTP processes are actually using - could be a simple permissions problem

P.S. We're allowed to ask lots of questions in one thread because we're volunteers ;-)

Andy T

rewards 12-31-2010 05:49 PM

Hello all and happy new year,

I put previous question to SOLVED MODE b/c I did not find a good answer to that so I thought to open another thread hoping to get a solid answer. Here is the out put of [root@localhost ~]# ps aux | grep ftp
root 3661 0.0 0.0 4004 684 pts/1 S+ 15:40 0:00 grep ftp
[root@localhost ~]#

and

[root@localhost ~]# ps aux | grep vsftp
root 3671 0.0 0.0 4004 680 pts/1 S+ 15:45 0:00 grep vsftp
[root@localhost ~]#

Is it helpful? What can I do to make the adminftp user to be able to upoload and download?

hda7 01-01-2011 09:39 AM

Quote:

Originally Posted by rewards (Post 4209137)
Hello all and happy new year,

I put previous question to SOLVED MODE b/c I did not find a good answer to that so I thought to open another thread hoping to get a solid answer. Here is the out put of [root@localhost ~]# ps aux | grep ftp
root 3661 0.0 0.0 4004 684 pts/1 S+ 15:40 0:00 grep ftp
[root@localhost ~]#

and

[root@localhost ~]# ps aux | grep vsftp
root 3671 0.0 0.0 4004 680 pts/1 S+ 15:45 0:00 grep vsftp
[root@localhost ~]#

Is it helpful? What can I do to make the adminftp user to be able to upoload and download?

It looks like the ftp server wasn't running when you ran that command. Make sure you start the ftp server first, and then run the command and post the output.

redhatstand 01-01-2011 12:01 PM

...and once you have got the ftp server started, just go with

ps aux

forget the pipe and the grep just in case that daemon uses an unusual naming convention. That'll list every process running on the box.

By the way, really not the best tactics to 'solve' a thread which didn't solve your problem - might waste the time of others searching for similar symptoms...

Let us know what the ps command reports.

Andy T

rewards 01-01-2011 08:09 PM

Here is the command


[root@localhost ~]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 2160 672 ? Ss 18:52 0:00 init [5]
root 2 0.0 0.0 0 0 ? S< 18:52 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN 18:52 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< 18:52 0:00 [watchdog/0]
root 5 0.0 0.0 0 0 ? S< 18:52 0:00 [migration/1]
root 6 0.0 0.0 0 0 ? SN 18:52 0:00 [ksoftirqd/1]
root 7 0.0 0.0 0 0 ? S< 18:52 0:00 [watchdog/1]
root 8 0.0 0.0 0 0 ? S< 18:52 0:00 [events/0]
root 9 0.0 0.0 0 0 ? S< 18:52 0:00 [events/1]
root 10 0.0 0.0 0 0 ? S< 18:52 0:00 [khelper]
root 11 0.0 0.0 0 0 ? S< 18:52 0:00 [kthread]
root 15 0.0 0.0 0 0 ? S< 18:52 0:00 [kblockd/0]
root 16 0.0 0.0 0 0 ? S< 18:52 0:00 [kblockd/1]
root 17 0.0 0.0 0 0 ? S< 18:52 0:00 [kacpid]
root 151 0.0 0.0 0 0 ? S< 18:52 0:00 [cqueue/0]
root 152 0.0 0.0 0 0 ? S< 18:52 0:00 [cqueue/1]
root 155 0.0 0.0 0 0 ? S< 18:52 0:00 [khubd]
root 157 0.0 0.0 0 0 ? S< 18:52 0:00 [kseriod]
root 223 0.0 0.0 0 0 ? S 18:52 0:00 [khungtaskd]
root 224 0.0 0.0 0 0 ? S 18:52 0:00 [pdflush]
root 225 0.0 0.0 0 0 ? S 18:52 0:00 [pdflush]
root 226 0.0 0.0 0 0 ? S< 18:52 0:00 [kswapd0]
root 227 0.0 0.0 0 0 ? S< 18:52 0:00 [aio/0]
root 228 0.0 0.0 0 0 ? S< 18:52 0:00 [aio/1]
root 385 0.0 0.0 0 0 ? S< 18:52 0:00 [kpsmoused]
root 416 0.0 0.0 0 0 ? S< 18:52 0:00 [ata/0]
root 417 0.0 0.0 0 0 ? S< 18:52 0:00 [ata/1]
root 418 0.0 0.0 0 0 ? S< 18:52 0:00 [ata_aux]
root 422 0.0 0.0 0 0 ? S< 18:52 0:00 [scsi_eh_0]
root 423 0.0 0.0 0 0 ? S< 18:52 0:00 [scsi_eh_1]
root 424 0.0 0.0 0 0 ? S< 18:52 0:00 [scsi_eh_2]
root 425 0.0 0.0 0 0 ? S< 18:52 0:00 [scsi_eh_3]
root 426 0.0 0.0 0 0 ? S< 18:52 0:00 [scsi_eh_4]
root 427 0.0 0.0 0 0 ? S< 18:52 0:00 [scsi_eh_5]
root 428 0.0 0.0 0 0 ? S< 18:52 0:00 [scsi_eh_6]
root 429 0.0 0.0 0 0 ? S< 18:52 0:00 [scsi_eh_7]
root 433 0.0 0.0 0 0 ? S< 18:52 0:00 [kstriped]
root 446 0.0 0.0 0 0 ? S< 18:52 0:00 [ksnapd]
root 461 0.0 0.0 0 0 ? S< 18:53 0:00 [kjournald]
root 492 0.0 0.0 0 0 ? S< 18:53 0:00 [kauditd]
root 525 0.0 0.0 3188 1632 ? S<s 18:53 0:00 /sbin/udevd -d
root 1431 0.0 0.0 0 0 ? S< 18:53 0:00 [hd-audio0]
root 1943 0.0 0.0 0 0 ? S< 18:53 0:00 [kmpathd/0]
root 1944 0.0 0.0 0 0 ? S< 18:53 0:00 [kmpathd/1]
root 1945 0.0 0.0 0 0 ? S< 18:53 0:00 [kmpath_handle]
root 1969 0.0 0.0 0 0 ? S< 18:53 0:00 [kjournald]
root 2137 0.0 0.0 0 0 ? S< 18:53 0:00 [kondemand/0]
root 2138 0.0 0.0 0 0 ? S< 18:53 0:00 [kondemand/1]
root 2230 0.0 0.0 2264 508 ? Ss 18:53 0:00 mcstransd
root 2497 0.0 0.0 2404 540 ? Ss 18:53 0:00 /sbin/dhclient
root 2553 0.0 0.0 12628 756 ? S<sl 18:53 0:00 auditd
root 2555 0.0 0.0 12164 672 ? S<sl 18:53 0:00 /sbin/audispd
root 2572 0.0 0.2 12340 10620 ? Ss 18:53 0:00 /usr/sbin/resto
root 2581 0.0 0.0 1816 572 ? Ss 18:53 0:00 syslogd -m 0
root 2584 0.0 0.0 1764 396 ? Ss 18:53 0:00 klogd -x
rpc 2605 0.0 0.0 1912 548 ? Ss 18:53 0:00 portmap
root 2631 0.0 0.0 0 0 ? S< 18:53 0:00 [rpciod/0]
root 2632 0.0 0.0 0 0 ? S< 18:53 0:00 [rpciod/1]
rpcuser 2640 0.0 0.0 1964 740 ? Ss 18:53 0:00 rpc.statd
root 2664 0.0 0.0 5928 644 ? Ss 18:53 0:00 rpc.idmapd
dbus 2679 0.0 0.0 13316 1240 ? Ssl 18:53 0:00 dbus-daemon --s
root 2691 0.0 0.3 45620 13640 ? Ssl 18:53 0:01 /usr/bin/python
root 2700 0.0 0.0 2256 788 ? Ss 18:53 0:00 /usr/sbin/hcid
root 2706 0.0 0.0 1832 508 ? Ss 18:53 0:00 /usr/sbin/sdpd
root 2729 0.0 0.0 0 0 ? S< 18:53 0:00 [krfcommd]
root 2767 0.0 0.0 33448 1468 ? Ssl 18:53 0:00 pcscd
root 2777 0.0 0.0 1760 528 ? Ss 18:53 0:00 /usr/sbin/acpid
root 2796 0.0 0.0 2008 456 ? Ss 18:53 0:00 /usr/bin/hidd -
root 2821 0.0 0.0 27364 1364 ? Ssl 18:53 0:00 automount
root 2838 0.0 0.0 5244 752 ? Ss 18:53 0:00 ./hpiod
root 2845 0.0 0.1 13584 4816 ? S 18:53 0:00 python ./hpssd.
root 2858 0.0 0.0 7196 1040 ? Ss 18:53 0:00 /usr/sbin/sshd
root 2867 0.0 0.0 10236 2460 ? Ss 18:53 0:00 cupsd
root 2881 0.0 0.0 2836 844 ? Ss 18:53 0:00 xinetd -stayali
root 2914 0.0 0.0 4624 1276 ? S 18:53 0:00 /bin/sh /usr/bi
mysql 2964 0.0 0.4 136912 17796 ? Sl 18:53 0:00 /usr/libexec/my
root 2997 0.0 0.0 9408 1704 ? Ss 18:53 0:00 sendmail: accep
smmsp 3006 0.0 0.0 8256 1512 ? Ss 18:53 0:00 sendmail: Queue
root 3016 0.0 0.0 1996 468 ? Ss 18:53 0:00 gpm -m /dev/inp
root 3026 0.0 0.2 26136 10208 ? Ss 18:53 0:00 /usr/sbin/httpd
root 3035 0.0 0.0 5380 1196 ? Ss 18:53 0:00 crond
apache 3062 0.0 0.1 26136 5116 ? S 18:53 0:00 /usr/sbin/httpd
apache 3063 0.0 0.1 26136 5116 ? S 18:53 0:00 /usr/sbin/httpd
apache 3064 0.0 0.1 26136 5116 ? S 18:53 0:00 /usr/sbin/httpd
apache 3066 0.0 0.1 26136 5116 ? S 18:53 0:00 /usr/sbin/httpd
apache 3067 0.0 0.1 26136 5116 ? S 18:53 0:00 /usr/sbin/httpd
apache 3068 0.0 0.1 26136 5116 ? S 18:53 0:00 /usr/sbin/httpd
apache 3069 0.0 0.1 26136 5116 ? S 18:53 0:00 /usr/sbin/httpd
apache 3071 0.0 0.1 26136 5116 ? S 18:53 0:00 /usr/sbin/httpd
xfs 3072 0.0 0.0 3956 1636 ? Ss 18:53 0:00 xfs -droppriv -
root 3089 0.0 0.0 2360 440 ? Ss 18:53 0:00 /usr/sbin/atd
avahi 3116 0.0 0.0 2688 1276 ? Ss 18:53 0:00 avahi-daemon: r
avahi 3117 0.0 0.0 2688 424 ? Ss 18:53 0:00 avahi-daemon: c
68 3126 0.0 0.1 6404 4364 ? Ss 18:53 0:02 hald
root 3127 0.0 0.0 3260 1104 ? S 18:53 0:00 hald-runner
68 3134 0.0 0.0 2108 832 ? S 18:53 0:00 hald-addon-acpi
root 3136 0.0 0.2 25908 10376 ? SN 18:53 0:00 /usr/bin/python
root 3142 0.0 0.0 2772 1212 ? SN 18:53 0:00 /usr/libexec/ga
68 3143 0.0 0.0 2108 820 ? S 18:53 0:00 hald-addon-keyb
68 3147 0.0 0.0 2108 828 ? S 18:53 0:00 hald-addon-keyb
root 3156 0.0 0.0 2060 668 ? S 18:53 0:00 hald-addon-stor
root 3158 0.0 0.0 2060 672 ? S 18:53 0:00 hald-addon-stor
root 3223 0.0 0.0 3604 520 ? S 18:53 0:00 /usr/sbin/smart
root 3228 0.0 0.0 1748 464 tty1 Ss+ 18:53 0:00 /sbin/mingetty
root 3229 0.0 0.0 1748 464 tty2 Ss+ 18:53 0:00 /sbin/mingetty
root 3230 0.0 0.0 1748 468 tty3 Ss+ 18:53 0:00 /sbin/mingetty
root 3231 0.0 0.0 1748 468 tty4 Ss+ 18:53 0:00 /sbin/mingetty
root 3232 0.0 0.0 1748 460 tty5 Ss+ 18:53 0:00 /sbin/mingetty
root 3235 0.0 0.0 1748 464 tty6 Ss+ 18:53 0:00 /sbin/mingetty
root 3237 0.0 0.0 15700 2928 ? Ss 18:53 0:00 /usr/sbin/gdm-b
root 3327 0.0 0.0 16340 2696 ? S 18:53 0:00 /usr/sbin/gdm-b
root 3329 0.0 0.1 27628 4200 ? Sl 18:53 0:00 /usr/libexec/gd
root 3330 0.0 0.3 23388 15808 tty7 Rs+ 18:53 0:09 /usr/bin/Xorg :
root 3867 0.3 0.2 25044 10360 ? Ss 22:33 0:00 /usr/bin/gnome-
root 3903 0.0 0.0 6632 636 ? Ss 22:33 0:00 /usr/bin/ssh-ag
root 3928 0.0 0.0 2864 628 ? S 22:33 0:00 /usr/bin/dbus-l
root 3929 0.0 0.0 13220 1120 ? Ssl 22:33 0:00 /bin/dbus-daemo
root 3936 0.3 0.0 7276 3540 ? S 22:33 0:00 /usr/libexec/gc
root 3939 0.0 0.0 2664 740 ? S 22:33 0:00 /usr/bin/gnome-
root 3941 0.1 0.1 33824 8084 ? Sl 22:33 0:00 /usr/libexec/gn
root 3961 0.3 0.1 16652 7804 ? Ss 22:33 0:00 metacity --sm-c
root 3965 0.6 0.3 79412 13524 ? Ss 22:33 0:00 gnome-panel --s
root 3967 0.4 0.4 117344 16684 ? Ss 22:33 0:00 nautilus --no-d
root 3971 0.0 0.1 44812 8172 ? Ss 22:33 0:00 eggcups --sm-cl
root 3973 0.0 0.0 11316 3480 ? S 22:33 0:00 /usr/libexec/gn
root 3975 0.1 0.0 39036 3020 ? Ssl 22:33 0:00 /usr/libexec/bo
root 3976 0.0 0.1 22484 4732 ? Ss 22:33 0:00 gnome-volume-ma
root 3987 0.0 0.1 14284 4872 ? Ss 22:33 0:00 bt-applet --sm-
root 4003 0.0 0.0 18328 2576 ? Sl 22:33 0:00 ./escd --key_In
root 4007 0.1 0.2 124444 11028 ? Ss 22:33 0:00 nm-applet --sm-
root 4009 0.3 0.5 38328 20820 ? Ss 22:33 0:00 /usr/bin/python
root 4011 0.0 0.1 15056 4528 ? Ss 22:33 0:00 pam-panel-icon
root 4012 0.0 0.0 1960 620 ? S 22:33 0:00 /sbin/pam_times
root 4015 0.0 0.1 76180 6252 ? Ss 22:33 0:00 gnome-power-man
root 4026 0.0 0.0 6496 3112 ? S 22:33 0:00 /usr/sbin/nm-sy
root 4029 0.2 0.2 77812 10544 ? S 22:33 0:00 /usr/libexec/wn
root 4031 0.0 0.2 107024 8644 ? S 22:33 0:00 /usr/libexec/tr
root 4038 0.0 0.2 89572 11600 ? Sl 22:33 0:00 /usr/libexec/mi
root 4040 1.3 0.5 41936 23260 ? S 22:33 0:01 /usr/bin/python
root 4042 0.0 0.0 2572 868 ? S 22:33 0:00 /usr/libexec/ma
root 4087 0.0 0.1 22916 7608 ? S 22:33 0:00 /usr/libexec/no
root 4089 0.0 0.2 28984 10228 ? S 22:33 0:00 /usr/libexec/cl
root 4093 0.0 0.0 4572 1188 ? S 22:33 0:00 /bin/sh /usr/li
root 4110 11.2 1.2 308456 53072 ? Sl 22:33 0:09 /usr/lib/firefo
root 4146 0.0 0.0 16568 2104 ? Ss 22:33 0:00 gnome-screensav
root 4156 8.0 0.3 93008 13792 ? Sl 22:34 0:00 gnome-terminal
root 4159 0.0 0.0 2576 716 ? S 22:34 0:00 gnome-pty-helpe
root 4160 0.6 0.0 4628 1468 pts/1 Ss 22:34 0:00 bash
root 4173 0.0 0.0 4348 948 pts/1 R+ 22:34 0:00 ps aux
[root@localhost ~]#

redhatstand 01-02-2011 12:40 PM

OK, so the ftp server appears to be running as root (Eeek - hope it's not Internet accessible)

Which is sounding more and more like the originally cited SELinux problem...

Could you post the method you used to switch off SELinux, and how you are confirming it actually is switched off?

Andy T

rewards 01-02-2011 07:59 PM

I went to System, Administration, Security Level and Firewall. Disabled both Firewall and SELinux. Firewall is Disabled. SELinux is Disabled

routers 01-02-2011 10:23 PM

my suggestion go to konsole
1) execute this command
# setenforce 0
2) start vsftpd
# /sbin/service vsftpd start
3) check its runing or not
# netstat -tanp | grep 21


note: that setenforce is zero not big O
see next what issue

djtoltz 01-03-2011 12:05 AM

I don't even see any ftp daemon in that process list. I must be missing something. Is it running under inetd?

kingston 01-03-2011 12:55 AM

normally selinux wont come with the immediate effect, after you disable it. It may require a reboot.
What is the output of "service vsftpd status" command?

routers 01-03-2011 01:28 AM

Quote:

Originally Posted by kingston (Post 4211088)
normally selinux wont come with the immediate effect, after you disable it. It may require a reboot.
What is the output of "service vsftpd status" command?

yup that is true, but lucky command is setenforce 0
will make selinux off immediate effect ( not permanent ) use for testing

just for info

rewards 01-03-2011 11:24 AM

Thank you all. I can login with FTP and see directory listings. I can download files without any problem. But I cannot upload any file or folder. Does anyone know why I am not able to upload files? This is the message I get: 227 Entering Passive Mode (192,168,0,198,45,173) and 553 Could not create file. Thank you all.


All times are GMT -5. The time now is 09:47 AM.