question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamically set path for checkXauth

See original GitHub issue

While 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:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
musicmancorleycommented, May 16, 2017

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

1reaction
musicmancorleycommented, May 6, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found