Code: Select all
su -
Alternatively, to get an approximation of the old behaviour add this line to /etc/login.defs:
Code: Select all
ALWAYS_SET_PATH yes
Code: Select all
su -
Code: Select all
ALWAYS_SET_PATH yes
This info suggests using "sudo" instead of "su" .cuckooflew wrote:: https://wiki.debian.org/NewInBuster
Not to sideline your information but do you have any idea why they did that? I've been using su for 20+ years without issue and now, seemingly out of the blue, someone decided to change it. Geez, when something works, don't fix it.Head_on_a_Stick wrote:The su command in Debian buster is now provided by the util-linux package rather than the login package . . .
If no root password is entered in the installer then the sudo package is installed and the first user is added to the sudo group automatically. Please continue any further discussion in your other thread, it is off-topic here, thanks.mrkapqa wrote:to get sudo working, i always had to to do "usermod -aG sudo username" as root
To align Debian with the other major distributions, this bug report has the full discussion: https://bugs.debian.org/cgi-bin/bugrepo ... bug=905409Bulkley wrote:do you have any idea why they did that?
Not necessarily:sickpig wrote:pkexec is in built
Code: Select all
E485:~$ pkexec apt update
loksh: pkexec: not found
E485:~127$
Code: Select all
alias su="su -"
That means you would not be able to use su in cases where you don't want to change the environment. I occasionally install a downloaded .deb and I can just use su in ~/Downloads/ to install it with apt as /usr/bin is in my user's environment but /sbin and /usr/sbin are not. apt is in /usr/bin.Ardouos wrote:Another solution could be to alias "su -" in your .bashrc or globally in /etc/bashrc and /etc/bash.bashrc.
AdrianTM wrote:There's no hacker in my grandma...
I was going to write that but thought maybe it would just change to the other user's environment?dilberts_left_nut wrote:It would also break su'ing to other users.
AdrianTM wrote:There's no hacker in my grandma...