Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    FTP Access, New User, Folder Access

    Hey Guys. Today i got my second server online and I'm in a need of some help :>

    I'm running a debian 5.0 64bit.

    Was wondering How to add a new user to the server, with it's own password and so that user can only view a folder set for him via FTP.

    Something like this

    User: Andrew
    passw: xxxxxx
    Folder Access: Server5

    I don't want to give out my root password, thats why i need this.


  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Western Kentucky
    you would add a user like you would any other shell user of your system. I will assume you all ready created a folder for this user:
    useradd -d /home/path -s /sbin/nologin andrew
    passwd andrew
    The home directory (-d) is the absolute path to the folder you want that user mapped to.

    the shell setting (-s) may or may not be right. it depends your software, or if you are using PAM authentication or UNIX authentication. more info is required to say for sure.
    linux user # 503963

Posting Permissions

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