Score:0

How can I install sshpass without sudo permissions?

bo flag

While trying to install sshpass, I encounter this permission denied issue

gcc -DHAVE_CONFIG_H -I. -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -g -O2 -o sshpass main.o
make[1]: Entering directory `/home/splashbi/sshpass/sshpass-1.08'
 /bin/mkdir -p '/usr/local/bin'
  /bin/install -c sshpass '/usr/local/bin'
/bin/install: cannot create regular file ‘/usr/local/bin/sshpass’: Permission denied
make[1]: *** [install-binPROGRAMS] Error 1
make[1]: Leaving directory `/home/splashbi/sshpass/sshpass-1.08'
make: *** [install-am] Error 2

How can I get around this?

David avatar
cn flag
What Ubuntu version?
cn flag
We can't fix this ... You need to ask the person who does have sudo permissions.
muru avatar
us flag
Install to a prefix you can write to instead of `/usr/local`.
bac0n avatar
cn flag
`sshpass` doesn't seem to have any dependencies. You could try to copy the binary manually to `~/bin` or `~/.local/bin`, then re-login. `sshpass` will only be available to you, though.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.