LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-06-2009, 05:32 AM   #1
BillKat
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise
Posts: 15

Rep: Reputation: 0
Create FTP users, with limited permissions


Hello all.
Linux newb here, with a dedicated to server to look after.... I know, I know...

I need to create a couple of FTP users, and need a bit of help. Our hosting uses Plesk which gives us one FTP user per domain.
Basically these new users should be able to read and write files, having no delete file or create/delete directories perm's.

I've read about useradd , and editing etc/passwd to give them a dummy shell. Or use useradd -s I think. Where I need help is (and please forgive my ignorance):

1) useradd - this is a generic 'create user' command right? So how do I enable the users to be FTP users.

2) How do I set/limit their FTP permissions

Many thanks folks.
 
Old 07-06-2009, 06:18 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
1)
Indeed generic. Depending on the configuration of the FTP server (which one do you use?) they are either enabled or disabled by default.
2)
I don't know; if you can write files, you can overwrite them as well which basically means that you can delete them as well (overwriting with an empty file is very similar to deleting).

Note: make sure that the users are jailed so they can not access the rest of the filesystem.
 
Old 07-06-2009, 06:36 AM   #3
BillKat
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks Wim. I'm trying to find out what FTP server is running at the mo'.

On (2), I'd just assumed it was poss because I've got FileZilla server running locally, which has specific allow/deny options for each of file read, write, delete, and also directory make, delete and list. Will find out what the server is and go from there.
 
Old 07-07-2009, 03:14 AM   #4
BillKat
LQ Newbie
 
Registered: Jan 2009
Location: UK
Distribution: Red Hat Enterprise
Posts: 15

Original Poster
Rep: Reputation: 0
Server is ProFTP, I'm on the way to figuring out the config to do the permissions thing. Looking OK so far.
 
  


Reply

Tags
centos, ftp, permissions, user



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
create limited user freebsd jack111 *BSD 6 02-07-2009 03:32 AM
what permissions to set so ftp users can't get to rest of system neocontrol Linux - Security 1 06-25-2007 03:23 AM
Create directory with permissions for all users focus1 Linux - General 2 06-03-2006 12:59 PM
Create Limited User Accounts epihammer Mandriva 3 05-18-2004 02:52 PM
Limited permissions in subdirectories dwz3591 Linux - Newbie 1 04-27-2004 04:58 AM

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

All times are GMT -5. The time now is 11:04 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