cancel
Showing results for 
Search instead for 
Did you mean: 

java zip error

 
Jacques Carriere
Regular Advisor

java zip error

Good day,

 

     Has anyone ever seen this type of file permissions created by a java zip utility? I need to know how this happened and how I could fix the permissions.

 

natux23:/sasenv/biserver/Lev1/SASMeta/MetadataServer/Backups/ContentBackup# ll
.ziprwxrwx   1 root       sas        1262297 Aug 31 11:38 ContentServerBackup120831

 

 

Jacques

3 REPLIES
Patrick Wallek
Honored Contributor

Re: java zip error

That is seriously wrong on the permissions.

 

Have you tried just doing a 'chmod' on the file to change the permissions to something else (anything else).

 

Something like:

 

chmod 000 ContentServerBackup120831

 

will completely blank out permissions.  You should see the permissions displayed as all '-'s (10 of them to be precise).  You could then change the permissions to something more suitable and verify that it displays correctly.

 

chmod 444 ContentServerBackup120831

 

 

Jacques Carriere
Regular Advisor

Re: java zip error

natux23:/sasenv/biserver/Lev1/SASMeta/MetadataServer/Backups/ContentBackup# ll
total 2466
.ziprwxrwx 1 root sas 1262297 Aug 31 11:38 ContentServerBackup120831
natux23:/sasenv/biserver/Lev1/SASMeta/MetadataServer/Backups/ContentBackup# chmod 000 ContentServerBackup120831
chmod: can't access ContentServerBackup120831

Patrick Wallek
Honored Contributor

Re: java zip error

There may be non-printable characters in the filename, which may actually explain the the way it is being displayed.

 

Try this:

 

# ll -b

 

The '-b' option will show non-printable characters in octal notation, so you should see some very strange looking output.