LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-08-2011, 07:50 PM   #1
flipjarg
Member
 
Registered: May 2010
Distribution: Debian & Backtrack
Posts: 58

Rep: Reputation: 2
Only root can start app... suggestions for non-root xinit


I am trying to make bluetoothd startup when I startx. This is a non-root user. Yet, only when I do the following will bluetoothd really start.
Code:
nonRoot@bt$ su root
root@bt$ bluetoothd; exit;
Using `sudo bluetoothd` does not work. The odd thing, is that it is executable for everyone:
Code:
nonRoot@bt$ ls -l /usr/sbin/bluetoothd
-rwxr-xr-x 1 root root 648026 2011-04-30 04:25 /usr/sbin/bluetoothd
I use a Bluetooth mouse and may use other Bluetooth devices in the future. Any suggestions on how to make this work? I am using Backtrack 5 (ubuntu) and this is the last thing I need to get working. It has left me stumped.
 
Old 06-09-2011, 12:08 AM   #2
RSridhar
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Rep: Reputation: 4
bluetoothd - a daemon
start with chkconfig
or use menu system-administration-services
 
Old 06-09-2011, 04:13 AM   #3
dimpleboy
LQ Newbie
 
Registered: May 2011
Location: quezon city, philippines
Posts: 13

Rep: Reputation: 0
it seems that the owner of that is root, have you try to change the owner and group? chown -R user:group /file/?
 
Old 06-09-2011, 07:09 PM   #4
flipjarg
Member
 
Registered: May 2010
Distribution: Debian & Backtrack
Posts: 58

Original Poster
Rep: Reputation: 2
Yes, bluetoothd is a daemon... not sure if you were telling or asking.

I am trying to avoid, changing the permissions, but I did run chkconfig and it wasn't there. when I tried to add it (`chkconfig -a bluetoothd`) it said it is "an unknown service".

Code:
root@bt$ chkconfig | grep bluetooth
root@bt$
Code:
root@xanlabot# chkconfig
alsa-mixer-save             off
apache2                     off
apparmor                    on
apport                      off
atd                         off
avahi-daemon                off
binfmt-support              off
bootlogd                    off
bridge-network-interface    off
console-setup               off
cron                        off
cryptdisks                  0
cryptdisks-early            0
cups                        off
dbus                        off
decnet                      off
dmesg                       off
dns-clean                   on
etc-setserial               on
failsafe-x                  off
fancontrol                  on
farpd                       off
framework-postgres          2345
gpsd                        off
grub-common                 on
gssd                        off
hostname                    off
hwclock                     off
hwclock-save                off
idmapd                      off
irqbalance                  off
killprocs                   on
lm-sensors                  on
module-init-tools           off
mysql                       off
nessusd                     off
network-interface           off
network-interface-security  off
networking                  off
ondemand                    on
openvpn                     off
pcmciautils                 on
pcscd                       off
plymouth                    off
plymouth-log                off
plymouth-splash             off
plymouth-stop               off
portmap                     off
portmap-boot                off
portmap-wait                off
pppd-dns                    on
procps                      off
pulseaudio                  on
rc.local                    on
rcS                         off
rinetd                      off
rpc_pipefs                  off
rsync                       on
rsyslog                     off
screen-cleanup              off
sendsigs                    0
setserial                   on
snort                       off
ssh                         off
statd                       off
statd-mounting              off
stop-bootlogd               off
stop-bootlogd-single        off
udev                        off
udev-finish                 off
udevmonitor                 off
udevtrigger                 off
ufw                         off
umountfs                    0
umountnfs.sh                0
umountroot                  0
urandom                     0S
wicd                        on
winbind                     off
wpa-ifupdown                0
x11-common                  on
xplico                      off

Last edited by flipjarg; 06-09-2011 at 07:10 PM.
 
Old 06-10-2011, 09:49 AM   #5
venikathir
LQ Newbie
 
Registered: Apr 2011
Location: Bangalroe-India
Distribution: Redhat EL5
Posts: 24

Rep: Reputation: 1
Hi
Try edit the /etc/rc.local on your machine
put the entry to start the bluetoothd
by using /usr/sbin/bluetoothd

by next boot it will pick automatically


if this solves plz change to SOLVED
 
Old 06-10-2011, 11:26 AM   #6
RSridhar
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Rep: Reputation: 4
daemon once started by root at a particular runlevel
continues to auto start with subsequent boot.
In my fedora core 14 the bluetoothd autostarts at runlevel 3,4, and 5.
If it is not auto started on your system,
you need only start it once as root at runlevels 3,4,5 and
subsequent boot will have the daemon autostart and you do not have to do
anything about it.

chkconfig command to execute as root

chkconfig --level=345 bluetoothd on
see man chkconfig
 
Old 06-10-2011, 07:32 PM   #7
flipjarg
Member
 
Registered: May 2010
Distribution: Debian & Backtrack
Posts: 58

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by venikathir View Post
Hi
Try edit the /etc/rc.local on your machine put the entry to start the bluetoothd by using /usr/sbin/bluetoothd

by next boot it will pick automatically...
That did it! Thank you!

Quote:
Originally Posted by RSridhar View Post
daemon once started by root at a particular runlevel
continues to auto start with subsequent boot.
In my fedora core 14 the bluetoothd autostarts at runlevel 3,4, and 5.
If it is not auto started on your system,
you need only start it once as root at runlevels 3,4,5 and
subsequent boot will have the daemon autostart and you do not have to do
anything about it.

chkconfig command to execute as root

chkconfig --level=345 bluetoothd on
see man chkconfig
I did not try the chkconfig command that you suggested however, this will be helpful for other things in the future. I did not know that about runlevels!
 
  


Reply


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
start app as root at startup? bjh Suse/Novell 6 02-18-2009 07:24 AM
Cannot start connection, /root not owned by root ???!! ALInux Linux - Software 6 12-13-2005 05:50 PM
Path of xinit; window managers location; root's home; frankie_DJ Solaris / OpenSolaris 4 08-02-2005 04:46 AM
Run My APP Under a user other than root working2hard Programming 7 10-11-2004 06:48 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM


All times are GMT -5. The time now is 06:09 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration