Permisions, Ownership and group (General questions)

by Leonardo @, (7357 days ago)

Hi:

Is it possible for the uploaded files to set the following:

chmod 777 file
chown user file
chgrp grp file

I know that the chmod is possible via the SetPermisions method, what about the rest?

Thanks in advance
Leonardo

locked

Re: Permisions, Ownership and group

by Jasmine, (7357 days ago) @ Leonardo

Leonardo,

use SetAttributes method to set all of that with one call.

Kreso

locked

Re: Permisions, Ownership and group

by Leonardo @, (7331 days ago) @ Jasmine

Hi:

I have the following scenario...

I am uploading files as user a1.... and i want to change ownership of those files to user b1. Is this something possible using SetAttributes method?


Or is there a way that before uploading we can establish that information, allowing that when the files gets uploaded it already has the appropriate ownership/group.

Thanks

Leonardo

locked

Re: Permisions, Ownership and group

by Leonardo, (7331 days ago) @ Leonardo

Forgot to mention that neither of the users have root privileges

locked

Re: Permisions, Ownership and group

by Jasmine, (7331 days ago) @ Leonardo

Leonardo,

I don't think you can do that, this isn't wodSFTP limitation but UNIX security issue. Without root privileges you cannot change ownership like that.

locked