Author Topic: login as root on md  (Read 5409 times)

murcel

  • Guru
  • ****
  • Posts: 198
    • View Profile
login as root on md
« on: May 19, 2009, 06:54:50 pm »
i put in a nova-t tuner to a md.
So far the card is installed fine.

now i was trying to start scan, to build the channel.conf.
so open up the sehll on md and put in the root data, but it always ask me for sambahelper pass...

So question is, how to get sehll roiot access and second, how to create the channel list, if not on md?

BTW, i am testing on 0810.

br

WhateverFits

  • Guru
  • ****
  • Posts: 230
    • View Profile
    • Sean Walker
Re: login as root on md
« Reply #1 on: May 19, 2009, 07:03:31 pm »
Shell root:

sudo su -

The other stuff I do not know

murcel

  • Guru
  • ****
  • Posts: 198
    • View Profile
Re: login as root on md
« Reply #2 on: May 19, 2009, 07:09:47 pm »
thanks,
but i think i ask the wrong question, i know how to get shell root access, but even if i enter the right root privileges, shell always asks for sambahelper account pass.

thx

seth

  • Guru
  • ****
  • Posts: 485
  • A day w/o LinuxMCE is like a day w/o sunshine!
    • View Profile
Re: login as root on md
« Reply #3 on: May 19, 2009, 07:37:09 pm »
I thought on the MD's the only user was root.

Try this.
- ssh to your core using the user linuxmce and the passwd you created on install.
- then sudo su to root on your core
- then ssh to the moon## of your md
- this should automatically log you in as the root user, no passwd

Something else to try,, if you have a keyboard available on the MD:
- ctrl-alt-F2 (gets you to a local console)
- at the login prompt type "root"
This should also log you in as root, no passwd required


Regards,

Seth
« Last Edit: May 19, 2009, 07:39:08 pm by seth »
".....Because Once you've LinuxMCE'd....."
System stats located at my user page:

http://wiki.linuxmce.org/index.php/User:Seth

murcel

  • Guru
  • ****
  • Posts: 198
    • View Profile
Re: login as root on md
« Reply #4 on: May 19, 2009, 07:40:01 pm »
thx seth
that worked.

but i still wonder why i can not directly log in from md.

maybe thats a bug (?) in 0810?


WhateverFits

  • Guru
  • ****
  • Posts: 230
    • View Profile
    • Sean Walker
Re: login as root on md
« Reply #5 on: May 19, 2009, 07:45:08 pm »
The authentication on the media directors does not necessarily contain all of the authentication of the core. Sudo to root on the core and you can access any MD directly with ssh. It seems to work well for me. This is the same on 710 and, apparently, has not changed for the 810 releases.

seth

  • Guru
  • ****
  • Posts: 485
  • A day w/o LinuxMCE is like a day w/o sunshine!
    • View Profile
Re: login as root on md
« Reply #6 on: May 19, 2009, 07:45:43 pm »
If by "log in" you mean using the linuxmce user, I have seen this before. The MD is treated as an appliance, best I can tell, and for the user linuxmce to connect to it, it uses credentials almost like a SAMBA CIFS share. It does not have a passwd file on hand for a specific user, just the sambahelper user, and root. Again this is mostly speculation on my part, but I have tried this since 7.04 and I got the same result as you. I usually sudo to root on the core, and then ssh out from there to my MD's. As to it being a bug, of this i am not sure, as it has been the same for me since I started.

Perhaps one of the more learned sages here at LMCE can better address that.

But I am glad it worked for you.

Regards,

Seth
".....Because Once you've LinuxMCE'd....."
System stats located at my user page:

http://wiki.linuxmce.org/index.php/User:Seth

murcel

  • Guru
  • ****
  • Posts: 198
    • View Profile
Re: login as root on md
« Reply #7 on: May 19, 2009, 08:30:18 pm »
thank you all for clarification.

pigdog

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1105
    • View Profile
Re: login as root on md
« Reply #8 on: May 19, 2009, 09:26:21 pm »
Hi,

chroot /usr/pluto/diskless/<##>

works as well.

Some other stuff...

sudo command – run command as root
sudo -s – open a root shell
sudo -s -u user – open a shell as user
sudo -k – forget sudo passwords
kdesudo command – visual sudo dialog (KDE)
sudo visudo – edit /etc/sudoers
kdesudo konqueror – root file manager (KDE)
passwd – change your password
« Last Edit: May 19, 2009, 09:47:52 pm by pigdog »

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: login as root on md
« Reply #9 on: May 19, 2009, 10:06:19 pm »
To get to the MD root prompt, you login into the core as the user you have used during your Kubuntu install. After that do the following steps:
Code: [Select]
sudo -i
This will prompt you for the password of the user who you initially created during the Kubuntu installation
Code: [Select]
ssh moon<device-id-of-mediadirector>

Done!