Re: 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@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Client "daemon" for sorting e-mail via IMAP
    ... and tell him "move it to that folder there"? ... I'll clean up and post the script if anyone is interested. ... and may have trouble connecting to Gmail. ... subject of "unsubscribe". ...
    (Debian-User)
  • Re: How to save output when working in runlevel 3 (Lenny)
    ... If that is what you want to do, the "script" command ... control codes are preserved literally in the log file. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: OT: matched string of a regular expression
    ... However my sed script currently involves 6 lines (for all the ... how can I obtain the string that is matched by a regular ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: rsync backup question
    ... Script started on Thu 21 Jul 2011 06:08:03 PM EDT ... I'm not exactly sure what you want, but to use rsync as a backup tool, I think that you should use the -a option. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: What does this mean?
    ... Are you using squeeze for 64-bit architecture? ... The computer is running only a home brew data processing script ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)