LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-18-2004, 05:18 PM   #1
dna9
Member
 
Registered: Nov 2004
Location: Colorado
Distribution: Ubuntu mostly...
Posts: 100

Rep: Reputation: 28
Question 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
 
Old 11-18-2004, 05:22 PM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
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...
 
Old 11-18-2004, 07:58 PM   #3
Davus
Member
 
Registered: Jul 2004
Location: Mesquite, Texas
Distribution: currently retired
Posts: 31

Rep: Reputation: 15
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.

Last edited by Davus; 11-18-2004 at 08:11 PM.
 
Old 11-18-2004, 08:23 PM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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
 
Old 11-18-2004, 08:28 PM   #5
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 05:08 PM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 03:11 PM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 12:45 PM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 11:47 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration