cannot create a file in my local ftp server
hi everybody,
i cannot create a folder, file and even cannot rename on my local ftp server. anonymous_enable=NO ( i changed it to NO ) local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_std_format=YES listen=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES # getenforce Enforcing #setsebool - P ftp_home_dir=1 # getsebool -a | grep ftp_home_dir ftp_home_dir --> on # service vsftpd status vsftpd (pid 1262) is running... # groupadd ftpusers # useradd ashim # passwd ashim # pwd /var/ftp/pub/files # usermod -aG ftpusers -d /var/ftp/pub/files ashim # chown root:ftpusers /var/ftp/pub/files # chmod g+w /var/ftp/pub/files # service vsftpd restart i have checked after giving this command # chown root:ftpusers /var/ftp/pub/files and # chmod g+w /var/ftp/pub/files # pwd / # ll drwxr-xr-x. 23 root root 4096 May 11 01:41 var pwd /var # ll drwxr-xr-x. 3 root root 4096 May 11 01:41 ftp # pwd /var/ftp # ll drwxr-xr-x. 3 root root 4096 May 12 08:44 pub # pwd /var/ftp/pub # ll drwxrwxr-x. 2 root ftpusers 4096 May 12 10:03 files i have install centos in my desktop and windows 7 on my laptop. 1) (from windows) i can download a file but when try to upload data in ftpserver=10.10.10.161 "/var/ftp/pub/files from my client laptop using windows 7 os the following error occurs 550 create directory operation failed 2) (in centos) when i try to make directory inside /var/ftp/pub/files/ the error occurs # ftp 10.10.10.161 Connected to 10.10.10.161 (10.10.10.161). 220 (vsFTPd 2.2.2) Name (10.10.10.161:khem): ashim 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> pwd 257 "/var/ftp/pub/files" ftp> mkdir test 550 Create directory operation failed. ftp> hostname = server and my ip = 10.10.10.161. when i do ftp://10.10.10.161 it works but when i try ftp://server it does not work. i have menson the setp's i have done but i was not able to upload a file , create a file and rename a file. can anybody guide me in right way i'll be greatful and any kinds of ideas, suggestions and guidelines are welcome. THANK YOU IN ADVANCE; |
I recently tried doing this but after much reading and editing i found it extremely tedious.
One thing i found you need to do however is once you FTP into your server "ftp:10.10.10.161:(port number)" you need to authenticate by right clicking in the FTP folder window and clicking login. You will then use your system credentials to log in. Unless you have it set up correctly, the user you authenticate with must be a real user on the server. So if on your server, you have a user called, "Server", and that user has a valid password, you will need to enter that information in in order to have full read/write/execute access. |
thank you, ExemptOA.
for your quick reply. what i want to do is just want to create folder , rename and edit by logging in specific user which i have login. when i switch to # setenforce 0. i can create, rename and edit file but when i switch to # setenforce 1 i cannot able to create, rename and edit file . i think i have to manage selinux but i don't know where and how to do this. can anybody help me to fix my problems any kinds of ideas, suggestions are welcome and i'll be greatful. THANK YOU IN ADVANCE. |
Some good SELinux explanations/howtos in this doc http://www.linuxtopia.org/online_boo...ion/index.html.
Mostly you'll want Chap 44; see Chap 43 for background theory. |
All times are GMT -5. The time now is 07:45 PM. |