Topic "set permissions / executable bit of directory"

Author Message
honey

Guest


Hi,
while changing properties i found something like a bug:

Select a directory including some subdirs and files.
Then select 'Properties' in Menu.
Change Permissions To 660, Enable 'Add X to directories', Enable 'Set group, owner and permissions recursively' and press 'OK'
after process is complete, go into directory and check permissions of a subdir. it's changed to 660 but should be something like 760 or 770.

am i wrong??
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Option 'Add X to directories' does not work recursively with SCP protocol, only with SFTP. What protocol are you using?

This because with SCP the permissions can be set otherwise recursively with one command (chmod -R), so I avoid entering all subdirectories recursively only because the 'Add X to directories' option. With SFTP, there is no recursive command for setting the permissions, so as I need to enter all subdirectories anyway, I set 'Add X to directories' recursively too.
_________________
Martin Prikryl
honey

Guest


i use scp. why didn't you enter all subdirectory's?

i know chmod -R, but obviously it didn't work for subdirs.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
honey wrote:
i use scp. why didn't you enter all subdirectory's?

i know chmod -R, but obviously it didn't work for subdirs.

It works for sub dirs, but you cannot specify different mode for subdirs and files in sub dirs.
I do not enter the sudirs, because it would take too much time and the benefit is only that sub dirs get the X, when the respective option is on. The recursive change of mode works otherwise.
_________________
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