Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Hi
I have created a ftp for one of my websites (using plesk).. but I would like to add another ftp account to the same site, so I can restrict certain folders for the one ftp account and not other.. Is this possible
Sure, just create a user, and assign him the home directory, for which the user will have rights. Then chroot him so that he can not escape out of his home directory.
Thanks for the reply... i'm still learning linux, is it possible you could expand or maybe point me to a website that may have more inofrmation on this subject.
Sure. If you created a FTP for one website, you had to create a user to login to and be able to do stuff with your FTP account (like read, write, execute).
Now if you made it work for one user, let's call him larry. You would login as larry and use his password. That way you would come to larry's home directory, presumably /home/larry. You can set a users home directory in the /etc/passwd file or with usermod command (see man usermod for details on how to use the command).
Now, if you have a FTP account for one user, just add a new user, using the command useradd or adduser new_username(whichever works on your system). When you add the user (if it doesn't ask you for a password), assign the user a password, using the passwd command, like this: passwd new_username, where new_username is the name of the new user you just created. Let's call her betty.
The commands would be:
adduser betty or useradd betty
passwd betty
Now you have the new user betty and you have a password for the user.
This is pretty much it. If you'd like the user to be able to write only to a chosen directory, you can assign that directory as a home directory to that user with the usermod command, or you can set a link to the directory in the user's home directory.
Wit this information you should be able to make it work, or at least set you in the right direction.
The best place for more information is your FTP server's website. You say you use plesk? I never heard of plesk, but it should be the same in most of the servers.
Good luck!
If you run in any more problems, post them here, or you can msg directly, as I don't look at LQ every day.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.