Permissions problems are being a huge PIMA
tomh0665 at gmail.com
Tue Feb 1 04:59:07 UTC 2011
On Mon, Jan 31, 2011 at 8:37 PM, gene heskett <gheskett at wdtv.com> wrote:
> On Monday, January 31, 2011 08:08:28 pm Tom H did opine:
>> >> You can boot into single user mode and do either of the following:
>> >> 1. Delete the user created at install, modify "/etc/login.defs", and
>> >> re-create the user. (Only useful at first boot!)
>> > That was 6 months and a lot of carved steel before. :)
>> >> 2. Modify the uid of the user, �modify "/etc/login.defs", and chown
>> >> the user's home directory recursively with the new uid.
>> > In this order? �I am currently ssh -Y'd into that box and I'd hate
>> > doing half of it and being locked out. �So, I first modified
>> > /etc/adduser.conf, then /etc/group, finally /etc/passwd (all as sudo
>> > -i), then cd'd to /home and did the chown -R gene:gene gene bit. �A
>> > couple of ls -l's seem to indicate it all worked. �Backed out of the
>> > sudo with a ctrl-d. But emc wouldn't run, something about a BadWindow
>> > error. Sudo reboot, & close the link. �Waited for a ping to work then
>> > it took 3 passes before it bought my password again, but I'm back in
>> > with an "ssh -Y shop" as gene on this box.
>> > But, emc still has a tummy ache over X and exits. �Humm, that box was
>> > sitting at a local login prompt when I started, and is sitting there
>> > again as I doubt my ssh login starts the x server.
>> > Does that fit with this error exit on emc's part?
>> > gene at shop:~$ cd emc2
>> > gene at shop:~/emc2$ emc -l
>> > EMC2 - 2.4.6
>> > Machine configuration directory is
>> > '/home/gene/emc2/configs/genes-mill' Machine configuration file is
>> > 'genes-mill.ini'
>> > Starting EMC2...
>> > X Error of failed request: �BadWindow (invalid Window parameter)
>> > �Major opcode of failed request: �3 (X_GetWindowAttributes)
>> > �Resource id in failed request: �0xffffffff
>> > �Serial number of failed request: �749
>> > �Current serial number in output stream: �750
>> > Shutting down and cleaning up EMC2...
>> > Cleanup done
>> > EMC terminated with an error. �You can find more information in the
>> > log: � �/home/gene/emc_debug.txt
>> > and
>> > � �/home/gene/emc_print.txt
>> > as well as in the output of the shell command 'dmesg' and in the
>> > terminal
>> > Or have I royally screwed the moose here?
>> Royally, I don't think so. Screwed the moose, possibly.
>> I definitely wouldn't have made these changes with an X session open,
>> especially not a gene X session.
> I don't think an x session existed, the machines own console was sittin at
> the user's login screen after a reboot. Still is I believe.
>> Also I would've used 500 rather than gene for the chmod.
> ls -ln verifies that. Yup, everything is 500, user and group.
>> I don't know what more to say, especially since I have no idea what
>> "emc -l" is or does.
> Emc is a machine control program, initially funded by NIST many years ago,
> always in constant development, suitable for running almost any sort of a
> robot needing very precise positioning (of a rotating cutting bit for
> instance) in 3d (or more) space.
Do a find with uid 1000 as a search criterion - and chown to 500 if
you have hits.
Could 1000 be hard-coded (meaning that the install took your original
uid into account rather than truly hard-coded) somewhere in emc?
More information about the kubuntu-users