|
Re: Permission denied when pushing code
You may have to ssh to your roboRio first and issue the "chmod 777 /home/lvuser" to give permission to the folder, then run the modified build.xml. . After issuing the command you can do
ls -l /home/lvuser
and see if the permissions are "drwxrwxrwx" to see if your changes take.
Do you need step-by-step instructions on how to ssh to it? I use putty, a ssh client.
After doing that, try deploying again. Post the entire contents of your build log here.
Do you see se the extra chmod command in your build log?
Add exactly this (cut and paste)
<sshexec host="${target}"
username="admin"
password="${password}"
trust="true"
failonerror="false"
command="chmod 777 /home/lvuser"/>
Above the line
<scp file="${wpilib.ant.dir}/robotCommand" todir="${username}@${target}:/home/lvuser/" password="${password}" trust="true"/>
__________________
Brian K
Team 1225 Robotics Mentor
Last edited by SuperBK : 29-02-2016 at 16:20.
|