Comments (3)
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.
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.
No, it did not fix the problem.
After spending a few minutes digging through source I wrote a fix and submitted a pull request:
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)
- Add an FSF or OSI approved free software license HOT 1
- cannot set a user up on a vps HOT 4
- SFTP support HOT 1
- EC2 integration HOT 2
- Can port forward before entering authy token HOT 3
- FreeBSD 8.3 Authy-SSH Install HOT 4
- ban after too many failures HOT 1
- README curl command needs updating due to new github paths HOT 1
- Authy circumvented when host disk is full
- Authy API key HOT 1
- OneTouch HOT 6
- Output login atempts to log
- Shellslocker
- Cannot open SFTP HOT 1
- known security issues need to be documented
- Issue with trying to use ' ssh-copy-id ' to send public keys to an ssh server using authy-ssh
- Stop authy-ssh from preventing existing logon banner from showing HOT 1
- Unknown response
- convert to pam module?
- Unhelpful error when Twilio trial period ends
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authy-ssh.