LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-20-2005, 06:22 PM   #1
Roosta21
Member
 
Registered: Aug 2004
Distribution: Fedora core 4
Posts: 55

Rep: Reputation: 15
Two ftp accounts in one site


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

R
 
Old 03-20-2005, 06:49 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
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.
 
Old 03-21-2005, 04:53 AM   #3
Roosta21
Member
 
Registered: Aug 2004
Distribution: Fedora core 4
Posts: 55

Original Poster
Rep: Reputation: 15
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.

R
 
Old 03-24-2005, 07:03 AM   #4
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ftp(through web site access to ftp server) kelper Linux - Software 4 07-03-2015 05:14 PM
restricting accounts in wu-ftp dkc_ace Linux - Software 18 01-11-2003 11:14 PM
setting up accounts and partitions for FTP dkc_ace Linux - Software 7 01-10-2003 10:33 AM
wu-ftp - setting up guest accounts jim_cochran Linux - Newbie 2 04-04-2002 08:26 PM
guest ftp accounts scottp Linux - Networking 0 10-08-2001 05:34 AM


All times are GMT -5. The time now is 09:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration