Skip to main content
edited title
Link
ilkkachu
  • 148k
  • 16
  • 268
  • 441

Unexpected operator Getting an "unexpected operator" error when logging in on a new account creation?

Became Hot Network Question
edited tags
Link
Kusalananda
  • 356.1k
  • 42
  • 737
  • 1.1k
improved formating
Source Link
steeldriver
  • 83.9k
  • 12
  • 124
  • 175

I am relatively new to Linux, but my background is as a network monkey, so I'm used to the CLI.

I just installed Debian onto a Libre Renegade and that went quite smoothly. So far I have had to alter the the grub at /etc/default/grub in order to change the default resolution due to the hardware I am using.

I then created a new user account using this command:

useradd -m -p password thescaryjello

useradd -m -p password thescaryjello 

After that I ran the following commands to create an admins group and add the new account to that group and the sudo group.

groupadd admins usermod -aG admins thescaryjello usermod -aG sudo thescaryjello

groupadd admins usermod -aG admins thescaryjello usermod -aG sudo thescaryjello 

However, when I log in as the new account I receive the following message :

-sh 29 [: tty: unexpected operator

-sh 29 [: tty: unexpected operator 

Additionally, it doesn't display the username or host name prior to the $.

Any advice as to what might have caused this or where I should look for more information in the system would be greatly appreciated. Any linux or best practices advice would be lovely. Thank you all in advance.

I am relatively new to Linux, but my background is as a network monkey, so I'm used to the CLI.

I just installed Debian onto a Libre Renegade and that went quite smoothly. So far I have had to alter the the grub at /etc/default/grub in order to change the default resolution due to the hardware I am using.

I then created a new user account using this command:

useradd -m -p password thescaryjello

After that I ran the following commands to create an admins group and add the new account to that group and the sudo group.

groupadd admins usermod -aG admins thescaryjello usermod -aG sudo thescaryjello

However, when I log in as the new account I receive the following message :

-sh 29 [: tty: unexpected operator

Additionally, it doesn't display the username or host name prior to the $.

Any advice as to what might have caused this or where I should look for more information in the system would be greatly appreciated. Any linux or best practices advice would be lovely. Thank you all in advance.

I am relatively new to Linux, but my background is as a network monkey, so I'm used to the CLI.

I just installed Debian onto a Libre Renegade and that went quite smoothly. So far I have had to alter the the grub at /etc/default/grub in order to change the default resolution due to the hardware I am using.

I then created a new user account using this command:

useradd -m -p password thescaryjello 

After that I ran the following commands to create an admins group and add the new account to that group and the sudo group.

groupadd admins usermod -aG admins thescaryjello usermod -aG sudo thescaryjello 

However, when I log in as the new account I receive the following message :

-sh 29 [: tty: unexpected operator 

Additionally, it doesn't display the username or host name prior to the $.

Any advice as to what might have caused this or where I should look for more information in the system would be greatly appreciated. Any linux or best practices advice would be lovely. Thank you all in advance.

Source Link
Loading