Q:

How to create a folder in a directory where user need admin permission

Hi I need to put some files in some directory which myself as a user have no rights but for administrator has rights. In this case I want my program should ask for admin username and password. If i put correct admin username and password then i must be able to put the folder in that directory. Otherwise i should get a message box for wrong username and password
Thanks
Sunil Kumar Sahoo

A:

Its not possible in java. without the permission of root/admin the user cannot craete any folder or directory in root file system. The folder needs admin access. 

