M_R Posted April 7, 2011 Share Posted April 7, 2011 (edited) Hello. This is a quick question: I'm tired of having to modify bashprofile files for every single user to be able to run programs from commandline without having to type the entire path. So I discovered that by placing a symbolic link in /usr/local/bin, all users (including root) can run the program easily. Is this evil? Am I breaking the system? Thanks [moved from Software by spinynorman] Edited September 26, 2011 by M_R Link to comment Share on other sites More sharing options...
ianw1974 Posted April 7, 2011 Share Posted April 7, 2011 No, definitely not breaking the system. Link to comment Share on other sites More sharing options...
M_R Posted April 7, 2011 Author Share Posted April 7, 2011 No, definitely not breaking the system. Glad to know. Now, is there any downside? and should I Remove the entries for Java in the bash profile for each user since they can now run it without using bashprofle? Link to comment Share on other sites More sharing options...
ianw1974 Posted April 8, 2011 Share Posted April 8, 2011 I normally install java versions from sun ending in rpm.bin, because it does it system-wide and thus you don't need to manually export JAVA_HOME or anything else like that. The .bin just extracts and then the rest is a case of manual configuration. It would be messy moving the java executables and all the other java directories under /usr/local/bin. Link to comment Share on other sites More sharing options...
scarecrow Posted April 8, 2011 Share Posted April 8, 2011 The regular ways to run programs which are outside the system paths are two: 1. Creating a helpfolder (e.g. /opt/progs), linking the programs in there and finally adding /opt/progs to the system PATH 2. Creating aliases to the user's ~.bashrc file. These are user-specific, of course. Link to comment Share on other sites More sharing options...
ianw1974 Posted April 9, 2011 Share Posted April 9, 2011 Aliases can be made system-wide with /etc/bashrc. That way you would only need to edit this, and every user would get your customisations as scarecrow mentions. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now