File permission
Hi,
can you help me please,
how can I get the file permissions please, IF I can writ on or not .
thx
Archive: File permission
File permission
Hi,
can you help me please,
how can I get the file permissions please, IF I can writ on or not .
thx
If you only want to know whether or not you're able to write to a file, you can attempt to open with for appending data.
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.5.2
If that fails, you don't have write access (either you have insufficient privileges, or the file is locked).
I want to know how's permission I have an the file, for example if I havent the right to write or modify it.
I want to get all permission I have for this file.
Thx.
I don't think you want ALL permissions. There's a lot of them. Please be more specific.
my problem is I want to write in a existant file, but i must verify first if I have the permission to write on.
For example I have a sharing file who just I can read it and not modify or write.
When I want write on i would like to have a message "permisssion to write denied".
for that i search why can I know hwo's permissions I have to a specific file.
Thx.
Try with Access Control plugin
I think Access Control Plug-in is useful to solve ur problem..
try the below link:
http://nsis.sourceforge.net/AccessControl_plug-in
you can do it through the xcacls script, however if you are applying the same permissions to all files and folders, then you should be able to right click on the top level folder and change the owner of that and have apply to all subfolders.
The question is not about setting permissions, it's about checking them. jpderuiter supplied a working solution.