Followed the instruction and been troubleshooting this problem all week. Couldn't get my raspberry pi zero to pull authenication for a HD on the network. I have already purhcased VirtualHere license. Any advice? Thank you.
Hello Michael. Yes, I have put clientAuthorization in config.ini and created the auth.sh in root, gave full permission and still having trouble with getting it to prompt password when using disk.
sudo nano into config.ini in root and copy and paste clientAuithorization
sudo nano into auth.sh in root and copy and paste /bin/bash in the example. I left michael as username and password the same in order to test it out.
sudo chmod +x for auth.sh in root
That script definitely works so you need to double check your setup. Remember to chmod +x the script and also take a look in /var/log/syslog for any messages from vhusbd e.g
I noticed that it's using /home/pi/config.ini and I edited /root/config.ini/. When I editi /home/pi/config.ini and put clientAuthroization in there, it would give me an error when I start to open it from client.
ok no this seems too advanced for you. This is not a forum to learn linux. You will need to figure this out yourself by researching on the internet more.
It's entirely your fault it's not working so you need to figure it out yourself. this is not a how to use linux forum or company. There are plenty of websites for you to use learn linux.
.
Are you following this guide https://www.virtualhere.com/authorization ?
i.e you added the ClientAuthorization script to your pi0w and it should prompt for a password to use the disk
Hello Michael. Yes, I have
Hello Michael. Yes, I have put clientAuthorization in config.ini and created the auth.sh in root, gave full permission and still having trouble with getting it to prompt password when using disk.
Here is what I did:
Here is what I did:
sudo nano into config.ini in root and copy and paste clientAuithorization
sudo nano into auth.sh in root and copy and paste /bin/bash in the example. I left michael as username and password the same in order to test it out.
sudo chmod +x for auth.sh in root
No luck.
.
That script definitely works so you need to double check your setup. Remember to chmod +x the script and also take a look in /var/log/syslog for any messages from vhusbd e.g
grep vhusbd /var/log/syslog
Yes,, I chmod +x the script
Yes,, I chmod +x the script as well in config.ini. What am I looking for in syslog?
.
Just tested and looking at the syslog, I got this...
Unknown return value 127 from clientAuthorization
vhusbdarm[452]: Error binding device 114 [1058:1021] to connection 2, BIND_ERROR
.
Just directly run the script on the command line and see what it says
.
When I sh and run sudo /home/pi/auth.sh and sudo /root/auth.sh, it seems like it ran and didn't give me any error.
.
Are you running sh or bash? Remember to specify the correct one at the top of the script
also run
echo $*
afterwards to see the response codeI noticed that it's using
I noticed that it's using /home/pi/config.ini and I edited /root/config.ini/. When I editi /home/pi/config.ini and put clientAuthroization in there, it would give me an error when I start to open it from client.
.
I'm running sh. And using echo $* just give me a blank response same when I run sh sudo /home/pi/auth.sh and sudo /root/auth.sh
.
ok so change to that at the top of the script
.
What do I need to change?
.
The top line
.
Example please. I changed #! /bin/sh.
.
ok no this seems too advanced for you. This is not a forum to learn linux. You will need to figure this out yourself by researching on the internet more.
.
This isn't very hlepful. Been trying to fix this for days and support isn't that great. Paid 49 for this server and doesn't seems like it's working.
.
It's entirely your fault it's not working so you need to figure it out yourself. this is not a how to use linux forum or company. There are plenty of websites for you to use learn linux.