Install java program for all users

Asked by Waluyo Adi Siswanto

I have a program (developed using java). The installation of this program is just unzip and can run the sh file. I am going to install in Ubuntu and it can be run by all users. In which folder that can be accessed and run by all users?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Book 'em Dano (heymrdjd) said :
#1

If your home directory is NOT encrypted, then you could leave the file/program in your home directory and change the permissions of the file/program so that everyone can read and/or execute the file/program:

chmod 0755 ~/name_of_the_file/program (this allows the owner of the file to read, write and execute it, while all others can read and execute it)

Then tell everyone the path to that file.

If your home directory is encrypted or if you're concerned about others snooping around in your home directory, you could change the permissions of the sensitive files so that others can not read them (i.e. chmod go-r) or you could move the file/program to /usr/local/bin or /usr/local/sbin using sudo mv name_of_file/program /usr/local/bin

Can you help with this problem?

Provide an answer of your own, or ask Waluyo Adi Siswanto for more information if necessary.

To post a message you must log in.