LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2006, 12:13 AM   #1
MOPAULY
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Rep: Reputation: 0
Understanding linux package building and user permissions


I hope that sounds right. I've recently manually installed a program on my FC2 server; My question is 2 fold...how do you remove a program that was not an RPM, say, down the road when you no longer require it? I've been confused with this part. This was an app I had to run the ./configure, make, and make install to get functioning. I originally installed it from a temp directory I created on the root of the system.

The second question applies to the first; With this app installed as root, how do I give users access to run the program? by default the command to launch the app via shell is not recognized unless I run it as root, which is how I installed it. If I ssh in as a user the command is not recognized for them. Sorry for the 'ignorant' questions, still trying to learn.
 
Old 01-24-2006, 12:35 AM   #2
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
Quote:
./configure, make, and make install
./configure, make and make uninstall

easy enough, huh? OR
during the ./configure part, there is a file that is created of
all the files to be made and installed. if worse comes to worse,
you can use this file to find and manually delete all files
associated with the program.

Quote:
how do I give users access to run the program?
Gets a little trickier on this one. Theres more then one factor
that may or may not be an issue.

exacutable in the $PATH?
check /etc/profile for the global path

or maybe, but I doubt:
permissions on the file?
chmod +x file_name (make the file exacutable)

this might help you out.
Good luck
-tw

Last edited by tw001_tw; 01-24-2006 at 12:38 AM.
 
Old 01-24-2006, 12:36 AM   #3
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
You need to have the source code directory that you compiled the program present on your box. Iff it is still present, cd into that directory and type:
Code:
make uninstall
If you deleted the source code you need to get the package again and do the ./configure command and then try make uninstall.
N.B. Not all source code packages provide an uninstall. Try the above and if no success search on the forum for more info.
 
Old 01-24-2006, 08:12 AM   #4
MOPAULY
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
make uninstall
LOL that's obvious eh ...I wasn't sure as I didn't think you wanted to just arbitrarily delete folders without an uninstall. Thought it may leave pointers behind that would fudge things up later.

I think I may have found it. I did have the permission set OK, but I had the user chrooted into a directory...when I change this to test it appears to work. However I do not want the user to have access to the root of the box, just to be able to run the particular app. This particular box has Plesk instlled, which I'm finding in some ways I need to work around to get non Plesk apps to work properly. I notice the options of shell access include directories such as /bin/bash, /bin/sh, /bin/ash, /bin/bsh, /bin,csh, etc....is there a fairly painless way to understand what permissions these different options offer?

Thanks for the info
 
Old 01-24-2006, 09:14 AM   #5
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
Those options merely control which is the user's default login shell. A shell takes a user's commands and executes them. Permissions, on the other hand, are properties of a file on the filesystem, and so the two are completely separate. I.e., if you do/don't have permissions to do something while running bash, you will/won't have permissions to do it while running csh.

One method that can blitz tricky permission issues, but that comes with a security risk, is the suid bit. If this is set, then it means that any user that executes a file does so with the permissions of the file's owner. This is in fact necessary for certain applications that must access protected areas of the kernel, but need to be run by everyday users. Of course, this does mean that there's the ability for these files to do anything they want with root privileges, so they must be carefully maintained. See this TLDP page which mentions this issue.

To add the suid bit, make sure that your file is world- (or preferably, group-) executable, and then issue
Code:
chmod +s <file>
If you 'ls -l', you should now see an 's' in the sixth (and possibly ninth) permission position, instead of an 'x'.
 
Old 01-24-2006, 12:39 PM   #6
MOPAULY
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Those options merely control which is the user's default login shell
I think that's what I'm after, but I either have to learn the options or simply keep trying the different ones to see what the end result is. I will however have a look at the link you provided.

The end result I'd like is to give him ssh access to his own directory, allow him to run the app needed, and traverse the folders within his directory, while keeping him chrooted there, so that he cannot leave his designated 'home'.

Thanks for the input
 
  


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
package building dockpunk Slackware 10 03-23-2005 10:46 AM
Understanding permissions - from a Windows user's perspective floydian219 Linux - Newbie 12 09-07-2004 09:10 AM
Trouble understanding chmod & group permissions gen-ik Linux - Newbie 3 07-19-2004 02:51 PM
Building User Mode Linux from Linux 2.6.5 / Win4Lin cyent Linux - Software 1 05-05-2004 09:38 PM
Please help! Building linux-wlan package for LinkSys WIFI Card! blueStatic Linux - Wireless Networking 9 08-03-2003 05:28 AM


All times are GMT -5. The time now is 10:52 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration