You are not logged in.

#1 2008-11-20 00:43:50

colbert
Member
Registered: 2007-12-16
Posts: 809

[SOLVED] Vsftpd-- giving user ability to write

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 smile

Offline

#2 2008-11-20 00:53:28

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [SOLVED] Vsftpd-- giving user ability to write

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

#3 2008-11-20 00:57:57

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] Vsftpd-- giving user ability to write

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 smile

Offline

#4 2008-11-20 01:09:33

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [SOLVED] Vsftpd-- giving user ability to write

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

#5 2008-11-20 02:08:11

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] Vsftpd-- giving user ability to write

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 sad

Offline

#6 2008-11-20 12:06:02

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [SOLVED] Vsftpd-- giving user ability to write

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

#7 2008-11-22 03:51:07

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] Vsftpd-- giving user ability to write

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 smile

Offline

#8 2008-12-01 17:18:26

benmorgan
Member
From: Germany
Registered: 2006-07-28
Posts: 67

Re: [SOLVED] Vsftpd-- giving user ability to write

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

#9 2008-12-04 01:35:28

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: [SOLVED] Vsftpd-- giving user ability to write

Thanks a ton benmorgan! I have set mine up as per that post in the thread and it is working now smile Thanks!!

Offline

#10 2008-12-04 22:49:47

benmorgan
Member
From: Germany
Registered: 2006-07-28
Posts: 67

Re: [SOLVED] Vsftpd-- giving user ability to write

Glad to help. (And... you might want to add [solved] to the title... you know, for increased clarity :-))

Offline

Board footer

Powered by FluxBB