LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-30-2011, 06:19 PM   #1
jon20usa
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
Shared FTP directory - separate user permissions


I am trying to setup 2 individual FTP users. They should both have access to the same directory. They both need to be able to read/write into the directory. But, I want them not to be able to write to each other's files (e.g. delete, remove, rename, etc.).

So let's say the shared directory is: /home/ftp/shared/

UserA needs read/write access to /home/ftp/shared/. UserA should only have write access to his own files.
UserB also needs read/write access to /home/ftp/shared/. UserB should only have write access to his own files.

It would be a unix box of sorts, but that is the only restriction. I could use whatever software. I am currently thinking pure-ftpd or vsftp but I am open to all ideas.

Any ideas how I can accomplish this?

Thanks.
 
Old 03-30-2011, 06:59 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Sounds like you could just set the directory with the same permissions as /tmp, turn on the sticky bit and set their umask to 022

hth
 
  


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 user can't create a directory on ftp server bharatlalgupta Red Hat 4 01-27-2010 02:58 PM
Samba - Permissions of shared directory, and directories above it sillyfofilly Linux - Networking 1 10-20-2009 04:10 AM
NFS Sever Shared Directory - File Permissions Problem LakeWind Linux - Server 1 06-12-2007 03:51 AM
ftp permissions access only in the one directory ataucuc Linux - Newbie 1 12-27-2005 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:30 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
Open Source Consulting | Domain Registration