sgroupbond.blogg.se

How To Run As Administrator From Java Code(for Mac Osx)?


I have some problems understanding sudo. I am logged in on a terminal as an non-admin/non-root user. This 'normal' user is not in the sudoers file (and shouldnt be, in my opinion). Now I try to execute a command that needs admin/root privileges and also access to directories of my normal user – therefore I am not able to simply su into an admin or root user. In my understanding sudo -u root should do the trick – however it doesn't accept the password for root (or admin if I try with my normal admin user). For mac 10.10 yosemite molekel download : nandpurbiodene23. It only accepts the password of the 'normal' user which seems to indicate that the -u username option doesn't work the way I expect it to work.

How To Run As Administrator From Java Code For Mac Osx

My expectation is that sudo -u root some_command executes some_command with the privileges of root and therefore it asks also for the password of root. Obviously not. TL;DR: How do I execute any command that requires admin privileges AND has access to the files of the 'logged in (normal) user' without adding the normal user to the sudoers file? I have enabled the root user under Mac OS X 10.7. Sudo always requires the executing user's password (and requires that you have specific permissions to do this, i.e. Are one of the sudoers).

How

Uninstall Oracle Java using the Terminal. Note: To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the sudo tool. Remove one directory and one file (a symlink), as follows: Click on the Finder icon located in your dock; Click on Go in the Finder menu; Click on Utilities; Double-click on the Terminal icon.