User Authorization

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.

#2

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

#3

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.

#4

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.

#5

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

#6

Yes,, I chmod +x the script as well in config.ini. What am I looking for in syslog?

#7

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

#8

Just directly run the script on the command line and see what it says

#9

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.

#10

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 code

#11

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.

#12

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

#13

ok so change to that at the top of the script

#14

What do I need to change?

#15

The top line

#16

Example please. I changed #! /bin/sh.

#17

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.

#18

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.

#19

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.