*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would like to create a very limited user in freebsd and chown a folder for this particular user.
The user will need to have ftp access to this folder.
This user is going to be used by the public so the access needs to be very limited.
what is the best way to go about setting this up.
Try looking into "chroot environments". If that doesn't satisfy your needs, try creating the user by specifying their home directory when you issue the "useradd" command, that way, when someone logs in with that account, via FTP, they go straight to that folder (it does not necessarily have to be in "/home" or "/usr".
Okay - you definitely need to look into "chroot" environments.
When someone transfers a file, via FTP, to the server, chances are you are going to want them to upload it to their home directory. chroot environments "change root" so, instead of the user existing at /home/user on the actual filesystem, they will exist at /home/user, but it will look as though they are at the root directory (/).
This way, you can control the tools/commands they have access to and they can do no harm to the system - only the chroot environment.
I would like to create a very limited user in freebsd and chown a folder for this particular user.
The user will need to have ftp access to this folder.
This user is going to be used by the public so the access needs to be very limited.
what is the best way to go about setting this up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.