121 reputation
7
bio website
location London, United Kingdom
age
visits member for 3 years, 3 months
seen Mar 31 at 17:26

√úbergeek Unlimited - freelance software engineer, data and information system architect


Sep
24
awarded  Autobiographer
Feb
21
awarded  Popular Question
Aug
21
awarded  Popular Question
Jun
12
comment script calling script as other user
I republished this as serverfault.com/questions/397031/…
Jun
12
comment script calling script as other user
all of your 1-5 are ruled out by the fact that the command runs when the script called from a root terminal. but fails if called by daemontools without a tty. but thanks
Jun
8
revised script calling script as other user
deleted 19 characters in body
Jun
8
comment script calling script as other user
mogga, the ssh manual sheds no light on why host key verfication fails when supervise call my script, but runs perfectly when i call it from the terminal. thanks for your help
Jun
8
comment script calling script as other user
dear mogga, I got one problem that needs to be solved: run a script as another user (using that users environment, from a root script with no tty standard in). I just presented my 4 different attempts at solving it that all fail.
Jun
8
comment script calling script as other user
thanks for your attention. the script as in the OP is the /service/training/run executable, and i switch on the service with svc -u /service/training. supervise then launches the run script which fails since su needs tty stdin which is missing, so i get 'standard in must be tty' in my /var/log/training_service.log (and of course my training command is not run. hope this explains the context.
Jun
8
awarded  Editor
Jun
8
revised script calling script as other user
added 376 characters in body
Jun
8
comment script calling script as other user
but as i said su called from script gives an error
Jun
8
comment script calling script as other user
@Sampo would you mind elaborating? as I said setuidgid not enough cos I need env. or you mean that flag on runuser?
Jun
8
asked script calling script as other user
Mar
3
awarded  Teacher
Oct
5
awarded  Scholar
Oct
5
accepted Read ext3 filesystem on Mac OS X Snow Leopard
Oct
5
answered Read ext3 filesystem on Mac OS X Snow Leopard
Aug
31
awarded  Student
Aug
18
answered Vagrant ssh fails with VirtualBox