You are not logged in.

#1 2006-12-18 17:33:44

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

pure-ftpd - different permissions for virtual users?

I seem not to be able to find out how I could declare different permissions for different virtual users. In /etc/pure-ftpd.conf exists one line to declare permissions using

#umask file:folder
umask 133:133

umask matches the numbers to 'UserGroupOthers'.

Now that virtual ftp users belong to a real existing unix user / group, I wonder who is Users, Group and Others?
Users = virtual ftp user ?
Group = virtual ftp group ?
Others = anonymous visitors?

How can I tune it, so one virtual user can add files - f.e. to be used by a scan station - while others shall only read, having anonymous disabled?

This gives me a headache.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#2 2006-12-18 17:54:25

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: pure-ftpd - different permissions for virtual users?

I tried it with a virtual user who belongs to nobody:virtualftpgroup. To belong to nobody caused pureftp to mistrust him sad.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#3 2006-12-19 00:53:33

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: pure-ftpd - different permissions for virtual users?

Ok, let me think.  What did I do? 
I had different users.  User X, Y and Z.

Then, I had a shared directory above their home directories.

While in the system, (not in pure-ftpd) I symlinked.

(Note that doing something in user X's directory, like ln -s ../shared didn't work---I had to do ln -s /usr/home/ftpuser/shared).

Then, I ~think I played with the permissions on shared and got what I wanted. 
Then, after a few hours on this, they changed their minds about what they wanted, everyone was allowed to use shared, but different companies had to have their own directories, so I no longer have that config.

For what it's worth, you can take a quick look at my page

http://www.scottro.net/qnd/qnd-pureftpd.html
but I don't think it covers that situation.

HTH, though I doubt that it did.

Offline

#4 2007-01-02 22:03:44

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: pure-ftpd - different permissions for virtual users?

Thanks, scotto. Unfortunately, this was not what I was really looking for. For my taste, setting up users just for ftp as virtual users should happen inside the ftp setup. If it was necessary to declare different permissions on the file system, then of what use should virtual users be in the end? I could also use normal users, 'cause I already need them on the file system.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#5 2007-01-02 22:16:03

scottro
Member
From: NYC
Registered: 2002-10-11
Posts: 466
Website

Re: pure-ftpd - different permissions for virtual users?

The only reason (in my case) is simply an extra layer of security.  This way, these users don't have system accounts, and indeed, aren't able to do anything but work with their ftp directories. 

As I said in my post, I had a feeling that this wasn't what you were looking for.  Sorry.  :-(

Offline

Board footer

Powered by FluxBB