We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

how to copy (scp) folders to a device [answered]

asked 2018-05-20 18:05:59 +0300

makarch gravatar image

updated 2018-05-20 18:09:42 +0300

I am trying to install MicroG (Xperia X). So far everything has gone fine but now I cant copy my folders back to the phone. I get the error that permission is denied.

[user@user-desktop folder] $ scp -r app/ nemo@192.168.178.20:/opt/alien/system/ 
nemo@xxx.xxx.xxx.xx's password: 
scp: /opt/alien/system//app: Permission denied

What do I do wrong?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by atlochowski
close date 2018-05-20 18:38:45.242509

1 Answer

Sort by » oldest newest most voted
2

answered 2018-05-20 18:22:58 +0300

atlochowski gravatar image

updated 2018-05-20 18:23:20 +0300

to copy something to /opt/ you have to have administration permission.

So copy your folder to home directory

[user@user-desktop folder] $ scp -r app/ nemo@192.168.178.20:/home/nemo/

then log as root

devel-su

then copy your folder to /opt/alien/system/

cp -r /home/nemo/app /opt/alien/system/
edit flag offensive delete publish link more

Comments

That worked fine. Thank you very much!

makarch ( 2018-05-20 18:35:12 +0300 )edit

Question tools

Follow
1 follower

Stats

Asked: 2018-05-20 18:05:59 +0300

Seen: 188 times

Last updated: May 20 '18