LinuxMCE Forums

General => Installation issues => Topic started by: murcel on May 19, 2009, 06:54:50 pm

Title: login as root on md
Post by: murcel 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
Title: Re: login as root on md
Post by: WhateverFits on May 19, 2009, 07:03:31 pm
Shell root:

sudo su -

The other stuff I do not know
Title: Re: login as root on md
Post by: murcel 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
Title: Re: login as root on md
Post by: seth 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
Title: Re: login as root on md
Post by: murcel 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?

Title: Re: login as root on md
Post by: WhateverFits 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.
Title: Re: login as root on md
Post by: seth 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
Title: Re: login as root on md
Post by: murcel on May 19, 2009, 08:30:18 pm
thank you all for clarification.
Title: Re: login as root on md
Post by: pigdog 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
Title: Re: login as root on md
Post by: Marie.O 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!