LinuxQuestions.org
Review your favorite Linux distribution.
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 10-17-2007, 03:40 PM   #1
ringding
LQ Newbie
 
Registered: Feb 2005
Distribution: RH9, RHEnt.
Posts: 23

Rep: Reputation: 0
Question how to grant users permission to install and run software?


Hi all,
yes very new to linux...my question is this:

I have RHEL4 and I want a user to be able to install and run a couple programs....also to create files/folders but only be able to delete or change files and folders he creates. W/out root access.

I assume the software will be installed in /usr directory but right now the user does not have permission to create files/folders there.

Should I just install the software he is going to be using in his "home" directory?

Last edited by ringding; 10-17-2007 at 03:42 PM.
 
Old 10-17-2007, 03:51 PM   #2
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
Well, I have never tried this so I'm not sure it will work. Either way I woundn't recommend doing it.

If you change groupowner on /usr, /etc, /include, /var, /lib and /bin to poweruser (Or another selvmade group) and set sticky mode to those directories (To prevent powerusers to delete application installed by someone else). It would seem to me to work.

Is there anyone out there that have actually tried something like this?

However, this is a MAJOR security issue, that I would discourage!

Last edited by Dinithion; 10-17-2007 at 03:53 PM.
 
Old 10-17-2007, 04:02 PM   #3
ringding
LQ Newbie
 
Registered: Feb 2005
Distribution: RH9, RHEnt.
Posts: 23

Original Poster
Rep: Reputation: 0
I guess the easiest way is to just install the software they are going to run in the users "home" directory....that way they have full permissions and they cannot screw with the system itself......right?
 
Old 10-17-2007, 04:09 PM   #4
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 446

Rep: Reputation: 59
Oh sorry. I misunderstood you there. I tought you wanted users to install to systemwide programs.

What I usually do when compiling programs, I compile them in the /tmp/ dir,
i.e. tar zxvf myprog.tar.gz -C /tmp
then cd to the folder and
./configure --prefix=/tmp/my_program
make && make install

When you specify --prefix, the program will be installed there. Since I use slackware I do it this way to create packages. I guess you could use ./configure --prefix=~/bin
make && make install
(Everything as user)

Last edited by Dinithion; 10-17-2007 at 04:10 PM.
 
Old 10-17-2007, 04:13 PM   #5
ringding
LQ Newbie
 
Registered: Feb 2005
Distribution: RH9, RHEnt.
Posts: 23

Original Poster
Rep: Reputation: 0
sorry for being vague...and thanks for your very quick reply!!! I'll try it using the users home folder and see how it goes.....THANKS AGAIN!
 
  


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
How to grant users mount permission dreakon Linux - Newbie 4 06-13-2006 09:07 PM
How to grant root previlege to other users? wtb1974 Linux - Newbie 4 03-19-2006 01:20 AM
Grant permission to run server - how? yrozijn Linux - Newbie 2 03-25-2005 05:29 AM
how do i grant privilages to 'normal users' jogurt666 Linux - General 1 12-18-2003 02:39 PM
give users permission to install software in their directory? ksgill Linux - Newbie 7 12-17-2003 12:16 PM


All times are GMT -5. The time now is 12:43 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