Quote:
Originally Posted by
AbuAliiiiiiiiii
I'm looking for JAVA code to create file in Linux with specific permission
There is a generic system call for that,
fopen(). Have a look at its man page and report back if anything in there is unclear.
Quote:
Originally Posted by
AbuAliiiiiiiiii
File should be created and saved in Linux in this path \opt\sys\doc by Java with this permission 764
First off, i'd like to question the rationale behind 764. That would mean to give execute rights to the owner and i would be quite surprised if you would want to create an executable.
Second, the path: "\opt\sys\doc" is not a path but rather a filename. Since you do not need to escape regular characters you could also write "optsysdoc" to the same effect. So, what is the path?
I hope this helps.
bakunin