Topic "chown recursive"

Author Message
franc
[View user's profile]
Donor
Joined: 2007-05-12
Posts: 46
Hello,
it would be so nice if WinSCP had a feature like chown -R ...
I know i can do as userdefined command:
chown "!?new owner (and group: user.group):?!" !&
but
chown -R "!?new owner (and group: user.group):?!" !&
wouldnt change the owner recursively, unfortunately.
So if i upload with WinSCP a bunch of directories for the webserver, after that i have to open another SSH Terminal to change their ownership and group...
greetings,
franc
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Just check the custom command options Execute recursively (and maybe also Apply to directories) and use pattern ! instead of !&. Please read documentation.
_________________
Martin Prikryl
franc
[View user's profile]
Donor
Joined: 2007-05-12
Posts: 46
This works! Thank you!

greetings franc
Zig

Guest


Sorry to sound dense but would that mean that the custom command entered would look like this to chown recursively?

chown "!?property:?!" !
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Zig wrote:
Sorry to sound dense but would that mean that the custom command entered would look like this to chown recursively?

chown "!?property:?!" !

Yes. But you need to check Execute recursively.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License