Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposing file attributes in smb2_stat_64 #253

Open
BSzili opened this issue Jan 23, 2023 · 1 comment
Open

Exposing file attributes in smb2_stat_64 #253

BSzili opened this issue Jan 23, 2023 · 1 comment

Comments

@BSzili
Copy link
Contributor

BSzili commented Jan 23, 2023

Currently the only information you get is smb2_type which is a basic file/directory/link value. With file attributes one could implement some basic chmod support to manipulate the READONLY, HIDDEN, SYSTEM and ARCHIVE flags on shared files. This is related to issue #206.

@memecode
Copy link
Contributor

memecode commented Mar 24, 2024

Adding this is like a 2 line change. I even tried it and it was so easy. But in practice the server didn't do the right thing. I was hoping to get the read only flag on a ubuntu samba share but samba is too dumb to figure out if the logged in user has write access or not and set the flag appropriately. So it turned out to be not that useful in practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants