Java switch user using su on linux -


i writing java program dor oracle ebs needs switch user because of specific permissions defined on user different applmgr. approach we're taking have java class switch user on separate session , list file folder new user has access.

any options available?

so far create 2 shell script files , run these shell scripts, 1 store environment variables , other 1 switch user , list files.

appreciate help.

you change group permissions on file. start system.process( "su user && cat file" ); have other user copy file using cronjob...


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -