1 (edited by tworkemon 2010-02-22 18:18:43)

Topic: DefaulRights problem

Hello,
I have upgraded to the latest version and for whatever reason the "DefaultRights" for a specific user does not seem to be working.

<Default>
GlobalDownload 0
DefaultRights 0660 0775
GMTTime -5
</Default>

<Group shellA>
Home /home
StayAtHome true
VirtualChroot true
IgnoreHidden true
HideNoAccess true
HideFiles "^(aquota(.*)|(.*)\.txt)$"
PathDenyFilter          "^\."
CanChangeRights false
CanChangeTime false
ShowLinksAsLinks false
</Group>

<User user1>
Home /home/user1/files
StayAtHome true
VirtualChroot true
IgnoreHidden true
HideNoAccess true
HideFiles "^(aquota(.*)|(.*)\.txt)$"
PathDenyFilter          "^\."
CanChangeRights false
CanChangeTime false
ShowLinksAsLinks false
DefaultRights 0640 2750
</User>

<User user2>
Home /home/user1/files
StayAtHome true
VirtualChroot true
IgnoreHidden true
HideNoAccess true
HideFiles "^(aquota(.*)|(.*)\.txt)$"
PathDenyFilter          "^\."
CanChangeRights false
CanChangeTime false
ShowLinksAsLinks false
DefaultRights 0640 2770
</User>
drwxrws---    9 user1 user2         4096 Feb 22 17:07 incoming

sftp> mkdir test
sftp> ls -lrt

drwxr-sr-x    2 user2    user2         4096 Feb 22 17:07 test

Could it be because both users share the same directory path?
Also when I type sftp-who it does not give me the list of users connected.
Is there a way to verify/tell what version I am running?
Downgrading to 1.15 and everything works fine.

Re: DefaulRights problem

tworkemon wrote:

Hello,
I have upgraded to the latest version and for whatever reason the "DefaultRights" for a specific user does not seem to be working.

DefaultRights works only for sftp client which doesn't provide rights for new file... which is rare smile

tworkemon wrote:

Could it be because both users share the same directory path?

Yes.

tworkemon wrote:

Also when I type sftp-who it does not give me the list of users connected.
Is there a way to verify/tell what version I am running?

It's a bug with the tag VirtualChroot at "true".

Please change your configuration to VirtualChroot at "false" and use StayAtHome at "true" (less secure but not buggy).

Thanks smile

Re: DefaulRights problem

It also seems like the VirtualChroot tag breaks the GMTTime option.  Is there a bug track # for this? I did not see it on sourceforge. This option is very appealing and hopefully it can be fixed.

Is there an option for it to not use GMT at all when using VritualChroot?

Re: DefaulRights problem

tworkemon wrote:

It also seems like the VirtualChroot tag breaks the GMTTime option.  Is there a bug track # for this? I did not see it on sourceforge. This option is very appealing and hopefully it can be fixed.

No but you can post on SF bug tracks.

tworkemon wrote:

Is there an option for it to not use GMT at all when using VritualChroot?

Just not use the tag GMTTime smile