Permisions, Ownership and group - WeOnlyDo Discussion board

Permisions, Ownership and group (General questions)

by Leonardo, Friday, March 11, 2005, 13:03 (7196 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

Re: Permisions, Ownership and group

by wodSupport, Friday, March 11, 2005, 13:51 (7196 days ago) @ Leonardo

Leonardo,

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

Kreso

Re: Permisions, Ownership and group

by Leonardo, Wednesday, April 06, 2005, 03:59 (7170 days ago) @ wodSupport

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

Re: Permisions, Ownership and group

by Leonardo, Wednesday, April 06, 2005, 04:10 (7170 days ago) @ Leonardo

Forgot to mention that neither of the users have root privileges

Re: Permisions, Ownership and group

by wodSupport, Wednesday, April 06, 2005, 10:49 (7170 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.