Giter Site home page Giter Site logo

Cannot install even as root about authy-ssh HOT 3 CLOSED

authy avatar authy commented on June 18, 2024
Cannot install even as root

from authy-ssh.

Comments (3)

danpal avatar danpal commented on June 18, 2024

We’ll look into it, but you are right, you should’t need sudo.

Authy Support

On Sunday, September 8, 2013 at 8:23 PM, Douglas Muth wrote:

I tried installing revision 36e726 as my regular unprivileged user and got this error:
$ ./authy-ssh install ~/.authy-ssh/ root permissions are required to run this command. try again using sudo
I shouldn't need root permissions to install something in my home directory, but I'll humor the installer:
$ sudo ./authy-ssh install ~/.authy-ssh /Users/doug/.authy-ssh/authy-ssh is not writable. Try again using sudo
That's... odd.
In a fit of frustration I tried sudo bash -x ./authy-ssh install ~/.authy-ssh and got this output:

  • VERSION=1.2 + AUTHY_URL=https://api.authy.com ++ dirname ./authy-ssh + APP_ROOT=. + CONFIG_FILE=./authy-ssh.conf + UPSTREAM_URL=https://raw.github.com/authy/authy-ssh/master/authy-ssh + READ_TIMEOUT=60 + OK=0 + FAIL=1 + export TERM=xterm-256color + TERM=xterm-256color ++ tput sgr0 + NORMAL='' ++ tput setaf 2 ++ tput bold + GREEN='' ++ tput setaf 3 + YELLOW='' ++ tput setaf 1 + RED='' + require_curl + which curl + '[' 0 -eq 0 ']' + return 0 ++ dirname ./authy-ssh + cd . ++ basename ./authy-ssh + COMMAND=/Users/doug/tmp/authy-ssh/authy-ssh + cd - + case $1 in + require_root + debug 'Checking if user is root' + [[ -n '' ]] + find_sshd_config + debug 'Trying to find sshd_config file' + [[ -n '' ]] + [[ -f /etc/sshd_config ]] + SSHD_CONFIG=/etc/sshd_config + [[ ! -w /etc/sshd_config ]] + install_authy ./authy-ssh /Users/doug/.authy-ssh + source=./authy-ssh + dest=/Users/doug/.authy-ssh/authy-ssh + [[ ! -n /Users/doug/.authy-ssh ]] + config_file=/Users/doug/.authy-ssh/authy-ssh.conf ++ dirname /Users/doug/.authy-ssh/authy-ssh + [[ ! -r /Users/doug/.authy-ssh ]] + red '/Users/doug/.authy-ssh/authy-ssh is not writable. Try again using sudo' + echo -e '/Users/doug/.authy-ssh/authy-ssh is not writable. Try again using sudo' /Users/doug/.authy-ssh/authy-ssh is not writable. Try again using sudo + return 1
    It seems like the required mkdir was skipped... or perhaps I did something wrong. Any ideas?
    Thanks,
    -- Doug


Reply to this email directly or view it on GitHub (#16).

from authy-ssh.

dcu avatar dcu commented on June 18, 2024

hi @dmuth

I pushed a new version that allows to install as normal user. Please try it and let us know the result.

If you are still having issues and you have time please come chat with us at https://www.hipchat.com/gvVlfV2M3

from authy-ssh.

dmuth avatar dmuth commented on June 18, 2024

No, it did not fix the problem.

After spending a few minutes digging through source I wrote a fix and submitted a pull request:

dmuth@55bd460

At this point, I have to ask: was the previous fix tested? This does not appear to have been the case, and it is cause for concern.

from authy-ssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.