Code: Select all
$ su
Password:
root@maleday:/# swapon -s
bash: swapon: command not found
root@maleday:/#
Code: Select all
$ su
Password:
root@maleday:/# swapon -s
bash: swapon: command not found
root@maleday:/#
Code: Select all
sudo -i
Code: Select all
su -
Code: Select all
su -
I don't use 'sudo' normally, but don't understand why one would use su that way .Someone on stackexchange told me that "sudo su" is wrong now.
Code: Select all
su -
Agreed, so don't answer me here, give those details in the new topic.EDIT: please open a separate thread for your shutdown problem.
Me neither, I never lose data, but that is because I all ways make a backup , before shutting down, and that way have all the data saved, in case something went wrong.by kanliot » No idea if I've lost data. When is Debian going to figure out that udev is just mocking you?
P.S. I wouldn't trust what the say on stackexchange much, but agree, that sounds wrong, just plain does not make sense.Someone on stackexchange told me that "sudo su" is wrong now.
It makes sense if you are allowed to use sudo (e.g. with your own password) but don't have the password for root (which su needs).GarryRicketson wrote:P.S. I wouldn't trust what the say on stackexchange much, but agree, that sounds wrong, just plain does not make sense.Someone on stackexchange told me that "sudo su" is wrong now.
Thanks, ok, that makes sense , and would be a valid reason.It makes sense if you are allowed to use sudo (e.g. with your own password) but don't have the password for root (which su needs).
I'll use textual reconstruction to have this mean I have to accept bugs without complaining about them."Be conservative in what you send, be liberal in what you accept"
bash: swapon: command not found
I don't know where you're quoting this from. It's not in this thread (?).kanliot wrote:Ehhhh, I suppose if it's not documented, then it's a user-keyboard error, huh?I'll use textual reconstruction to have this mean I have to accept bugs without complaining about them."Be conservative in what you send, be liberal in what you accept"
"sudo su" has always been wrongkanliot wrote:Someone on stackexchange told me that "sudo su" is wrong now.
No it does not make any sense. su is just useless in this context.GarryRicketson wrote:Thanks, ok, that makes sense , and would be a valid reason.It makes sense if you are allowed to use sudo (e.g. with your own password) but don't have the password for root (which su needs).
This actually makes me feel a lot better. I thought it was some kind of arcana.p.H wrote: What has changed in buster is that now su without -/-l/--login does not set the root $PATH.
Code: Select all
/home/kanliot/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:~/bin
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/bin
kanliot wrote: I'd like to doublecheck this change is documented. Where do I check?
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.
Code: Select all
w$ == wheezy normal user
b$ == buster normal user
w# == wheezy root
b# == buster root
Code: Select all
w$ echo $PATH
/home/soul/.bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Code: Select all
b$ echo $PATH
/home/soul/.bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Code: Select all
w$ su -
Password:
w# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
w# exit
logout
Code: Select all
b$ su -
Password:
b# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
b# exit
logout
Code: Select all
w$ su
Password:
w# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
w# exit
exit
Code: Select all
b$ su
Password:
b# echo $PATH
/home/soul/.bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
b# exit
exit
nope, just had 4 bowls this morning and only 1 was cereal.sickpig wrote:@4D696B65 y is ur penguin sad?