LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to give users access to installed program? (https://www.linuxquestions.org/questions/linux-software-2/how-to-give-users-access-to-installed-program-154408/)

Tiyogi 03-06-2004 09:31 PM

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.

TheOneAndOnlySM 03-06-2004 09:37 PM

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

Tiyogi 03-07-2004 12:48 PM

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?

whansard 03-07-2004 01:29 PM

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

Tiyogi 03-08-2004 07:49 AM

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


All times are GMT -5. The time now is 08:25 PM.