run a non-root user's program from a non-root user

run a non-root user's program from a non-root user

Post by Pash » Wed, 21 Aug 2002 06:23:15



Hi Folks,

Here is the problem.

I have user A and user B (non-root users)

I need for user A to initiate a job as user B. How can this be done?

As you know, I can do this as root. I can start a process from root as
another user in the system (cron jobs come to my mind!) Is there a way
to do this for non-root users? I believe I need to be able to do
something like  as user A
"su - B" without being prompted for password.

Appreciate suggestions in advance.

Pasha

BTW: I am using AIX 4.3.10

 
 
 

run a non-root user's program from a non-root user

Post by Barry Margoli » Wed, 21 Aug 2002 06:38:32




>Hi Folks,

>Here is the problem.

>I have user A and user B (non-root users)

>I need for user A to initiate a job as user B. How can this be done?

User B can provide a setuid program that initiates the job.

Or you can configure sudo to allow A to execute this job as B.

--

Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

 
 
 

run a non-root user's program from a non-root user

Post by Nick Hayne » Sat, 24 Aug 2002 00:49:09



> Hi Folks,

> Here is the problem.

> I have user A and user B (non-root users)

> I need for user A to initiate a job as user B. How can this be done?

> As you know, I can do this as root. I can start a process from root as
> another user in the system (cron jobs come to my mind!) Is there a way
> to do this for non-root users? I believe I need to be able to do
> something like  as user A
> "su - B" without being prompted for password.

            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

No point in having passwords then.

Quote:

> Appreciate suggestions in advance.

> Pasha

> BTW: I am using AIX 4.3.10

 
 
 

run a non-root user's program from a non-root user

Post by Chris F.A. Johnso » Sat, 24 Aug 2002 01:09:09




>> Hi Folks,

>> Here is the problem.

>> I have user A and user B (non-root users)

>> I need for user A to initiate a job as user B. How can this be done?

>> As you know, I can do this as root. I can start a process from root as
>> another user in the system (cron jobs come to my mind!) Is there a way
>> to do this for non-root users? I believe I need to be able to do
>> something like  as user A
>> "su - B" without being prompted for password.

>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> No point in having passwords then.

    With sudo, you can specify specific commands which can be executed
    by a specific user (or users) without requiring a password. You
    only give password-free access to those users (or groups) you want
    for only those commands you want them to be able to use.

    Sudo is available from <http://www.courtesan.com/sudo/>.

--
    Chris F.A. Johnson                        http://cfaj.freeshell.org
    ===================================================================
    My code (if any) in this post is copyright 2002, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License

 
 
 

1. non-root user can't run certain programs

December 24, 2002

For some reason I can only run certain programs as root. For example,
playmidi can only be run as root, even though the file permissions are:

-rwxr-xr-x  1 root   root   39692 Jul 13  2000 /usr/local/bin/playmidi

When I run file on playmidi, it yields:

/usr/local/bin/playmidi: ELF 32-bit LSB executable, Intel 80386,
version 1 (SYSV), dynamically linked (uses shared libs), stripped

Another program, zoo, has the same permissions and the same file
description as playmidi. However, I can run the zoo program as a
non-root user, whereas when I try to run playmidi as a non-root user,
I get "Permission denied".

Also, I recently upgraded to linux v.2.4.18. Before, when I was using
v.2.2.14, I didn't have this problem. Any user could run the playmidi
program, as long as the permissions were properly set.

And copying the playmidi file to another directory, or changing to
another group makes no difference at all, the program still cannot be
run by the non-root user.

Can anyone shed some light on this problem? It's extremely puzzling.

Gary Krupa


2. aha152x on boot144/scsi disk

3. non-root user can't run programs on old partition

4. Help needed with networking 2 machines.

5. RH8 - Problem w/non-root users starting root programs

6. write to an executed file under linux?

7. 'failed running login shell' no non-root user login possible

8. UNIX upgrading

9. does anyone know how to run 'apache' as a non-root user?

10. Can't start Netscape server on port 80 as a non-root non-nobody user.

11. Can't run wvdial as non-root user

12. Can't run Xhost as non-root user

13. Can't run wvdial as non-root user