You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on macos when creating new directories using mkdir it assigns the directory GID and not the process GID. this is especially problematic when creating new buckets and objects on s3 operations on nsfs, as the objects/buckets will not get the user GID. in turn this will cause the file to have unexpected permissions (user with specific GID might not be able to access the files).
Actual behavior
s3 put-object, create-bucket creates bucket with parent directory gid instead of users gid
Expected behavior
buckets and objects are created with the users GID, user with group permissions can access and modify the files
Steps to reproduce
create new user with specific non root uid and gid (for example uid 2000, gid 2000)
create new bucket using s3 operation s3api create-bucket --bucket "test-bucket"
check bucket ownership -run ls -la <path-toi-bucket>
gid is of parent directory and not users (2000 in this example)
drwxrwxrwx. 6 nadav wheel 77 Jan 7 14:11 .
drwxrwx---. 4 2000 wheel 85 Jan 5 06:48 test-bucket
More information - Screenshots / Logs / Other output
Implementations shall provide a way to initialize the directory's group ID to the group ID of the parent directory.
Implementations may, but need not, provide an implementation-defined way to initialize the directory's group ID to the effective group ID of the calling process
The directory's owner ID is set to the process's effective user ID. The
directory's group ID is set to that of the parent directory in which it is created.
The text was updated successfully, but these errors were encountered:
Environment info
on macos when creating new directories using mkdir it assigns the directory GID and not the process GID. this is especially problematic when creating new buckets and objects on s3 operations on nsfs, as the objects/buckets will not get the user GID. in turn this will cause the file to have unexpected permissions (user with specific GID might not be able to access the files).
Actual behavior
Expected behavior
Steps to reproduce
s3api create-bucket --bucket "test-bucket"
ls -la <path-toi-bucket>
More information - Screenshots / Logs / Other output
POSIX documentation of mkdir:
macos documentation of mkdir :
The text was updated successfully, but these errors were encountered: