LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
start daemon as domain user


Hello,
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 last.fm 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:

#!/bin/sh
#
PREFIX=/usr
case "$1" in
(start)
echo "Starting lastfm player (shell-fm)"
start-stop-daemon -c linux -d /home/DOMAIN/linux --quiet --start --exec $PREFIX/bin/shell-fm -- -d
;;
(stop)
echo "Stopping lastfm player (shell-fm)"
start-stop-daemon --stop --quiet --exec $PREFIX/bin/shell-fm >/dev/null
;;
(restart)
$0 stop
$0 start
;;
(*)
echo $0 "start|stop|restart"
exit 1
;;
esac
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
jatrn
 
  


Reply



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 user.domain.com to www.domain.com/user 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 PM.

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