Results 1 to 23 of 23
  1. #1

    Starting A Server

    I want to start a server for friends and family and I need to know something, I am using the Xampp package that includes Apache 2, php 4, and proftpd, I want to know how to create users in proftpd and give them FTP access to just thier subfolder in the htdocs main folder, please help me!

  2. #2
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    I'm not a big proftpd fan since I use pureftp but pureftp was based on pro so just adding a user at the command prompt for a linux server should do this.

    for example
    useradd
    groupadd

    You should man these commands

  3. #3
    Thank you, but how do I set thier passwords and allow users to change there passwords from the web.

  4. #4
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    after you create the user do this

    passwd username

    which should prompt you for a new users password

    as for a web based interface you have to look around at freshmeat.net

  5. #5
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    By the way I do nix work

  6. #6
    Do you know how to bar their access to just one subfolder in htdocs?

  7. #7
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    That's also apart of the useradd command which if you man this command might be helpful

    for example
    useradd -d /somedirectory/example

  8. #8
    I see, thank you guys, I am new here and so far, out of all the forums Ive been to this one has the fastest and most useful responses.

  9. #9
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    SYNTAX
    useradd [options] [user]

    OPTIONS
    -c comment Comment field.

    -d dir Home directory.
    The default is to use user as the directory name
    under the home directory specified with the -D option.

    -e date Account expiration date.
    date is in the format MM/DD/YYYY.
    Two-digit year fields are also accepted.
    The value is stored as the number of days since January 1, 1970.
    This option requires the use of shadow passwords.

    -f days Permanently disable account this many days after the
    password has expired. A value of -1 disables this feature.
    This option requires the use of shadow passwords.

    -g group Initial group name or ID number.
    If a different default group has not been specified using the -D option,
    the default group is 1.
    -G groups Supplementary groups given by name or number in a comma-separated
    list with no whitespace.

    -k [dir] Copy default files to user's home directory.
    Meaningful only when used with the -m option.
    Default files are copied from /etc/skel/ unless an alternate dir is specified.

    -m Make user's home directory if it does not exist.
    The default is not to make the home directory.

    -o Override. Accept a nonunique uid with the -u option. (Probably a bad idea.)

    -s shell Login shell.

    -u uid Numerical user ID. The value must be unique unless the -o option is used.
    The default value is the smallest ID value greater than 99 and greater
    than every other uid.

    -D [options] Set or display defaults. If options are specified, set them.
    If no options are specified, display current defaults. The options are:

    -b dir Home directory prefix to be used in creating home directories.
    If the -d option is not used when creating an account, the
    user name will be appended to dir.

    -e date Expire date. Requires the use of shadow passwords.

    -f days Number of days after a password expires to disable an account.
    Requires the use of shadow passwords.

    -g group Initial group name or ID number.

    -s shell Default login shell.

  10. #10
    Join Date
    Nov 2004
    Location
    Marietta PA
    Posts
    137
    You may also want to change their shell to /bin/false so they have ftp only dependign what o/s it is will depend on the false shell.
    Digital Offensive
    http://www.digitaloffensive.com
    Take an offensive approach to Security know what your foes know!

  11. #11
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    Good point there.

  12. #12
    How do I edit a user after I made it so I can do that shell thing.

  13. #13
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    nano or pico depending on what you have
    /etc/passwd

  14. #14
    Ok, I have another problem. I just created a user, and when I try to log in by FTP and when I type in the username and password it says wrong login info

  15. #15
    I jsut got the FTP thing to work, only one problem. The FTP does start at htdocs/test/ where it should but it gives the user access to the whole htdocs folder, how do I give him access to just the test folder.

  16. #16
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    just have to edit the /etc/password change the directory

  17. #17
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    for example
    rpmbuild:x:500:500::/home/rpmbuild:/bin/bash

    change /home/rpmbuild to another directory

  18. #18
    I have it set to the directory I want, but the user for some reason still gets access to all the other directory, its just when he connects he starts at the right directtory.

  19. #19
    Can anyone help me?

  20. #20
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    via ftp or ssh?

  21. #21
    It will be by FTP.

  22. #22
    Join Date
    Jul 2003
    Location
    Missouri
    Posts
    30
    http://www.castaglia.org/proftpd/doc...TO-Chroot.html

    However this seems rather complicated compared to pureftpd

  23. #23
    How do you do it with pureftpd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •