Forum
[SOLVED] How to boot Xbian as root - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: [SOLVED] How to boot Xbian as root (/thread-2177.html)



[SOLVED] How to boot Xbian as root - JD Patxiku - 15th Mar, 2014 03:37 AM

After hours of configuration the only way I could configure NFS was beeing root.
I start Xbian as root with this command:
Terminal
sudo /usr/local/lib/xbmc/xbmc.bin --standalone
This was the only way to acces NFS[/term].
I reeboted and the user changed again.
How can I boot as root automaticly?
Sorry about my horrible englishConfused


RE: [PROBLEM] How to boot Xbian as root - mk01 - 16th Mar, 2014 08:05 AM

on NFS server edit exports and add "insecure" options. this will accept connections from unprivileged port (NFS sessions opened by not root user).

if this is not an option, then you can change xbian's effective userid to 0 or change user in /etc/init/xbmc.conf


Re: RE: [PROBLEM] How to boot Xbian as root - Smultie - 16th Mar, 2014 04:48 PM

(16th Mar, 2014 08:05 AM)mk01 Wrote:  if this is not an option, then you can change xbian's effective userid to 0 or change user in /etc/init/xbmc.conf

Could you explain how to change the user's id? Can't seem to find it in the file you mentioned.

Some background: Synology changed something in their new DSM 5 firmware and now newly created nfs-shares don't work with the old instructions on the XBMC-wiki. Some users have had good experience with user-id, but I've not been able to work it out.


RE: [PROBLEM] How to boot Xbian as root - mk01 - 16th Mar, 2014 05:51 PM

you can simply edit /etc/password and /etc/shadow and hard edit current 1000:1000 to 0:0

but before try more proper way:
Code:
root@xbcubox:~# usermod -a -G 0 xbian
root@xbcubox:~# su xbian
xbian@xbcubox /root $ id
uid=1001(xbian) gid=1002(xbian) groups=1002(xbian),0(root),7(lp),27(sudo),29(audio),44(video),100(users),112(pul​se),1000(input)



RE: [PROBLEM] How to boot Xbian as root - JD Patxiku - 17th Mar, 2014 10:36 AM

Problem was me all the time Sad.
My NFS wasn't allowing my RPi getting its subfolders because its IP was wrongly set...
Sorry.


RE: [PROBLEM] How to boot Xbian as root - mk01 - 17th Mar, 2014 11:06 PM

no problem.

the point is you got it solved.