LinuxQuestions.org
Register a domain and help support LQ
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 03-06-2004, 10:31 PM   #1
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Rep: Reputation: 15
Question How to give users access to installed program?


How to give users access to installed program?
I am using RH 8.0.
I found something called "Users and Groups" I do not understand what they want me to change.
The user is "me" and the group is also "me".
The directories I want to give access to are the ones that hold my Firebird program and a few other folder that are listed under "home" but were created by me when I was "ROOT".

I select "me" and I select Properties. There 4 tabs to pick from[list=1][*]User Data[*]Account Info[*]Password Info[*]Groups[/list=1]

So I pick "Groups"
It now presents a long list of "groups" that are available
Here are the first 3 choice of a long list.[list=1][*]adm[*]bin[*]daemom[/list=1]

It seems like there are about 50 so called groups
I tryed check off what I thought were the appropiate groups.
The logged out of Root then back in as the user "me" and tryed using the programs.
I tryed using KPPP but it asked me for the Root password, so I knew this was not correct.

So how do I get to the programs and files that I installed as Root when I am a regular user?
I have check the Manual for RH but it does not tell me what to change.
I have also looked thru this and other forums but I quess I just do not know the right question to ask the "Search". One person suggested using "KUSER" I did a search on my machine and could not find it. Others suggested "cron" or something like that but again I could not figure out what I was supposed to do.
 
Old 03-06-2004, 10:37 PM   #2
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
there may be a reason for certain program's only being able to be run as root...

but if you need to use those as a normal user, then perhaps the easiest way to do this is to change the permissions of the program

for example kppp, just do chmod 777 /path/to/kppp to give everyone access to that program or use chown me /path/to/kppp to make your user "me" own that program
 
Old 03-07-2004, 01:48 PM   #3
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by TheOneAndOnlySM


for example kppp, just do chmod 777 /path/to/kppp to give everyone access to that program or use chown me /path/to/kppp to make your user "me" own that program
Ok, I tryed the "chmod 777 /urs/bin/kppp" while and root user.[list=1][*]Logged as "root"[*]did chmod 777 /urs/bin/kppp in a terminal [*]did chmod 777 /home/mozilla/firefox/firefox[*]quit terminal[*]Logged out[*]Logged in as "me"[*]Found kppp in /usr/bin folder[*]Made a sybomlic link to my desktop[*]Next found Firefox brower program[*]Made a sybomic link on my desktop[*]Double clicked on the link for Kppp[*]It returned "Enter root password"[*] Also got an erro when I canceled " Could not start KDEinit"[*]Next tryed Firefox[*]Browser did open up
[/list=1]

I checked the properties for both KPPP and Firefox
Kppp: owner= root, group=root Linked to consolehelper
Firefox= owner=64255 group=11407


So I was able to get one out of two.

I looked for the "man chmod" there was information there but I did not see any that would tell me what to do next.

So where did I screw up? Any ideas what to do next? Am I looking in the right places?
 
Old 03-07-2004, 02:29 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
kppp has to access devices and other programs, like chat, i think, so
you may want to leave kppp owned by root.
search for kppp and root
maybe on this site, and you'll get different suggetions about what to do for that.

and 755 might be more appropriate for the permissions on a program.
if you are root and set a program as 755, that leaves you with
read, write, execute, and everybody else with read and execute

Last edited by whansard; 03-07-2004 at 02:31 PM.
 
Old 03-08-2004, 08:49 AM   #5
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Tiyogi
Ok, I tryed the "chmod 777 /urs/bin/kppp" while and root user.

I checked the properties for both KPPP and Firefox
Kppp: owner= root, group=root Linked to consolehelper
Firefox= owner=64255 group=11407

So I was able to get one out of two.

I looked for the "man chmod" there was information there but I did not see any that would tell me what to do next.

So where did I screw up? Any ideas what to do next? Am I looking in the right places?
Well I did not screw up It seem like RH 8.0 likes to install KPPP so only the root user has access to it. There also a problem with the Consoehelper both of these problem for me were solved by going to the KDE KPPP FAQ page. I just followed the steps outline below and it solved the problem. Now I can use KPPP to dail in from my "ME" user session.

How do I get rid of the password dialog (RedHat) ?
Red Hat chose to install kppp as a so-called consolehelper application. This PAM based mechanism avoids a setuid root installation. A quick and dirty solution to revert to the original behaviour is to delete the link to consolehelper and make the real binary setuid root. Open a terminal window, su to root and enter the following commands:

rm /usr/bin/kppp
chmod u+s /usr/sbin/kppp
ln -s /usr/sbin/kppp /usr/bin/kppp

Please refer to the Handbook for the security aspect of this setup. KDE KPPP FAQ
 
  


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 give a drive write access to all users in FSTAB? (ext3) jon_k Linux - Software 2 12-19-2004 10:46 PM
How to give non-root users access to mounted partitions? black hole sun Linux - Software 5 10-28-2004 06:52 PM
Give certain users more access to resources tearinox Slackware 2 05-21-2004 03:44 AM
give users access to home dirs jonas73 Linux - Newbie 2 03-16-2004 02:42 AM
fstab nightmare: how to give users access to ext3 partition? ianunderwood Linux - General 5 11-21-2003 07:00 PM


All times are GMT -5. The time now is 12:31 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration