FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 10-16-2008, 03:32 PM
"H.S."
 
Default no-ip script owner (normal user versus nobody)

Hello,

I am running no-ip on my of my computers. The daemon runs as 'nobody'.
No-ip's configuration's last step is to specify a script I wish to run
on successful update of the IP address. I want to run this script as me
as the user, not as root or nobody. How do I do that?

Currently the script file I specified in no-ip configuration does not
appear to run as me since it cannot find my conf files from my home.
That same script runs perfectly if I run it myself manually.

Regards.
--

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-16-2008, 03:35 PM
Steve Kemp
 
Default no-ip script owner (normal user versus nobody)

On Thu Oct 16, 2008 at 11:32:00 -0400, H.S. wrote:

> Currently the script file I specified in no-ip configuration does not
> appear to run as me since it cannot find my conf files from my home.
> That same script runs perfectly if I run it myself manually.

Configure either noip to run:

sudo -u YOURNAME /path/to/script/to/run

Or change your script to be:
#!/bin/sh
sudo -u YOURNAME /path/to/other/script

(If you can't allow spaces, etc, in your no-ip configuration.)

Then configure your copy of sudo to allow "nobody" to run
"/path/to/script" as you without any password.

Steve
--


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 10:22 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org