Re: [Proftpd-user] 550 Permission denied during upload / Virtual users

TJ Saunders <[email protected]>
Newsgroups gmane.network.proftpd.user
Message-ID <[email protected]>
  
> Questions:  
> 
> 1.  How do I associate these virtual users to linux file permissions to
> allow write?2.  I also have multiple publishers working together who can
> upload/remove each other's files.   Can these be grouped into the same
> group? 

Unix filesystem permissions are based on the user UID and GID, not based
on username.  So to the Unix kernel, it doesn't matter whether users are
defined by /etc/passwd, in a SQL database, etc -- all that the kernel
(and the filesystem) care about is the numeric UID/GID associated with
the process.

This means that to allow writes to a directory, the process in question
needs to have a UID and/or GID which has write permission to that
directory.

For these situations, I highly recommend using `ls -aldn`; the `-n`
option tells ls(1) to display ownership in _numbers_, not names -- and
then you can correlate the owning IDs with the UID/GID values you give
to your virtual users.

> 2.  I also have multiple publishers working together who can
> upload/remove each other's files.   Can these be grouped into the same
> group?

Yes, absolutely.  I am assuming that you have "virtual groups" defined,
along with your "virtual users"; you can define your users as belonging
to any groups you wish.

Hope this helps,

TJ

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.