Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"It ain't over until it's over." -- Casey Stengel


devel / comp.unix.shell / Re: Save all the detailed sourced files information and the errors during the logging process.

SubjectAuthor
* Save all the detailed sourced files information and the errors duringhongy...@gmail.com
+* Save all the detailed sourced files information and the errorsJalen Q
|`- Save all the detailed sourced files information and the errorsJalen Q
+- Save all the detailed sourced files information and the errorsJalen Q
+- Save all the detailed sourced files information and the errorsJalen Q
+- Save all the detailed sourced files information and the errorsJalen Q
`* Save all the detailed sourced files information and the errorsBit Twister
 `* Save all the detailed sourced files information and the errorshongy...@gmail.com
  +* Save all the detailed sourced files information and the errors during the logginKees Nuyt
  |+- Save all the detailed sourced files information and the errorshongy...@gmail.com
  |`* Save all the detailed sourced files information and the errorshongy...@gmail.com
  | +* Save all the detailed sourced files information and the errors during the logginKees Nuyt
  | |`- Save all the detailed sourced files information and the errorshongy...@gmail.com
  | `* Save all the detailed sourced files information and the errorshongy...@gmail.com
  |  `* Save all the detailed sourced files information and the errors during the logginKees Nuyt
  |   `- Save all the detailed sourced files information and the errorshongy...@gmail.com
  `* Save all the detailed sourced files information and the errorsBit Twister
   +* Save all the detailed sourced files information and the errorshongy...@gmail.com
   |+* Save all the detailed sourced files information and the errorsBit Twister
   ||+* Save all the detailed sourced files information and the errorshongy...@gmail.com
   |||`* Save all the detailed sourced files information and the errorsBit Twister
   ||| `* Save all the detailed sourced files information and the errorshongy...@gmail.com
   |||  `* Save all the detailed sourced files information and the errorsBit Twister
   |||   `- Save all the detailed sourced files information and the errorshongy...@gmail.com
   ||`- Save all the detailed sourced files information and the errors during the logginJerry Peters
   |`- Save all the detailed sourced files information and the errorsJanis Papanagnou
   `* Save all the detailed sourced files information and the errorshongy...@gmail.com
    `* Save all the detailed sourced files information and the errorsBit Twister
     +- Save all the detailed sourced files information and the errorshongy...@gmail.com
     `* Save all the detailed sourced files information and the errorshongy...@gmail.com
      +- Save all the detailed sourced files information and the errorsJalen Q
      `- Save all the detailed sourced files information and the errorsJalen Q

Pages:12
Re: Save all the detailed sourced files information and the errors during the logging process.

<142fa779-89cc-483b-b264-6883b6afedben@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=7228&group=comp.unix.shell#7228

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:7e8e:0:b0:3b6:3a22:812c with SMTP id w14-20020ac87e8e000000b003b63a22812cmr2012807qtj.96.1675597282618;
Sun, 05 Feb 2023 03:41:22 -0800 (PST)
X-Received: by 2002:a81:6ed7:0:b0:50e:79ff:776e with SMTP id
j206-20020a816ed7000000b0050e79ff776emr1855981ywc.206.1675597282388; Sun, 05
Feb 2023 03:41:22 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sun, 5 Feb 2023 03:41:22 -0800 (PST)
In-Reply-To: <c35fad5f-9c96-410d-919d-873b7342eca8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=103.149.249.17; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.149.249.17
References: <effab43f-f856-4d8e-8554-cf8e4731c47en@googlegroups.com>
<slrntt42v6.176b.BitTwister@wb.home.arpa> <dce84b69-c48e-4309-8b25-b05d44adeec9n@googlegroups.com>
<n2r4thtqhb1lm61vtndf5ipfebb2rvhh47@dim53.demon.nl> <c35fad5f-9c96-410d-919d-873b7342eca8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <142fa779-89cc-483b-b264-6883b6afedben@googlegroups.com>
Subject: Re: Save all the detailed sourced files information and the errors
during the logging process.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Sun, 05 Feb 2023 11:41:22 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3044
 by: hongy...@gmail.com - Sun, 5 Feb 2023 11:41 UTC

On Monday, January 30, 2023 at 9:34:21 AM UTC+8, hongy...@gmail.com wrote:
> On Thursday, January 26, 2023 at 8:12:15 PM UTC+8, Kees Nuyt wrote:
> > On Wed, 25 Jan 2023 23:17:06 -0800 (PST), "hongy...@gmail.com"
> > <hongy...@gmail.com> wrote:
> >
> > [...]
> > >werner@X10DAi:~$ ls /etc/profile.d/000-rootshare.sh
> > >/etc/profile.d/000-rootshare.sh
> > >werner@X10DAi:~$ ls ~/.profile.d/
> > >000-networkd-resolved-netplan-dnsmasq.bash 300-fcitx5-rime.bash
> > >001-dnsmasq-dnsproxy.bash 300-firefox.bash
> > [...]
> >
> > Binay search will take just a few tries.
> > Move half of the scripts in ~/.profile.d/ somewhere where they
> > will not run.
> > Try again.
> > - No error: the problem was in the half you moved away
> > - Still error: the problem was in the half you did not move
> >
> > Proceed by activating half of the set of scripts that has the
> > problem.
> > Repeat until the size of the set is one script.
> I've tried out the above method, and find that the "Are you sure you want to proceed?" problem is not caused by any scripts located under ~/.profile.d/. So what should I do for further examination?

Finally, it turns out that the problem is caused by a bug of a Ubuntu patch and the incorrect settings in my initialization scripts. See the following links for more details:

https://git.launchpad.net/ubuntu/+source/gdm3/tree/debian/patches/ubuntu/config_error_dialog.patch
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2005135
https://discourse.gnome.org/t/are-you-sure-you-want-to-proceed-message-on-login/13758/7

> > --
> > Kees Nuyt
> Zhao

Re: Save all the detailed sourced files information and the errors during the logging process.

<3fc55d23-a2ed-4ff2-87f5-824021d90f7dn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=7235&group=comp.unix.shell#7235

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ae9:e90e:0:b0:70d:cda:a6e7 with SMTP id x14-20020ae9e90e000000b0070d0cdaa6e7mr1243058qkf.57.1675676443140;
Mon, 06 Feb 2023 01:40:43 -0800 (PST)
X-Received: by 2002:a81:e704:0:b0:483:3c9b:37d6 with SMTP id
x4-20020a81e704000000b004833c9b37d6mr2029044ywl.382.1675676442878; Mon, 06
Feb 2023 01:40:42 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Mon, 6 Feb 2023 01:40:42 -0800 (PST)
In-Reply-To: <slrntt51c0.a9vo.BitTwister@wb.home.arpa>
Injection-Info: google-groups.googlegroups.com; posting-host=103.149.248.28; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.149.248.28
References: <effab43f-f856-4d8e-8554-cf8e4731c47en@googlegroups.com>
<slrntt42v6.176b.BitTwister@wb.home.arpa> <dce84b69-c48e-4309-8b25-b05d44adeec9n@googlegroups.com>
<slrntt51c0.a9vo.BitTwister@wb.home.arpa>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3fc55d23-a2ed-4ff2-87f5-824021d90f7dn@googlegroups.com>
Subject: Re: Save all the detailed sourced files information and the errors
during the logging process.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Mon, 06 Feb 2023 09:40:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 50
 by: hongy...@gmail.com - Mon, 6 Feb 2023 09:40 UTC

On Thursday, January 26, 2023 at 9:52:05 PM UTC+8, Bit Twister wrote:
> On Wed, 25 Jan 2023 23:17:06 -0800 (PST), hongy...@gmail.com wrote:
>
> > Recently, I always meet the "Are you sure you want to proceed?" message on login as described here [1], and none of the above logs give me some clues. I want to disable the above message window to appear each time when I'm trying to log in and still failed to figure out the solution.
> I suggest creating a test account, say junk. Log out of hongyi and into junk.
> If junk has the same problem as hongyi you know it is a system wide problem.
> If junk does not have the problem then you know it is a user (hongyi) problem.
>
> You can test the login process from either account by logging into the
> other user account by clicking up a terminal and doing
> su - junk
> from a hongyi terminal or su - hongyi from a junk terminal, depending
> on who you want to test.
>
> For you, I suggest anytime you make any login script change is to
> su - junk and very there are no problems.

According to the above suggestions, I conducted the following test:

werner@X10DAi:~$ sudo useradd test
werner@X10DAi:~$ sudo passwd test # Set the pw as: asdf1234
werner@X10DAi:~$ sudo usermod -d /home/test -s /bin/bash test
werner@X10DAi:~$ sudo mkdir /home/test

# This time, the problem discussed here doesn't appear again:
werner@X10DAi:~$ su - test
Password:
test@X10DAi:~$

So, I tried to login back as follows and the problem appeared once more:

test@X10DAi:~$ su - werner
Password:
terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to create dbus connection
xhost: unable to open display ""
dirname: invalid option -- 'b'
Try 'dirname --help' for more information.
readlink: invalid option -- 'b'
Try 'readlink --help' for more information.

Any tips for further debugging?

Regards,
Zhao

Re: Save all the detailed sourced files information and the errors during the logging process.

<lo22uh9errkg2jjbdgnek05dv32u5jb0sp@dim53.demon.nl>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=7236&group=comp.unix.shell#7236

  copy link   Newsgroups: comp.unix.shell
From: k.nuyt@nospam.demon.nl (Kees Nuyt)
Newsgroups: comp.unix.shell
Subject: Re: Save all the detailed sourced files information and the errors during the logging process.
Date: Mon, 06 Feb 2023 15:14:51 +0100
Reply-To: k.nuyt@nospam.demon.nl
Message-ID: <lo22uh9errkg2jjbdgnek05dv32u5jb0sp@dim53.demon.nl>
References: <effab43f-f856-4d8e-8554-cf8e4731c47en@googlegroups.com> <slrntt42v6.176b.BitTwister@wb.home.arpa> <dce84b69-c48e-4309-8b25-b05d44adeec9n@googlegroups.com> <n2r4thtqhb1lm61vtndf5ipfebb2rvhh47@dim53.demon.nl> <c35fad5f-9c96-410d-919d-873b7342eca8n@googlegroups.com> <142fa779-89cc-483b-b264-6883b6afedben@googlegroups.com>
User-Agent: ForteAgent/7.10.32.1214
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 11
Injection-Date: Mon, 06 Feb 2023 15:14:53 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1398
 by: Kees Nuyt - Mon, 6 Feb 2023 14:14 UTC

On Sun, 5 Feb 2023 03:41:22 -0800 (PST), "hongy...@gmail.com"
<hongyi.zhao@gmail.com> wrote:

> Finally, it turns out that the problem is caused by a bug
> of a Ubuntu patch and the incorrect settings in my
> initialization scripts.

I'm glad you could solve it.
--
Kees Nuyt

Re: Save all the detailed sourced files information and the errors during the logging process.

<468d65bc-f204-4958-a343-a13495f78607n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=7237&group=comp.unix.shell#7237

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:5bd5:0:b0:3ba:138f:7b3f with SMTP id b21-20020ac85bd5000000b003ba138f7b3fmr252751qtb.376.1675735347099;
Mon, 06 Feb 2023 18:02:27 -0800 (PST)
X-Received: by 2002:a25:9f11:0:b0:866:8b90:69c3 with SMTP id
n17-20020a259f11000000b008668b9069c3mr173990ybq.634.1675735346735; Mon, 06
Feb 2023 18:02:26 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Mon, 6 Feb 2023 18:02:26 -0800 (PST)
In-Reply-To: <lo22uh9errkg2jjbdgnek05dv32u5jb0sp@dim53.demon.nl>
Injection-Info: google-groups.googlegroups.com; posting-host=103.149.249.37; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.149.249.37
References: <effab43f-f856-4d8e-8554-cf8e4731c47en@googlegroups.com>
<slrntt42v6.176b.BitTwister@wb.home.arpa> <dce84b69-c48e-4309-8b25-b05d44adeec9n@googlegroups.com>
<n2r4thtqhb1lm61vtndf5ipfebb2rvhh47@dim53.demon.nl> <c35fad5f-9c96-410d-919d-873b7342eca8n@googlegroups.com>
<142fa779-89cc-483b-b264-6883b6afedben@googlegroups.com> <lo22uh9errkg2jjbdgnek05dv32u5jb0sp@dim53.demon.nl>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <468d65bc-f204-4958-a343-a13495f78607n@googlegroups.com>
Subject: Re: Save all the detailed sourced files information and the errors
during the logging process.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Tue, 07 Feb 2023 02:02:27 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3633
 by: hongy...@gmail.com - Tue, 7 Feb 2023 02:02 UTC

On Monday, February 6, 2023 at 10:15:00 PM UTC+8, Kees Nuyt wrote:
> On Sun, 5 Feb 2023 03:41:22 -0800 (PST), "hongy...@gmail.com"
> <hongy...@gmail.com> wrote:
>
> > Finally, it turns out that the problem is caused by a bug
> > of a Ubuntu patch and the incorrect settings in my
> > initialization scripts.
> I'm glad you could solve it.

But Gunnar Hjalmarsson <2005135@bugs.launchpad.net> gives the alternative maybe nicer solution *:

--- begin quote ---
Gunnar Hjalmarsson (gunnarhj) wrote on 2020-07-12: #2

Second thoughts...

The --no-markup option prevents zenity from interpreting \n which makes the dialog hard to read in most cases. So only adding --no-markup is not a viable solution.

As a possible alternative I played with sed() a bit. The script includes this line:

TEXT="$PARA1\n\n$(fold -s $ERR)\n\n$PARA2"

My thought is to add a new line right after that. Something along these lines:

TEXT=$(printf '%s' "$TEXT" | sed 's/</\&lt;/g')

which would replace all occurrences of '<' with '&lt;'. Can you please test that and see if it helps in your case.
Changed in gdm3 (Ubuntu):
status: In Progress → Incomplete
Changed in lightdm (Ubuntu):
status: In Progress → Incomplete
summary: - lightdm config-error-dialog.sh should pass --no-markup
+ config-error-dialog.sh should pass --no-markup
--- end quote ---

Below is my comment on the above method:

--- begin quote ---
Thank you for letting me know your alternative nice solution. But
there are so many HTML Character Entities [1-2]. How does your method
deal with all these possible situations?

[1] https://www.w3schools.com/HTML/html_entities.asp
[2] https://stackoverflow.com/questions/5068951/what-do-lt-and-gt-stand-for
--- end quote ---

Any more comments, suggestions, and alternative enhancements for fixing this bug gracefully and thoroughly will be greatly appreciated.

* https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1887252
> --
> Kees Nuyt

Regards,
Zhao

Re: Save all the detailed sourced files information and the errors during the logging process.

<slrntu6214.fs4o.BitTwister@wb.home.arpa>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=7239&group=comp.unix.shell#7239

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: BitTwister@mouse-potato.com (Bit Twister)
Newsgroups: comp.unix.shell
Subject: Re: Save all the detailed sourced files information and the errors
during the logging process.
Date: Tue, 7 Feb 2023 20:25:26 -0600
Organization: A noiseless patient Spider
Lines: 66
Message-ID: <slrntu6214.fs4o.BitTwister@wb.home.arpa>
References: <effab43f-f856-4d8e-8554-cf8e4731c47en@googlegroups.com>
<slrntt42v6.176b.BitTwister@wb.home.arpa>
<dce84b69-c48e-4309-8b25-b05d44adeec9n@googlegroups.com>
<slrntt51c0.a9vo.BitTwister@wb.home.arpa>
<3fc55d23-a2ed-4ff2-87f5-824021d90f7dn@googlegroups.com>
Injection-Info: reader01.eternal-september.org; posting-host="b5c411336740ba9d823ac9abb9cadfc7";
logging-data="4169183"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VNZSh5wtSH9bxF+2DNs3cuExKxWMde68="
User-Agent: slrn/pre1.0.4-6 (Linux)
Cancel-Lock: sha1:aqui2KQRkXfdWXR+cRdjVlVD+RU=
 by: Bit Twister - Wed, 8 Feb 2023 02:25 UTC

On Mon, 6 Feb 2023 01:40:42 -0800 (PST), hongy...@gmail.com wrote:
> On Thursday, January 26, 2023 at 9:52:05 PM UTC+8, Bit Twister wrote:
>> On Wed, 25 Jan 2023 23:17:06 -0800 (PST), hongy...@gmail.com wrote:
>>
>> > Recently, I always meet the "Are you sure you want to proceed?" message on login as described here [1], and none of the above logs give me some clues. I want to disable the above message window to appear each time when I'm trying to log in and still failed to figure out the solution.
>> I suggest creating a test account, say junk. Log out of hongyi and into junk.
>> If junk has the same problem as hongyi you know it is a system wide problem.
>> If junk does not have the problem then you know it is a user (hongyi) problem.
>>
>> You can test the login process from either account by logging into the
>> other user account by clicking up a terminal and doing
>> su - junk
>> from a hongyi terminal or su - hongyi from a junk terminal, depending
>> on who you want to test.
>>
>> For you, I suggest anytime you make any login script change is to
>> su - junk and very there are no problems.
>
> According to the above suggestions, I conducted the following test:
>
> werner@X10DAi:~$ sudo useradd test
> werner@X10DAi:~$ sudo passwd test # Set the pw as: asdf1234
> werner@X10DAi:~$ sudo usermod -d /home/test -s /bin/bash test
> werner@X10DAi:~$ sudo mkdir /home/test
>
> # This time, the problem discussed here doesn't appear again:
> werner@X10DAi:~$ su - test
> Password:
> test@X10DAi:~$
>
> So, I tried to login back as follows and the problem appeared once more:
>
> test@X10DAi:~$ su - werner
> Password:
> terminate called after throwing an instance of 'std::runtime_error'
> what(): Failed to create dbus connection
> xhost: unable to open display ""
> dirname: invalid option -- 'b'
> Try 'dirname --help' for more information.
> readlink: invalid option -- 'b'
> Try 'readlink --help' for more information.
>su - werner
> Any tips for further debugging?

if su - test works and su - werner failed
then some script executed by werner login is failing.

No idea why

Message about dirname and readlink aught to be fixed.

Apparently you are running some script executing those instructions that
test does not execute.

By the way, after spending years as an maintenance programmer I found it beneficial
to fix any errors I find even if I believe they have no bearing on the problem
I am trying to fix.

For your xhost problem I would need to see the xhost command. Looking through my
host xx__local.sh script I have
# grep xhost xx__local.sh
/local/bin/set_xhost +"$(hostname --fqdn)"
/local/bin/set_xhost +localhost >
xhost +local:docker

You may want to consider install/using shellcheck to check your scripts.

Re: Save all the detailed sourced files information and the errors during the logging process.

<178f3f16-b349-4c88-88d8-7c7895b8e8f7n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=7240&group=comp.unix.shell#7240

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ae9:ed8c:0:b0:705:b29d:c666 with SMTP id c134-20020ae9ed8c000000b00705b29dc666mr652303qkg.462.1675831569614;
Tue, 07 Feb 2023 20:46:09 -0800 (PST)
X-Received: by 2002:a25:9d86:0:b0:858:ff6a:b8b2 with SMTP id
v6-20020a259d86000000b00858ff6ab8b2mr720227ybp.422.1675831569304; Tue, 07 Feb
2023 20:46:09 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 7 Feb 2023 20:46:09 -0800 (PST)
In-Reply-To: <slrntu6214.fs4o.BitTwister@wb.home.arpa>
Injection-Info: google-groups.googlegroups.com; posting-host=103.149.249.37; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.149.249.37
References: <effab43f-f856-4d8e-8554-cf8e4731c47en@googlegroups.com>
<slrntt42v6.176b.BitTwister@wb.home.arpa> <dce84b69-c48e-4309-8b25-b05d44adeec9n@googlegroups.com>
<slrntt51c0.a9vo.BitTwister@wb.home.arpa> <3fc55d23-a2ed-4ff2-87f5-824021d90f7dn@googlegroups.com>
<slrntu6214.fs4o.BitTwister@wb.home.arpa>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <178f3f16-b349-4c88-88d8-7c7895b8e8f7n@googlegroups.com>
Subject: Re: Save all the detailed sourced files information and the errors
during the logging process.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 08 Feb 2023 04:46:09 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5181
 by: hongy...@gmail.com - Wed, 8 Feb 2023 04:46 UTC

On Wednesday, February 8, 2023 at 10:25:47 AM UTC+8, Bit Twister wrote:
> On Mon, 6 Feb 2023 01:40:42 -0800 (PST), hongy...@gmail.com wrote:
> > On Thursday, January 26, 2023 at 9:52:05 PM UTC+8, Bit Twister wrote:
> >> On Wed, 25 Jan 2023 23:17:06 -0800 (PST), hongy...@gmail.com wrote:
> >>
> >> > Recently, I always meet the "Are you sure you want to proceed?" message on login as described here [1], and none of the above logs give me some clues. I want to disable the above message window to appear each time when I'm trying to log in and still failed to figure out the solution.
> >> I suggest creating a test account, say junk. Log out of hongyi and into junk.
> >> If junk has the same problem as hongyi you know it is a system wide problem.
> >> If junk does not have the problem then you know it is a user (hongyi) problem.
> >>
> >> You can test the login process from either account by logging into the
> >> other user account by clicking up a terminal and doing
> >> su - junk
> >> from a hongyi terminal or su - hongyi from a junk terminal, depending
> >> on who you want to test.
> >>
> >> For you, I suggest anytime you make any login script change is to
> >> su - junk and very there are no problems.
> >
> > According to the above suggestions, I conducted the following test:
> >
> > werner@X10DAi:~$ sudo useradd test
> > werner@X10DAi:~$ sudo passwd test # Set the pw as: asdf1234
> > werner@X10DAi:~$ sudo usermod -d /home/test -s /bin/bash test
> > werner@X10DAi:~$ sudo mkdir /home/test
> >
> > # This time, the problem discussed here doesn't appear again:
> > werner@X10DAi:~$ su - test
> > Password:
> > test@X10DAi:~$
> >
> > So, I tried to login back as follows and the problem appeared once more:
> >
> > test@X10DAi:~$ su - werner
> > Password:
> > terminate called after throwing an instance of 'std::runtime_error'
> > what(): Failed to create dbus connection
> > xhost: unable to open display ""
> > dirname: invalid option -- 'b'
> > Try 'dirname --help' for more information.
> > readlink: invalid option -- 'b'
> > Try 'readlink --help' for more information.
> >su - werner
> > Any tips for further debugging?
> if su - test works and su - werner failed
> then some script executed by werner login is failing.
>
> No idea why
>
> Message about dirname and readlink aught to be fixed.
>
> Apparently you are running some script executing those instructions that
> test does not execute.
>
> By the way, after spending years as an maintenance programmer I found it beneficial
> to fix any errors I find even if I believe they have no bearing on the problem
> I am trying to fix.

Agreed. Nice idea!
> For your xhost problem I would need to see the xhost command. Looking through my
> host xx__local.sh script I have
> # grep xhost xx__local.sh
> /local/bin/set_xhost +"$(hostname --fqdn)"
> /local/bin/set_xhost +localhost >
> xhost +local:docker

Mine is as follows:

werner@X10DAi:~/Public/repo/github.com/bash-it/custom$ ug xhost
300-run-graphical-application-as-root-in-Wayland-session.bash: if ! xhost | grep -qE '^(LOCAL:|SI:localuser:root)'; then
300-run-graphical-application-as-root-in-Wayland-session.bash: # xhost local:
300-run-graphical-application-as-root-in-Wayland-session.bash: xhost si:localuser:root > /dev/null 2>&1
> You may want to consider install/using shellcheck to check your scripts.

Thank you for your advice.

Regards,
Zhao

Re: Save all the detailed sourced files information and the errors during the logging process.

<260c2832-9662-44d0-917b-9d26e9bcd25bn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=7241&group=comp.unix.shell#7241

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:ac8:5bd5:0:b0:3ba:138f:7b3f with SMTP id b21-20020ac85bd5000000b003ba138f7b3fmr1275571qtb.376.1675837635111;
Tue, 07 Feb 2023 22:27:15 -0800 (PST)
X-Received: by 2002:a0d:d58c:0:b0:52b:e712:62ef with SMTP id
x134-20020a0dd58c000000b0052be71262efmr158342ywd.58.1675837634791; Tue, 07
Feb 2023 22:27:14 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Tue, 7 Feb 2023 22:27:14 -0800 (PST)
In-Reply-To: <slrntu6214.fs4o.BitTwister@wb.home.arpa>
Injection-Info: google-groups.googlegroups.com; posting-host=103.149.249.37; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.149.249.37
References: <effab43f-f856-4d8e-8554-cf8e4731c47en@googlegroups.com>
<slrntt42v6.176b.BitTwister@wb.home.arpa> <dce84b69-c48e-4309-8b25-b05d44adeec9n@googlegroups.com>
<slrntt51c0.a9vo.BitTwister@wb.home.arpa> <3fc55d23-a2ed-4ff2-87f5-824021d90f7dn@googlegroups.com>
<slrntu6214.fs4o.BitTwister@wb.home.arpa>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <260c2832-9662-44d0-917b-9d26e9bcd25bn@googlegroups.com>
Subject: Re: Save all the detailed sourced files information and the errors
during the logging process.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 08 Feb 2023 06:27:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4860
 by: hongy...@gmail.com - Wed, 8 Feb 2023 06:27 UTC

On Wednesday, February 8, 2023 at 10:25:47 AM UTC+8, Bit Twister wrote:
> On Mon, 6 Feb 2023 01:40:42 -0800 (PST), hongy...@gmail.com wrote:
> > On Thursday, January 26, 2023 at 9:52:05 PM UTC+8, Bit Twister wrote:
> >> On Wed, 25 Jan 2023 23:17:06 -0800 (PST), hongy...@gmail.com wrote:
> >>
> >> > Recently, I always meet the "Are you sure you want to proceed?" message on login as described here [1], and none of the above logs give me some clues. I want to disable the above message window to appear each time when I'm trying to log in and still failed to figure out the solution.
> >> I suggest creating a test account, say junk. Log out of hongyi and into junk.
> >> If junk has the same problem as hongyi you know it is a system wide problem.
> >> If junk does not have the problem then you know it is a user (hongyi) problem.
> >>
> >> You can test the login process from either account by logging into the
> >> other user account by clicking up a terminal and doing
> >> su - junk
> >> from a hongyi terminal or su - hongyi from a junk terminal, depending
> >> on who you want to test.
> >>
> >> For you, I suggest anytime you make any login script change is to
> >> su - junk and very there are no problems.
> >
> > According to the above suggestions, I conducted the following test:
> >
> > werner@X10DAi:~$ sudo useradd test
> > werner@X10DAi:~$ sudo passwd test # Set the pw as: asdf1234
> > werner@X10DAi:~$ sudo usermod -d /home/test -s /bin/bash test
> > werner@X10DAi:~$ sudo mkdir /home/test
> >
> > # This time, the problem discussed here doesn't appear again:
> > werner@X10DAi:~$ su - test
> > Password:
> > test@X10DAi:~$
> >
> > So, I tried to login back as follows and the problem appeared once more:
> >
> > test@X10DAi:~$ su - werner
> > Password:
> > terminate called after throwing an instance of 'std::runtime_error'
> > what(): Failed to create dbus connection
> > xhost: unable to open display ""
> > dirname: invalid option -- 'b'
> > Try 'dirname --help' for more information.
> > readlink: invalid option -- 'b'
> > Try 'readlink --help' for more information.
> >su - werner
> > Any tips for further debugging?
> if su - test works and su - werner failed
> then some script executed by werner login is failing.
>
> No idea why
>
> Message about dirname and readlink aught to be fixed.
>
> Apparently you are running some script executing those instructions that
> test does not execute.
>
> By the way, after spending years as an maintenance programmer I found it beneficial
> to fix any errors I find even if I believe they have no bearing on the problem
> I am trying to fix.
>
> For your xhost problem I would need to see the xhost command. Looking through my
> host xx__local.sh script I have
> # grep xhost xx__local.sh
> /local/bin/set_xhost +"$(hostname --fqdn)"
> /local/bin/set_xhost +localhost >
> xhost +local:docker
>
> You may want to consider install/using shellcheck to check your scripts.

I wonder whether there is a similar but targeting for generating detail debug messages of startup scripts (profile, .bashrc, etc...).

Regards,
Zhao


devel / comp.unix.shell / Re: Save all the detailed sourced files information and the errors during the logging process.

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor