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


Groups > linux.debian.user > #261520

Re: su

From Max Nikulin <manikulin@gmail.com>
Newsgroups linux.debian.user
Subject Re: su
Date 2023-09-06 09:40 +0200
Message-ID <HaViN-73jK-1@gated-at.bofh.it> (permalink)
References (2 earlier) <Hax6N-6O9x-1@gated-at.bofh.it> <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>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

> Unfortunately, Debian DOESN'T CREATE THIS FILE BY DEFAULT.  People are
> scared to create it themselves, because people have been "trained"
> by years of Linux distribution handholding that if a program has
> a configuration file, that file will *exist*, and will have helpful
> comments in it, and they only have to find the file and edit it.
> The idea of *creating* a configuration file that's missing is terrifying
> for some people.

I find it more convenient when a configuration file may be created in 
addition to ones provided by the package. It makes changes more visible. 
It may be advantage or disadvantage if during package upgrade default 
configs are replaced without a query related to changed directives.

This particular settings is described in su(1) so can be discovered by 
users with reasonable amount of efforts. Certainly a configuration 
example may still be preferable for users.

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