LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-29-2003, 03:38 PM   #1
Darkfin
LQ Newbie
 
Registered: Mar 2003
Posts: 4

Rep: Reputation: 0
Question Adding users in ProftpD


Hello all,

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


Thanks in advance!!!
 
Old 04-19-2003, 11:22 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Have you tried reading the man pages for:

adduser
addgroup
chmod
chgrp
chown
group
passwd

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.
 
Old 05-24-2009, 04:19 PM   #3
alsrmurad
LQ Newbie
 
Registered: May 2009
Posts: 4

Rep: Reputation: 0
Smile use webmin(GUI) tool

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
 
Old 12-23-2009, 08:00 AM   #4
danger89
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
On my Linux OS is it:
/etc/shells

Where I need to add the line:
/bin/false


Instead of:
/etc/shell
 
  


Reply

Tags
linux, proftpd, shells, user


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a web account for Proftpd javamdk Linux - Software 2 07-30-2005 11:27 AM
ProFtpd and adding virtual users gbj Linux - Networking 0 03-17-2005 01:37 AM
proftpd - adding module in... Black_iCE_mdk Mandriva 9 06-08-2004 02:38 AM
Adding a new user to ProFTPD? WNxSquee Linux - Software 4 01-08-2004 07:01 AM
Problems Adding Privleged Users on Proftpd-1.2.8 George_Engelbre Linux - Networking 2 10-19-2003 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:36 AM.

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
Open Source Consulting | Domain Registration