LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 04-18-2004, 08:23 PM   #1
Soujiro
LQ Newbie
 
Registered: Apr 2004
Posts: 14

Rep: Reputation: 0
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
 
Old 05-01-2004, 01:58 PM   #2
adamwenner
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: Reputation: 32
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.
Old 05-01-2004, 03:07 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,988

Rep: Reputation: 261Reputation: 261Reputation: 261
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]).
 
Old 05-01-2004, 03:19 PM   #4
adamwenner
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: Reputation: 32
use the /sbin/nologin shell
 
1 members found this post helpful.
Old 09-09-2010, 05:38 PM   #5
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Rep: Reputation: 15
-bash: useradd: command not found

Anyone know why it's giving me this?

I'm using Linux.
 
Old 09-09-2010, 06:06 PM   #6
dhugh
LQ Newbie
 
Registered: Jun 2006
Posts: 8

Rep: Reputation: 2
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.
Old 09-09-2010, 06:27 PM   #7
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Rep: Reputation: 15
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?
 
Old 09-12-2010, 05:28 PM   #8
dhugh
LQ Newbie
 
Registered: Jun 2006
Posts: 8

Rep: Reputation: 2
Hi bbrian017. From root and the command line try 'passwd username' and answer the prompts for the password.
 
1 members found this post helpful.
Old 09-13-2010, 07:34 AM   #9
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Rep: Reputation: 15
Thanks that worked perfect!
 
  


Reply

Tags
command, fedora, ftp, how, linux, password, root, setup, useradd, users, var


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup Linux to accept modem users connection longnam Linux - Hardware 1 04-07-2005 03:43 PM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
Best Linux Mag for Fedora Users? alime Fedora 3 07-22-2004 11:00 AM
Dual head (monitor) and multiple users setup in Fedora Core 2 the theorist Fedora 0 06-03-2004 11:32 AM
How can I find out the users setup on a Linux box R4z0r Linux - General 4 06-28-2003 11:32 AM


All times are GMT -5. The time now is 10:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration