Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #261660

Re: su

From Vincent Lefevre <vincent@vinc17.net>
Newsgroups linux.debian.user
Subject Re: su
Date 2023-09-14 12:40 +0200
Message-ID <HdRVo-8UCe-21@gated-at.bofh.it> (permalink)
References (3 earlier) <HaKdH-6Wyq-11@gated-at.bofh.it> <HaKQp-6X0R-21@gated-at.bofh.it> <HaRfb-70Vt-3@gated-at.bofh.it> <HaRId-714u-3@gated-at.bofh.it> <HaViN-73jK-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2023-09-06 14:36:48 +0700, Max Nikulin wrote:
> On 06/09/2023 10:41, Greg Wooledge wrote:
> > 
> > Just put "ALWAYS_SET_PATH yes" into /etc/default/su and the problem
> > is FIXED.  "su" will work properly again!
> 
> Greg, you provided a valid example when "su -" is undesirable, however in
> general "su -" is safer than just "su" since it resets some user specific
> environment variables like XDG_RUNTIME_DIR=/run/user/1000 that may cause
> creation of files that the original user can not overwrite them. So "su -"
> should have less unexpected effects.

Yes, XDG_RUNTIME_DIR is problematic, but as "su -" doesn't work in
GNU Screen (it yields major display issues), I presume that some
environment variables (terminal related?) are still useful.

FYI, I had written a su wrapper that unsets XDG_RUNTIME_DIR first.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

just a question about the iwlwifi_20230515-3 file Maureen L Thomas <silverorb@verizon.net> - 2023-09-05 06:30 +0200
  Re: just a question about the iwlwifi_20230515-3 file jeremy ardley <jeremy.ardley@gmail.com> - 2023-09-05 07:50 +0200
    Re: just a question about the iwlwifi_20230515-3 file Greg Wooledge <greg@wooledge.org> - 2023-09-05 13:20 +0200
    Re: just a question about the iwlwifi_20230515-3 file "Andrew M.A. Cater" <amacater@einval.com> - 2023-09-05 21:50 +0200
      Re: just a question about the iwlwifi_20230515-3 file Charles Curley <charlescurley@charlescurley.com> - 2023-09-05 22:30 +0200
        Re: just a question about the iwlwifi_20230515-3 file Charles Curley <charlescurley@charlescurley.com> - 2023-09-06 00:40 +0200
        Re: just a question about the iwlwifi_20230515-3 file Michel Verdier <mv524@free.fr> - 2023-09-06 05:20 +0200
          Re: just a question about the iwlwifi_20230515-3 file Max Nikulin <manikulin@gmail.com> - 2023-09-06 06:00 +0200
        Re: just a question about the iwlwifi_20230515-3 file debian-user@howorth.org.uk - 2023-09-06 12:30 +0200
          Re: just a question about the iwlwifi_20230515-3 file <tomas@tuxteam.de> - 2023-09-06 13:00 +0200
    Re: just a question about the iwlwifi_20230515-3 file Greg Wooledge <greg@wooledge.org> - 2023-09-05 22:30 +0200
      Re: just a question about the iwlwifi_20230515-3 file Michel Verdier <mv524@free.fr> - 2023-09-06 05:20 +0200
        Re: su Greg Wooledge <greg@wooledge.org> - 2023-09-06 05:50 +0200
          Re: su Charlie <ariestao@skymesh.com.au> - 2023-09-06 08:00 +0200
          Re: su Max Nikulin <manikulin@gmail.com> - 2023-09-06 09:40 +0200
            Re: su Vincent Lefevre <vincent@vinc17.net> - 2023-09-14 12:40 +0200
              Re: su Max Nikulin <manikulin@gmail.com> - 2023-09-14 16:30 +0200
                Re: su Vincent Lefevre <vincent@vinc17.net> - 2023-09-14 17:30 +0200
                Re: su Max Nikulin <manikulin@gmail.com> - 2023-09-15 04:20 +0200
          Re: su Michel Verdier <mv524@free.fr> - 2023-09-06 11:10 +0200
  Re: just a question about the iwlwifi_20230515-3 file Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2023-09-05 12:00 +0200
  Re: just a question about the iwlwifi_20230515-3 file Charles Curley <charlescurley@charlescurley.com> - 2023-09-05 17:20 +0200
    Re: just a question about the iwlwifi_20230515-3 file David Wright <deblis@lionunicorn.co.uk> - 2023-09-05 20:40 +0200
    Re: just a question about the iwlwifi_20230515-3 file Charles Curley <charlescurley@charlescurley.com> - 2023-09-05 22:50 +0200
      Re: just a question about the iwlwifi_20230515-3 file Greg Wooledge <greg@wooledge.org> - 2023-09-06 00:50 +0200
      Re: just a question about the iwlwifi_20230515-3 file Charles Curley <charlescurley@charlescurley.com> - 2023-09-06 01:00 +0200
      Re: just a question about the iwlwifi_20230515-3 file Max Nikulin <manikulin@gmail.com> - 2023-09-06 09:50 +0200
  Re: just a question about the iwlwifi_20230515-3 file piorunz <piorunz@gmx.com> - 2023-09-06 00:00 +0200
    Re: just a question about the iwlwifi_20230515-3 file Greg Wooledge <greg@wooledge.org> - 2023-09-06 00:20 +0200

csiph-web