• Need help configuring vsftpd Ubuntu 12.04

    From carlos.ortiz.asm@gmail.com@1:0/0 to All on Thu Nov 14 00:41:32 2013
    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 onl=
    y download files from the server) and userRW(uploads and downloads). Both u= sers have to work on the same directory (let's say /srv/ftp/myFolder for ex= ample). 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 ab=
    le to achieve my goal. Needless to say, I'm a linux noob (I was asked to do=
    this because no one else wanted to give it a shot), but I suppose this iss=
    ue is quite easy for a seasoned linux user. I'm using ubuntu 12-04.

    =20
    As always, any help will be strongly appreciated; the more detailed your re= ply 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, s=
    o if you could come up with the solution it would be strongly appreciated.

    Thanks in advance.

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb
  • From unruh@1:0/0 to All on Thu Nov 14 00:47:36 2013
    On 2013-11-14, carlos.ortiz.asm@gmail.com <carlos.ortiz.asm@gmail.com> wrote:
    Hello, I'm having a problem here and I would like your help if possible.

    Homework problem?



    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.

    What is a virtual user?

    Look at permissions, user and group



    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 do this 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.

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb
  • From carlos.ortiz.asm@gmail.com@1:0/0 to All on Fri Nov 15 01:08:08 2013
    On Wednesday, November 13, 2013 6:47:36 PM UTC-6, unruh wrote:
    On 2013-11-14, ca...@gmail.com <ca...@gmail.com> wrote:
    =20
    Hello, I'm having a problem here and I would like your help if possible=
    ..
    =20
    =20
    =20
    Homework problem?
    =20
    =20
    =20

    =20

    =20
    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). Bo=
    th users have to work on the same directory (let's say /srv/ftp/myFolder fo=
    r example). It doesn't matter if the users are virtual or not.
    =20
    =20
    =20
    What is a virtual user?
    =20
    =20
    =20
    Look at permissions, user and group
    =20
    =20
    =20

    =20

    =20
    I've been googling a lot and I've tried lots of stuff but I haven't bee=
    n able to achieve my goal. Needless to say, I'm a linux noob (I was asked t=
    o do this 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.
    =20

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

    =20
    Thanks in advance.

    Not really, I work (not paid work ;)) as a volunteer in a lab my school. Us= ually I only do programming but I was asked to do this. I dunno what they w= ant to do with this; what I've done in my failed attemps is to create 2 rea=
    l OS users and assigning them to a group. Then I would grant that group ful=
    l permisions on a file and the final configuration would be determinated by=
    their 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's=
    been hard since I hardly use linux and I know very few about networking bu=
    t I'm working on it.

    Regards

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb
  • From unruh@1:0/0 to All on Fri Nov 15 17:58:05 2013

    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.


    On 2013-11-15, carlos.ortiz.asm@gmail.com <carlos.ortiz.asm@gmail.com> wrote:
    On Wednesday, November 13, 2013 6:47:36 PM UTC-6, unruh wrote:
    On 2013-11-14, ca...@gmail.com <ca...@gmail.com> wrote:

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


    Homework problem?







    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.



    What is a virtual user?



    Look at permissions, user and group







    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 do this 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.

    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 by their 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's been hard since I hardly use linux and I know very few about networking but I'm working on it.

    OK.
    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.
    Ie,
    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.


    Regards

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb
  • From carlos.ortiz.asm@gmail.com@1:0/0 to All on Sun Nov 17 21:36:40 2013
    Ok, thanks. Gonna try it out.

    --- MBSE BBS v1.0.1 (GNU/Linux-i386)
    * Origin: The Kofo System II BBS telnet://fido2.kofobb