public void chmodFile(String permissions,String file){
  StringBuilder buf=new StringBuilder();
  String command=String.format(ImageServerDialogProperties.getString("cmd.chmodFile"),permissions,file);
  sendWaitFor(command,defaultTimeout,prompts,buf);
  log.debug(buf.toString());
}

public void chmodFile ( String permissions , String file ) { StringBuilder buf = new StringBuilder ( ) ; String command = String . format ( ImageServerDialogProperties . getString ( "cmd.chmodFile" ) , permissions , file ) ; sendWaitFor ( command , defaultTimeout , prompts , buf ) ; log . debug ( buf . toString ( ) ) ; }
change permissions on a file .
