Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-30-2004, 08:53 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Running user program from root

I want to do the following: for example when I connect my camera to the PC and it si detected by the hotplug, I wanna run some program as a user, not as root(hotplug runs under root) I would greatly appreciate any advices.
Old 07-31-2004, 12:16 AM   #2
LQ Newbie
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0

See you can do this by putting suid bit on your
hotplug programme
Old 07-31-2004, 12:49 AM   #3
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Have a look at the /etc/hotplug/*.agent scripts ...
If you can find the right one, and the right
action in the script, maybe run something like
su - <user> <your program>
from one of the scripts ...



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
Running Nmapfe as non-root user XaViaR Linux - General 3 06-10-2005 05:04 AM
Running KPPP as a user, and not root. RoaCh Of DisCor Linux - Software 5 06-28-2004 05:38 AM
Help me get KDE running as a non root user vdogvictor Slackware 8 06-27-2004 08:27 PM
problem running program as user FlAWD Linux - General 1 10-15-2003 07:31 AM
Running xcdroast as non-root user kermit Linux - Newbie 2 07-07-2002 05:36 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration