Need help configuring vsftpd Ubuntu 12.04

Discussion in 'Linux Networking' started by carlos.ortiz.asm, Nov 14, 2013.

  1. Hello, I'm having a problem here and I would like your help if possible.

    I installed vsftpd and I was ordered to create 2 users; userR (that can only download files from the server) and userRW(uploads and downloads). Both users have to work on the same directory (let's say /srv/ftp/myFolder for example). It doesn't matter if the users are virtual or not.

    I've been googling a lot and I've tried lots of stuff but I haven't been able to achieve my goal. Needless to say, I'm a linux noob (I was asked to dothis because no one else wanted to give it a shot), but I suppose this issue is quite easy for a seasoned linux user. I'm using ubuntu 12-04.

    As always, any help will be strongly appreciated; the more detailed your reply is, the more it will help me. In the meantine I'm RTFM'ing but since I'm new to this it's gonna take a while before I come up with the solution, so if you could come up with the solution it would be strongly appreciated.

    Thanks in advance.
    carlos.ortiz.asm, Nov 14, 2013
    1. Advertisements

  2. carlos.ortiz.asm

    unruh Guest

    Homework problem?
    What is a virtual user?

    Look at permissions, user and group
    unruh, Nov 14, 2013
    1. Advertisements

  3. Not really, I work (not paid work ;)) as a volunteer in a lab my school. Usually I only do programming but I was asked to do this. I dunno what they want to do with this; what I've done in my failed attemps is to create 2 real OS users and assigning them to a group. Then I would grant that group full permisions on a file and the final configuration would be determinated bytheir individual config file, but so far it hasn't worked.

    P.S.: I suppose a virtual user is a user that's not a valid login to the os(just to vsftpd). They told me they wanted the users, virtual or not. It'sbeen hard since I hardly use linux and I know very few about networking but I'm working on it.

    carlos.ortiz.asm, Nov 15, 2013
  4. carlos.ortiz.asm

    unruh Guest

    Please stop using google news. As you can see below, it inserts a blank
    line between every line of text it quotes. That exponentially runs away
    making your posts extremely hard to read.

    The access will be determined by the user group and other permissions on
    the files.
    Thus everyone should be able to read. Thus make the directory rx
    permission for other. It should be w permission for the group that the
    one user is in, so make it rw for that group.
    chmod a+rx /srv/ftp/myFolder
    chmod g+w /srv/ftp/myFolder
    chown ftp.usergroup /srv/ftp/myFolder
    assuming that the files are in the home directory of the ftp user.
    where usergroup is the group to which that special user belongs and the
    other user does not.
    This is not a networking problem. It is an ftp problem.

    For example, on my system there is an ftp group. I would put the special
    user into that group (/etc/group) and make the files owned by ftp.ftp

    (I am not positive that vsftp installs an ftp group. Check /etc/group.
    Also I am not sure that it uses ftp as the username for the ftp session.
    Check /etc/passwd.
    unruh, Nov 15, 2013
  5. Ok, thanks. Gonna try it out.
    carlos.ortiz.asm, Nov 17, 2013
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.