Weird permissions issue?

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
metc
Posts: 6
Joined: Sat Nov 11, 2023 10:06 pm

Weird permissions issue?

Post by metc » Mon Nov 13, 2023 9:30 pm

Hey all. Even though I'm logged in as admin on my default hub, I'm getting a permission issue. It's also making it impossible to make another hub, so I'm pretty sure I'm getting something wrong. I've tried this as both the main and root user on the machine itself.

Code: Select all

[ec2-user@ip-172-31-23-232 vpnserver]$ ./vpncmd
vpncmd command - SoftEther VPN Command Line Management Utility
SoftEther VPN Command Line Management Utility (vpncmd command)
Version 4.43 Build 9799   (English)
Compiled 2023/08/31 10:50:49 by buildsan at crosswin with OpenSSL 3.0.9
Copyright (c) 2012-2023 SoftEther VPN Project. All Rights Reserved.

By using vpncmd program, the following can be achieved.

1. Management of VPN Server or VPN Bridge
2. Management of VPN Client
3. Use of VPN Tools (certificate creation and Network Traffic Speed Test Tool)

Select 1, 2 or 3: 1

Specify the host name or IP address of the computer that the destination VPN Server or VPN Bridge is operating on.
By specifying according to the format 'host name:port number', you can also specify the port number.
(When the port number is unspecified, 443 is used.)
If nothing is input and the Enter key is pressed, the connection will be made to the port number 8888 of localhost (this computer).
Hostname of IP Address of Destination:

If connecting to the server by Virtual Hub Admin Mode, please input the Virtual Hub name.
If connecting by server admin mode, please press Enter without inputting anything.
Specify Virtual Hub Name: default
Password: ****

Connection has been established with VPN Server "localhost" (port 443).

You have administrator privileges for Virtual Hub 'default' on the VPN Server.

VPN Server/default>hubcreate
HubCreate command - Create New Virtual Hub
Name of Virtual Hub to be created: test-hub

Please enter the password. To cancel press the Ctrl+D key.

Password: ****
Confirm input: ****


Error occurred. (Error code: 52)
Not enough privileges.
VPN Server/default>hubcreate
HubCreate command - Create New Virtual Hub
Name of Virtual Hub to be created: test-hub

Please enter the password. To cancel press the Ctrl+D key.

Password:
Confirm input:


Error occurred. (Error code: 52)
Not enough privileges.
VPN Server/default>

shakibamoshiri
Posts: 288
Joined: Wed Dec 28, 2022 9:10 pm

Re: Weird permissions issue?

Post by shakibamoshiri » Tue Nov 14, 2023 7:00 am

For the first time after setup, there is no password for the admin user, just hit Enter and enter the prompt
Then you can set a password while you are in
Next time you try to login, then you should enter the password your set

sample

Code: Select all

 # first time set the password
./vpncmd localhost:443 /SERVER /PASSWORD: /CSV /CMD ServerPasswordSet 7vUiCe2c6pjSNJo0;

# then with that password you set, you can do what ever you need
# here I delete the default hub
./vpncmd localhost:443 /SERVER /PASSWORD:7vUiCe2c6pjSNJo0 /CSV /CMD HubDel DEFAULT;

Post Reply