Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  Problems with login and util-linux  (Read 9710 times)

Offline drb

  • User
  • Posts: 165
Re: Problems with login and util-linux
« Reply #15 on: 2018/08/03, 10:23:04 »
I had boot errors like that but the latest kernel 4.17.11-towo.2-siduction-amd64 x86_64 solved that problem. I think it was just the one kernel that caused it.

Baggi

  • Guest
Re: Problems with login and util-linux
« Reply #16 on: 2018/08/03, 11:38:45 »
ACPI Errors are gone. All works fine for me.

Offline hendrikL

  • Administrator
  • User
  • *****
  • Gravatar
  • Posts: 927
Re: Problems with login and util-linux, the reason why ...
« Reply #17 on: 2018/08/04, 10:03:16 »
hi,

Quote from: /usr/share/doc/util-linux$ zcat NEWS.Debian.gz
util-linux (2.32-0.4) unstable; urgency=medium

  The util-linux implementation of /bin/su is now used, replacing the
  one previously supplied by src:shadow (shipped in login package), and
  bringing Debian in line with other modern distributions. The two
  implementations are very similar but have some minor differences (and
  there might be more that was not yet noticed ofcourse), e.g.

  - new 'su' (with no args, i.e. when preserving the environment) also
    preserves PATH and IFS, while old su would always reset PATH and IFS
    even in 'preserve environment' mode.
  - su '' (empty user string) used to give root, but now returns an error.
  - previously su only had one pam config, but now 'su -' is configured
    separately in /etc/pam.d/su-l

  The first difference is probably the most user visible one. Doing
  plain 'su' is a really bad idea for many reasons, so using 'su -' is
  strongly recommended to always get a newly set up environment similar
  to a normal login. If you want to restore behaviour more similar to
  the previous one you can add 'ALWAYS_SET_PATH yes' in /etc/login.defs.
  [...]

So there is no bug or similar!

greetz hendrikL

Offline GoinEasy9

  • User
  • Posts: 560
Re: Problems with login and util-linux
« Reply #18 on: 2018/08/04, 17:09:22 »
Quote
  - su '' (empty user string) used to give root, but now returns an error.
 

I'm not seeing an error using "su" (empty user string), it seems to work, for me, just as it did before the update.
Linux Counter number 348347

Offline df8oe

  • User
  • Posts: 112
  • Linux von Innen
    • DF8OE
Re: Problems with login and util-linux
« Reply #19 on: 2018/08/05, 10:17:44 »
"su" without arguments works - but it misses to set the PATHs to
/sbin
/usr/sbin
/usr/local/sbin


Everything else is as before.


Greetings
DF8OE

Offline tommy2

  • User
  • Posts: 128
Re: Problems with login and util-linux
« Reply #20 on: 2018/08/05, 14:14:04 »
Must have missed this, but I thought using su without the "-" would use the current path? The "-" is required for the default root directory path, like I said must have missed something.  :-[

Offline CCarpenter

  • User
  • Posts: 198
    • http://www.greenvalleyranchschwand.de
Re: Problems with login and util-linux
« Reply #21 on: 2018/08/06, 23:19:13 »
"su" without arguments works - but it misses to set the PATHs to
/sbin
/usr/sbin
/usr/local/sbin


Everything else is as before.


Greetings
DF8OE
Confirmed, same here.

Offline Lanzi

  • User
  • Posts: 1.777
Re: Problems with login and util-linux
« Reply #22 on: 2018/08/07, 14:35:45 »
I think I have the same, but maybe worse...
If I open a konsole, login as root with su, I cannot install wit apt, dpkg or make a DU:
Code: [Select]
Changelogs werden gelesen... Fertig
Extrahiere Vorlagen aus Paketen: 100%
Vorkonfiguration der Pakete ...
dpkg: Warnung: »ldconfig« wurde im PATH nicht gefunden oder ist nicht ausführbar
dpkg: Warnung: »start-stop-daemon« wurde im PATH nicht gefunden oder ist nicht ausführbar
dpkg: Fehler: 2 erwartete Programme nicht im PATH gefunden oder nicht ausführbar
Beachten Sie: PATH von root sollte normalerweise /usr/local/sbin, /usr/sbin und /sbin enthalten
E: Sub-process /usr/bin/dpkg returned an error code (2)
How can I install the new versions?

Offline hendrikL

  • Administrator
  • User
  • *****
  • Gravatar
  • Posts: 927
Re: Problems with login and util-linux
« Reply #23 on: 2018/08/07, 15:00:21 »
su -

Edit:fixed typo,  added space between su and -!
 
« Last Edit: 2018/08/08, 07:04:44 by hendrikL »

Offline Lanzi

  • User
  • Posts: 1.777
Re: Problems with login and util-linux
« Reply #24 on: 2018/08/07, 16:55:03 »
it works with su -
läuft, danke
« Last Edit: 2018/08/07, 17:03:16 by Lanzi »

Offline tommy2

  • User
  • Posts: 128
Re: Problems with login and util-linux
« Reply #25 on: 2018/08/08, 14:04:18 »
Once again su "to who" normally su is used to become another user that's why a name of which user but you are still in your current path. That's why the " - " is used to tell the shell to use the root path, guess I didn't miss something earlier.  ;)