Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-12-2010, 12:21 PM   #1
LQ Newbie
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
start daemon as domain user

My linux box (Ubuntu 8.10) is located in corporate network and joined to Windows Domain. In order to get internet access I need to be login as domain user (user name: linux). I'm trying to start "shell-fm" program (in daemon mode) to play music off the website.
I'm able to login to "linux" account and get shell-fm going, but i would like it to start automatically and place it in update-rc.d.
I've found this daemon script, and modified:

case "$1" in
echo "Starting lastfm player (shell-fm)"
start-stop-daemon -c linux -d /home/DOMAIN/linux --quiet --start --exec $PREFIX/bin/shell-fm -- -d
echo "Stopping lastfm player (shell-fm)"
start-stop-daemon --stop --quiet --exec $PREFIX/bin/shell-fm >/dev/null
$0 stop
$0 start
echo $0 "start|stop|restart"
exit 1
exit 0

Unfortunately, shell-fm starts correctly but shows no access to the internet.
Please let me know if there is a different way to start a program in daemon mode as a DOMAIN user.

Thank you


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
Bash script to verify the daemon is working if not, start the daemon kishoreru Linux - Newbie 7 09-23-2009 04:29 AM
redirect to macadam Linux - Newbie 2 05-15-2008 01:07 PM
Enable daemon to run with service daemon start,etc baddah Programming 6 12-02-2007 05:51 PM
start-stop-daemon: user `man' not found cccc Debian 4 03-06-2007 04:03 AM
Change user@host.domain to user@domain Wynand1 Linux - Networking 7 09-13-2004 11:56 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration