No, do not do that. This gives access to the display to anyone who can connect to it. The proper way is to give the user access to file whose path is in $XAUTHORITY.
- 0 Posts
- 4 Comments
Joined 10 months ago
Cake day: March 13th, 2025
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Capital letters in user names. 🤮
Debian has torbrowser-launcher you might wanna take a look at that.
As for the issue, this could be because the user lacks credentials to connect to the display.
Firstly, and most importantly, executing
grub-installrequires super-user privileges. Rather than adding it toPATHyou should instead run the command throughsudo. A regular user typically does not need any ofsbindirectories in theirPATH.As for the command itself, there are three things wrong with it:
PATHshould only include directories whereas you tried to add to it a path to an executable. So rather than/usr/sbin/grub-install/grub-installyou should just add/usr/sbin.- White space is significant, so the space before colon would make your command not work anyway.
- Rather than appending to
PATHyou’ve overwritten the variable. Instead you needPATH="$PATH:/usr/sbin/:/usr/local/sbin"(notice$PATH:at the beginning of the assignment).
Also,
exportis unnecessary sincePATHis already an environment variable. (That’s also bashism but that’s likely an irrelevant issue).


You can just copy the file and set
XAUTHORITYas necessary. Just make sure only the desired user can read it.