LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-30-2004, 09:53 PM   #1
kilativv
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.
Thanks
 
Old 07-31-2004, 01:16 AM   #2
shashwat
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
Unhappy

See you can do this by putting suid bit on your
hotplug programme
 
Old 07-31-2004, 01:49 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
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
Code:
su - <user> <your program>
from one of the scripts ...


Cheers,
Tink
 
  


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


All times are GMT -5. The time now is 02:35 AM.

Main Menu
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