You are not logged in.
I have followed this: http://wiki.archlinux.org/index.php/Vsftpd I have successfully set up the virtual user and logged in to my FTP, but I cannot write anything. I do have write_enable=YES in my /etc/vsftpd.conf file (basically followed all settings in the wiki). How can I give the virtual user write access?
TIA
Offline
I guess you will have to add write permission to the user virtual in the guest folder...
Have you Syued today?
Free music for free people! | Earthlings
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery
Offline
Yes I did:
chown virtual:virtual /path
This is what I see for ls -al
drwxr-xr-x 3 virtual virtual 4.0K 2008-11-19 19:45 foldername
If is not right how do I set it?
Thx
Offline
All I can think of now, is that you also have to make sure your virtual users are actually getting access to the folder you are chowning to user virtual, namely, you have to make sure that the home folder of the user virtual has the correct permissions set.
Have you Syued today?
Free music for free people! | Earthlings
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery
Offline
Yes I set the home folder to be the foldername in the line above. I just did chmod 777 to the folder:
drwxrwxrwx 3 virtual virtual 4096 2008-11-19 19:45 foldername
Still cannot write to it when logged in to the ftp
Offline
Well, then try to check the logs for more information, like /var/log/daemon.log and /var/log/syslog.log.
EDIT: by the way, do you have by any chance anonimous_enable set to YES (if it's commented out, it's YES by default!)?
Have you Syued today?
Free music for free people! | Earthlings
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery
Offline
Oops I was replying when the forums were down and forgot to hit submit again hehe.
Yes I checked the logs as well as /var/log/vsftpd.log and there's nothing but connection attempts, nothing of write access denies and such. And I have anonymous_enable=NO.
finferflu thanks for the effort, greatly appreciated. I will seek the vsftpd devs
Offline
colbert, I had the same problem as you.
Fixed it when I looked at this page: http://ubuntuforums.org/showthread.php?t=703232
Scroll down to the very bottom of that first page.
Notice that he does it differently in that he makes a directory where he puts user information.
I followed suit and set the appropriate option in vsftpd.conf,
and it worked. I'm being very vague here, but see if you can figure it out.
So I have /etc/vsftpd.conf
the directory: /etc/vsftpd
with allowed_users
and the db in there for the virtual users 'virtual' and 'guest'
then another directory users
and in that directory 'virtual' and 'guest'
Then I could control the settings for each user.
Offline
Thanks a ton benmorgan! I have set mine up as per that post in the thread and it is working now Thanks!!
Offline
Glad to help. (And... you might want to add [solved] to the title... you know, for increased clarity :-))
Offline