LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Anonymous problem (http://www.linuxquestions.org/questions/linux-newbie-8/anonymous-problem-811850/)

meandsushil 06-03-2010 01:29 AM

Anonymous problem
 
Hi all,
I have setup ftp server with 4 users a1 a2 a3 a4

and set anonymous=YES in vsftpd.conf file

copied some files in /var/ftp/pub/ directory

gave chmod 777 /var/ftp/pub/

also made

[root@station24 ~]# getsebool -a | grep ftp
allow_ftpd_anon_write --> on
allow_ftpd_full_access --> on
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
allow_tftp_anon_write --> off
ftp_home_dir --> on
ftpd_connect_db --> off
ftpd_disable_trans --> off
ftpd_is_daemon --> on
httpd_enable_ftp_server --> off
tftpd_disable_trans --> off

but

when i login from other machine to this machine(172.16.99.24)

like

lftp anonymous@172.16.99.24

i get logged in

but when i try to put anyfile which is created in local machine in /pub/ directory i am getting permission denied message.

why this happening and what's the solution?

getviswa 06-03-2010 01:56 AM

permission
 
u used chmod 777 <folder>

try command chmod -R 777 <folder>

then try to put files

meandsushil 06-03-2010 02:47 AM

i tried with chmod -R 777 /var/ftp/pub/ command too.

but anonymous is not able to put files in this pub directory.


any solution.


tell me plz.

sohail0399 06-03-2010 03:15 AM

check you FTP configuration file,
and also check all Anonymous settings in the same file

# Disallow anonymous users to upload new files (no = upload is allowed)

AnonymousCantUpload yes

digsecurity 06-03-2010 04:16 AM

Uncomment the line 'anon_upload_enable=YES' in vsftpd.conf, restart the service and try again. May help!!!

Karl Godt 06-05-2010 12:57 AM

there is a fourth number to "777" like "0777" or "7770" for the archive, group and owner bit (sticky1 setgid2 setuid4)
"anonymous" should be member of group perhaps and might be at some linuxOS also have already a number like root=0 nobody=99
(I googled for that a while ago and found some answers but do not know exactly anymore)

meandsushil 06-07-2010 05:16 AM

hello all I got solution
just ls at prompt
then cd /pub
then it will get any data to be uploaded


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