Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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 have setup a linux box to act as a webserver (apache) and an FTP server (ProFTPD). I am having problems setting up user accounts with ProFTPD.
I want to have individual FTP users have read/write access to a specific folder within the webserver /var/www/html/users/userdir1
I have been messing around with directory permissions and have exausted all my brain power trying to get the ./adduser command to work.
I assume that I need to A) Create a system group (eg. "FTP") with read/write access to /var/www/html/users and B) create FTP users using adduser within that group that have access to a specific subdirectory like /var/www/html/users/userdir1 ?
Obviously I only want ftp users to have full access to that ONE directory within my server but I'm a little confused on how to go about setting this up.
I hate to ask to be spoonfed information, but could someone please walk me through the process of setting up a user account within proftpd which will have read/write access to a specific directory within the webserver /var/www/html/users/userdir1
Basically create a group for access to the correct directory in question you want these users to have read/write access to.
Then create the user, then adding them to the proper group by editing your /etc/group file.
A small tip, if you don't want these users to have a valid shell but only FTP access, to upload and download files, edit your /etc/passwd file and make the users default shell /bin/false
Then edit your /etc/shell and add /bin/false to it. Now the users will be able to only login to the FTP to upload and download files only, preventing them shell access to your server.
use the webmin(GUI) tool to remote administration of your server through web browser.
if you do not have you can get it from webmin.com, there you can get information how to install it.
connect to your server through webmin
1.go to system/users and groups
2.click create a new user
create an username,
put the path of your Home directory(if select directory option),
let webmin pick the user id,
select as shell /bin/sh,
click on "normal password" and choose a password,
leave all other as webmin is offering, and ckick create.
that will create an user with a pass
try now to ftp to your.domain and log in as user/pass
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.