On Monday 28 November 2016 07:53:34 Mark wrote:

> On 11/27/2016 03:17 PM, Gene Heskett wrote:
> > But I can only do that from its own keyboard, and I've not made it
> > out there yet.
> >
> > What I was trying to do was to have all this done, either in the
> > correct rc.local files or in a file that I can have auto executed as
> > soon as I am logged in.
>
> You can't ssh into the machine and make changes?  Everything has to be
> done on the console?
>
> > Forgot to send this, but I've been out there, trying to get it to
> > work, but the message on the raspi's screen is that it cannot open
> > 192.168.71.9:0 for use.
>
> Which machine is that one?

That is the odroid64. Thomas on the xorg list said I should put a 
-listen tcp in the X launching line of xinit/xserverrc, so I have, and 
rebooted it, but since I am not logged in locally after the reboot, X 
hasn't been started, so nmap still can't see an open port in the 6000+ 
range. Thats next, after I build some coffee & cover some more skin. :)

> > FWIW, the odroid64 at this time has a full xwindow session running.
> >
> > But I also have another problem on the pi, I am not user 1000. I can
> > copy a script from a forum message that will fix it, but it also
> > leaves me with a skel home directory.  Strangely that does not seem
> > to be a problem.
> >
> > So I have rm'd the .Xauthority files, which had grown quite large
> > from all my putzing. But I am going to run that script from rc.local
> > on the raspi so that I have full sudo rights before I try the next
> > thing to check. There must not be anyone logged in when this change
> > my user number to 1000 is ran.
> >
> > Later, after I've fixed me on the raspi.
>
> I'm confused.  What rc.local script gives you full sudo rights?

AIUI rc.local runs before the login, so effectively has root rights and 
can easily brick the install. But that nobody logged in state is the 
only time one can play with passwd's, groups and who owns what.
But despite composing the script on the raspi exactly the same as worked 
on the droid, it refuses to execute with the usual ". /fixme" syntax in 
rc.local. Something about a compatibility issue is logged to the screen 
and is covered nearly as soon as I log in. With no mouse support, I 
can't scroll back to copy/paste it someplace less volatile.

> That 
> should be the /etc/sudoers file.

That, and adding me to the various group's, specifically to any group 
that has pi as an alias. So I appear to be set for everything but 
synaptic, pam absolutely insists on a root password, which has not been 
shared. Neither gksu, nor gksudo can execute synaptic because pam gets 
into the ring and flat insists on the root password, not mine.

> Things break when programs can't 
> find their initialization info where it's expected.

Or they don't break, just report the error and go right ahead and do it.
Example from the pi: (with added line breaks and spacing to make it 
readable)

gene@raspberrypi:/etc $ sudo grep -R raspberrypi *
sudo: unable to resolve host raspberrypi

apt/sources.list.d/raspi.list:deb http://archive.raspberrypi.org/debian/ 
jessie main ui

apt/sources.list.d/raspi.list:#deb-src 
http://archive.raspberrypi.org/debian/ jessie main ui
exim4/update-exim4.conf.conf:dc_other_hostnames='raspberrypi'

hostname:raspberrypi

hosts:192.168.71.8      raspberrypi.coyote.den  raspi

mailname:raspberrypi

ssh/ssh_host_ecdsa_key.pub:ecdsa-sha2-nistp256 (key removed) 
root@raspberrypi

ssh/ssh_host_rsa_key.pub:ssh-rsa (key removed) root@raspberrypi

ssh/ssh_host_dsa_key.pub:ssh-dss (key removed) root@raspberrypi

ssh/ssh_host_ed25519_key.pub:ssh-ed25519 (key removed) root@raspberrypi

wicd/wired-settings.conf:dhcphostname = raspberrypi
-----------------------------------------------------
So why can't sudo resolve its own hostname?  Weird.

logging out and back in as pi@raspi:

paste from screen
-----------------------------------------------------------
gene@coyote:~$ ssh -Y pi@raspi
pi@raspi's password: 

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Nov 27 12:37:34 2016
pi@raspberrypi:~ $ synaptic-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: root
Password: 

note its asking for roots pw. So we the users, regardless of our status 
in the group and sudoers files, are locked out of using the only gui 
package manager worth its space in the storage media. I would not touch 
aptitude again with a 20 foot fiberglass pole. It has totally destroyed 
at least 4 systems now including this one twice, so its never going to 
get another chance.

Thanks Mark, I need to get to it, check on Dee, make coffee etc.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to