java.io.IOException: Not owner

Hi,

I get the following Not Owner error when my java program tries to create a new file on a NAS file storage whose authentication is done by NTFS. The program is run on unix under xyz user id.

The filesystem is mounted with xyz ownership

at java.io.UnixFileSystem.createFileExclusively(Native Method)

at java.io.File.checkAndCreate(Unknown Source)

at java.io.File.createTempFile(Unknown Source)

at weblogic.security.internal.FileUtils.replace(FileUtils.java:86)

at weblogic.security.internal.SerializedSystemIni.write(SerializedSystemIni.java:113)

at weblogic.security.internal.SerializedSystemIni.<init>(SerializedSystemIni.java:125)

at weblogic.security.internal.SerializedSystemIni.getEncryptionService(SerializedSystemIni.java:237)

at com.cpb.common.security.EncryptDecryptPwd.encrypt(EncryptDecryptPwd.java:101)

at com.cpb.common.security.EncryptDecryptPwd.main(EncryptDecryptPwd.java:75)

nested within:

weblogic.security.internal.FileUtilsException: [Security:090192]couldn't create temporary file for SerializedSystemIni.dat , .new, /taos/NA/Stamford/InvestmentResearch/products/PasswordEncryption/v1.0.0b - with nested exception:

[java.io.IOException: Not owner]

at weblogic.security.internal.FileUtils.error(FileUtils.java:24)

at weblogic.security.internal.FileUtils.replace(FileUtils.java:89)

at weblogic.security.internal.SerializedSystemIni.write(SerializedSystemIni.java:113)

at weblogic.security.internal.SerializedSystemIni.<init>(SerializedSystemIni.java:125)

at weblogic.security.internal.SerializedSystemIni.getEncryptionService(SerializedSystemIni.java:237)

at com.cpb.common.security.EncryptDecryptPwd.encrypt(EncryptDecryptPwd.java:101)

at com.cpb.common.security.EncryptDecryptPwd.main(EncryptDecryptPwd.java:75)

[1885 byte] By [krish283a] at [2007-11-27 4:49:03]
# 1
make sure the folder allows full access by all user. e.g. set the folder permission to full access by: chmod 777 filenamehope this help
JWKC-5ivea at 2007-7-12 10:02:04 > top of Java-index,Core,Core APIs...