chown recursive

Advertisement

franc
Donor
franc avatar
Joined:
Posts:
46

chown recursive

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
Location:
Prague, Czechia

Re: chown recursive

Just check the custom command options Execute recursively (and maybe also Apply to directories) and use pattern ! instead of !&. Please read documentation.
_________________
Martin Prikryl

Reply with quote

Zig
Guest

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

chown "!?property:?!" !

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,542
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

Reply with quote

Advertisement

You can post new topics in this forum