User Authorization

19 posts / 0 new
Last post
kevinwutang
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.

Michael
.

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

kevinwutang
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.

kevinwutang
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.

Michael
.

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

kevinwutang
Yes,, I chmod +x the script

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

kevinwutang
.

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

Michael
.

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

kevinwutang
.

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.

Michael
.

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

kevinwutang
I 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.

kevinwutang
.

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

Michael
.

ok so change to that at the top of the script

kevinwutang
.

What do I need to change?

Michael
.

The top line

kevinwutang
.

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

Michael
.

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.

kevinwutang
.

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.

Michael
.

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.

Log in or register to post comments