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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-18-2004, 08:23 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2004
Posts: 14
Rep:
|
How to setup FTP users only users on LInux Fedora
Ok, i have linux Fedora and i'm connected to it via SSH. I just got linux and the dedicated box a couple days ago. I want to know, how i can add FTP only users. I want these ftp users to access only a specific folder and nothing else. I want these users to have a username and passwd that i assign them. How do i do this? And remember, i'm a noob, i dont know ANY techincal info and nothing about linux.
Thanks,
Chris
|
|
|
|
05-01-2004, 01:58 PM
|
#2
|
|
Member
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217
Rep:
|
ok, heres what you want to do
if you only want users to be able to access their own things,
use
useradd username -d pathtofiles
-d pathtofiles will specify that their home directory will be whereever you want their files to go
if you are running a webserver with default apache settings, you most likely will want their files to go onto
/var/www/html/foldername/
if u need more info, lemme know
|
|
|
1 members found this post helpful.
|
05-01-2004, 03:07 PM
|
#3
|
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,816
Rep: 
|
Also, you can assign them a shell like /bin/true so that they can't login to a shell (only to FTP). You'll have to make sure that this shell is listed in /etc/shells or the FTP server won't let them log in. If you're using WU-FTPD as your FTP server you can also use the restricted-uid directive in your /etc/ftpaccess file to restrict user do they can't change to a directory outside of your home directory (normally nonanonymous FTP users can transverse the system directory tree, but if permissions are set correctly of course they can't write anywhere outside of their own directory [or anywhere else you've given them access to]).
|
|
|
|
05-01-2004, 03:19 PM
|
#4
|
|
Member
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217
Rep:
|
use the /sbin/nologin shell
|
|
|
1 members found this post helpful.
|
09-09-2010, 05:38 PM
|
#5
|
|
Member
Registered: Dec 2009
Posts: 59
Rep:
|
-bash: useradd: command not found
Anyone know why it's giving me this?
I'm using Linux.
|
|
|
|
09-09-2010, 06:06 PM
|
#6
|
|
LQ Newbie
Registered: Jun 2006
Posts: 8
Rep:
|
Hi bbrian017. Are you in root mode when you issue the command? If it doesn't work from root, try 'find / -name useradd' to locate and type in the full location name.
|
|
|
1 members found this post helpful.
|
09-09-2010, 06:27 PM
|
#7
|
|
Member
Registered: Dec 2009
Posts: 59
Rep:
|
I thought I was root but I guess I wasn't!
I am now I ran the command and I think it worked.
How do I set the users ftp password?
|
|
|
|
09-12-2010, 05:28 PM
|
#8
|
|
LQ Newbie
Registered: Jun 2006
Posts: 8
Rep:
|
Hi bbrian017. From root and the command line try 'passwd username' and answer the prompts for the password.
|
|
|
1 members found this post helpful.
|
09-13-2010, 07:34 AM
|
#9
|
|
Member
Registered: Dec 2009
Posts: 59
Rep:
|
Thanks that worked perfect!
|
|
|
|
|
Tags
|
command, fedora, ftp, how, linux, password, root, setup, useradd, users, var  |
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:19 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|