Dynamically set path for checkXauth
See original GitHub issueWhile doing this install I needed to SSH as root and as such the hardcoded path in checkXauth.sh failed
ls /home/pi/.Xauthority > /dev/null
if [ "$?" == "0" ]; then
sudo cp /home/pi/.Xauthority /root/
I’d suggest doing something like
ls $HOME/.Xauthority > /dev/null
if [ "$?" == "0" ]; then
sudo cp $HOME/pi/.Xauthority /root/`
instead so as many users may not do this as the default “pi” account.
Additionally, as I did this as root the “cp” was redundant so you may want to add a check for whether the user is root and if so, skip the “cp”.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
symfony - Add dynamic variables to login_path and check_path
First off, take a look at Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler and ...
Read more >Check authentication with dynamic route - Get Help - Vue Forum
I am looking for a way to authenticate a user and redirect, some pretty basic stuff, but I am having troubles with the...
Read more >Dynamic scope checks · Issue #678 · outmoded/discuss - GitHub
I was wondering it was possible to dynamically check scopes on resources by allowing credentials.scopes to contain an (async) function that ...
Read more >JMeter Authorization with dynamic access token(Bearer) and ...
Authorization with dynamic access token is used to pass the dynamic response content to the subsequent requests which can be further used in ......
Read more >Dynamic Organization Routing with React | PropelAuth Blog
In this post, we'll look at how to create a dynamic route for the organization a user is a member of in React...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
closing this as the current solution will provide a GUI as intended, regardless of warnings or redundancy. I will continue to explore additional options to differentiate between sudo and root user, but for the time being the code contained within this script should cooperate for everyone using sudo or root. I encourage anyone who wishes to improve this code or other sections to fork the repo! thx
made some more updates to checkauth and also elaborated more on the functionality of the Briar menu 😃 It is definitely not exhaustive but I’ll be honest, I build documentation around user feedback. The more I get the better the documentation will be. Your input has been very helpful. Thx again