Results 1 to 5 of 5
hi all! i have open suse 10.2 and vsftp. what i want is to set it for ppl to copy files in /srv/ftp (for example) because i don`t have send ...
- 04-03-2007 #1Just Joined!
- Join Date
- Mar 2007
- Posts
- 4
ftp settings
hi all! i have open suse 10.2 and vsftp. what i want is to set it for ppl to copy files in /srv/ftp (for example) because i don`t have send file on gaim. if someone want to send me a file, i want him to put it on ftp and so i can see it
anyone knows?
- 04-03-2007 #2Linux Newbie
- Join Date
- May 2006
- Location
- Kansas
- Posts
- 187
First, start up your vsftpd daemon:
ehud:~ # /etc/init.d/vsftpd start
Starting vsftpd done
ehud:~ #
Next, open the firewall through YaST so external users can connect:
YaST --> Security --> Firewall --> Allowed Services --> Advanced --> TCP Port - add "21" --> OK --> Accept
Create user IDs for your external users.
If you want vsftpd to start at boot time, do this also through YaST:
YaST --> System --> System Services (Runlevel) --> vsftpd --> Enable --> Finish
- 04-03-2007 #3Just Joined!
- Join Date
- Mar 2007
- Posts
- 4
i know..but what i need is how to configure vsftpd.conf
this is how it looks now:
Code:caracal:~ # cat /etc/vsftpd.conf anonymous_enable=YES local_enable=YES dirmessage_enable=YES connect_from_port_20=YES xferlog_enable=YES xferlog_file=/var/log/vsftpd/vsftpd.log nopriv_user=nobody chroot_list_enable=YES chroot_local_user=YES background=YES listen=YES anon_mkdir_write_enable=YES anon_upload_enable=YES write_enable=YES anon_world_readable_only=YES no_anon_password=YES download_enable=YES anon_max_rate=0 listen_port=21 local_max_rate=0 max_per_ip=1 pasv_enable=YES port_enable=YES anon_root=/srv/ftp/anon/ caracal:~ #
and this what it says when i try to log in:
Code:caracal:~ # ftp localhost Trying 127.0.0.1... Connected to localhost. 220 (vsFTPd 2.0.5) Name (localhost:caracal): ftp 500 OOPS: vsftpd: refusing to run with writable anonymous root ftp: Login failed. ftp> bye 500 OOPS: child died caracal:~ #
- 04-03-2007 #4Linux Newbie
- Join Date
- May 2006
- Location
- Kansas
- Posts
- 187
Create a new user ID that access to where you want to upload files. I don't even think the "ftp" user can log in. Try logging in with the user that you log into the machine as.
- 04-03-2007 #5Linux Newbie
- Join Date
- May 2006
- Location
- Kansas
- Posts
- 187
Sorry, "ftp" can login with "ftp" password. The directory permissions are too open on your "ftp" directory. Mine were all "755" by default:
ehud:~ # ls -ld /
drwxr-xr-x 22 root root 4096 Mar 22 13:14 /
ehud:~ # ls -ld /srv
drwxr-xr-x 4 root root 4096 Jan 25 08:27 /srv
ehud:~ # ls -ld /srv/ftp
drwxr-xr-x 2 root root 4096 Nov 25 15:49 /srv/ftp
ehud:~ #
When I set /srv/ftp to "777", then I get the same message:
remotehost:/:$ ftp 10.xx.xxx.xxx
Connected to 10.xxx.xxx.xxx
220 (vsFTPd 2.0.5)
Name (10.xxx.xxx.xxx:USER): ftp
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable anonymous root
Login failed.
ftp>
Instead, change the permissions back:
chmod 755 /srv/ftp
Then create a new subdirectory:
cd /srv/ftp
mkdir uploads
Then change the permissions on it:
chmod 777 ./uploads
When you login, change directory to uploads, and you can place your files there. That should fix it for you.


Reply With Quote