mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
this causes stupid problems
sudo su logs you in as the current user with sudo privileges, it prevents loading current user environment variables, even when running su -l to login as root, it's not loading root user enviroment variables either because it's logging in as root under sudo privileges instead as root, this relates to [question about su #334](https://github.com/LukeSmithxyz/LARBS/issues/334) aliasing pacman to always prepend sudo to the command, causes the pacman -Qs libxft-bgra command from .config/shell/profile to run a sudo login prompt right after logging in as the user on SSH, and even sometimes on the desktop itself. try sourcing .config/shell/profile after your logged in, it will ask for your sudo password ..
This commit is contained in:
parent
c6bc64cdd8
commit
334186c26a
@ -7,7 +7,7 @@
|
|||||||
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
|
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
|
||||||
|
|
||||||
# sudo not required for some system commands
|
# sudo not required for some system commands
|
||||||
for x in mount umount sv pacman updatedb su; do
|
for x in mount umount updatedb; do
|
||||||
alias $x="sudo $x"
|
alias $x="sudo $x"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user