rich brown
asked on
How do I check if user has write access to a Linux shared network folder using C#?
How do I check if user has write access to a Linux shared network folder using C#?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Usually, user rights are done on the sharing system versus from the client side outside the suggestion David and Dr. KLahn.
Try to open, wrote list, access while trapping. The difficulty, you would need to be running as the user.
Try to open, wrote list, access while trapping. The difficulty, you would need to be running as the user.
Creating a file requires write access to the directory you want to create it in.
using syscall: access() might give sufficient answer.
In the case of selinux your program does need a description to allow it to call a creat() on a specific set of directories to create files so you should specify what is allowed....
(would also be needed to open such a file).
man 2 access might help: https://linux.die.net/man/2/access
You will need to check for write access to the parent directory.
using syscall: access() might give sufficient answer.
In the case of selinux your program does need a description to allow it to call a creat() on a specific set of directories to create files so you should specify what is allowed....
(would also be needed to open such a file).
man 2 access might help: https://linux.die.net/man/2/access
You will need to check for write access to the parent directory.
http://man7.org/linux/man-pages/man2/stat.2.html