• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reading/writing files

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have requirement where I wanted to upload/download file on [b]Data Ontap[/b].
Below is the description:

The machine on which file has to upload/download is operating system using it`s own OS Data Ontap 7.0.4p.
It is Not using NFS service on the filer , it is using [b]CIFS service.[/b]
NTFS is used to control User previledges.

As of now the code is able to read/write files from a shared folder on this system. This is a simple File IO code. But the moment the access to this shared folder is given only to a specific user id, the code fails.

Can it be possible to use core java Api that will allow us to change the previleges/credentials of the thread that is executing the file io.If yes which is that API?Will JAAS suffice?How?
Else which API can be used for the above problem solution.

Resposne will be appreciated as this problem has taken lot time.
Thanks.
 
Ranch Hand
Posts: 225
Eclipse IDE Debian Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't change thread credentials in Java using standard APIs. The simplest way to access the files as another user may be to use JCIFS instead of the java.io package.
 
reply
    Bookmark Topic Watch Topic
  • New Topic