chmod -R does not recursively change mod

Description

I mounted a S3 bucket, the initial permission of all the files under the bucket is "500", I did "chmod -R 777 /bucket", but only "/bucket" is changed to mode "777", then I did "chmod -R 777 /bucket" again, then the directories and files directly under "/bucket" are changed to mode "777".

But the first run of "chmod -R 777 /bucket" should set all files under "/bucket" recursively to mode "777".

Environment

None

Status

Assignee

Unassigned

Reporter

Cheng Chang

Labels

None

Components

Affects versions

Priority

Major
Configure