LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how do i exeucute a program not in "root"? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-exeucute-a-program-not-in-root-256572/)

dna9 11-18-2004 04:18 PM

how do i exeucute a program not in "root"?
 
if i install a program in root, how do i start the app again in a "user" non-root account? do i right click the folder in root and change the permissions? what is the ".exe" program called in linux? btw, fedora is nice...
thanks alot
:newbie:

secesh 11-18-2004 04:22 PM

type exit while root... now try 'whoami' -- not root anymore, huh?

.exe = not really any such thing in linux -- *nix does not use extensions like windows...

the similar file is a binary executable, but shell scripts and the likes could also be considered similar, though they are text files, most similar to windows .bat files...

Davus 11-18-2004 06:58 PM

Try running "chmod 755 filename" as root. It will make the file full-permissions (read write execute) to root, and people of non-root group can read and execute, then all others can read and execute also. Good luck.

".exe = not really any such thing in linux -- *nix does not use extensions like windows... "
Mmm, kind of. Executable applications in virtually all cases don't use extensions, but many other files do.


P.S. You may wish to copy the executable application to a public directory on the server, such as /bin/ ... But if it requires many library files and configuration files within the same directory, that's a different story. But for most stand-alone applications, copying to /bin/ works.

IBall 11-18-2004 07:23 PM

You should install programs to /usr/local or /opt. /root is reserved for the root user only.

When you install the program, add the executable to your path by creating a symbolic link to the executable in /usr/bin:

Code:

ln -s /usr/local/appDirectory/executable /usr/bin
For example, if you installed firefox to /usr/local/firefox, then the above command will be "ln -s /usr/local/firefox/firefox /usr/bin" You will need to be root to create the link, but then you will be able to execute the application as a normal user.

I hope this helps
--Ian

secesh 11-18-2004 07:28 PM

Quote:

You should install programs to /usr/local or /opt
or not:

Quote:

/usr/local, /opt

These are obsolete folders. When UNIX didn't have a package system (like RPM), sysadmins needed to separate an optional (or local) Software from the main OS. These were the directories used for that.
http://tldp.org/HOWTO/HighQuality-Apps-HOWTO/fhs.html


All times are GMT -5. The time now is 11:56 PM.