89

To reset the admin password of SolusVM I am executing the following command:

php /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=<ADMINUSERNAME>

When doing so, the following error message is printed:

-bash: syntax error near unexpected token `newline'

What is the reason for this problem? I am running the command as root.

iFreilicht
  • 13,271
  • 9
  • 43
  • 74
Jonathan.V
  • 918
  • 1
  • 7
  • 8

1 Answers1

129

The characters '<', and '>', are to indicate a place-holder, you should remove them to read:

php /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=ADMINUSERNAME
Terence Simpson
  • 4,440
  • 2
  • 20
  • 18
  • 3
    And in case you really need the angle brackets, you should wrap the value within quotes, as e.g. in `git commit --author="John Doe "`. – fedelibre Sep 12 '18 at 10:06
  • I cannot remove them since I am using them for `nohup: nohup ipfs daemon --enable-gc --routing=none >> ~/.ipfs.out 2>&1 &!` – alper Apr 19 '22 at 21:56