How to set permission of a file created by java?
I have searched online, but could not find any clear solutions.
Basically my java program writes files to a linux directory. The directory itself has 755; but the files created only has 700. What can I do so that the files will also have 755? I am looking for a solution that is either done once from Linux or programmatic solution from Java, but I would like to avoid having to use Runtime.exec to call chmod because it would be a hack. Thanks. |
umask is your friend.
man umask |
umask 022
will work |
thanks guys! that worked!
|
how to take backup in ubuntu destop 7.10
hi friends's
i am new for linux. l have info. about backup in linux. ple tell me how to take backup linux. i am using ubuntu desktop 7.10 thanks |
All times are GMT -5. The time now is 09:00 PM. |