Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: User commands in root script, How do you do this?< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Mar. 03 2007,09:28 QUOTE

Is there a way to execute some commands as user in a script called by root?

For example, in a script that requires to be run as root due to using "modprobe", is there a way to use "mydsl-load" as user?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Mar. 03 2007,14:48 QUOTE

su dsl mydsl-load ....
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Mar. 04 2007,04:05 QUOTE

Aaah - thanks (don't recall seeing that anywhere).
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Mar. 04 2007,06:23 QUOTE

use man su?

Anyways, I think using that way implies -c (the way I'm used to using it)
Back to top
Profile PM 
3 replies since Mar. 03 2007,09:28 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: User commands in root script

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code