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;