SOLVED terminal commands like cd and rm no longer work in truenas scale?

taltamir

Dabbler
Joined
Aug 2, 2022
Messages
28
I am trying to delete a massive folder that has so many files that windows explorer crashed when it tried to ever so slowly delete it via GUI as a mapped network drive. (windows explorer is really bad at deleting files. it first takes literally an hour to build a list of every single file and folder in the destination BEFORE it even attempts to do any work. super inefficient)

In the past in such a scenario I would use the built in web terminal or better yet putty (because the web terminal just halts the operation the moment you navigate away, close the page, or 15 or some minutes pass. while putty continues until it finishes).

However, what worked in the past no longer does. I can login, but i am told that the commands cd and rm do not exist.
Any idea on why it is doing that and how to reaccess those commands?

edit:
solved. here is the fix
It seems like your shell for the admin user is defaulting to the TrueNAS CLI rather than zsh - you can change this under Credentials -> Edit User.

View attachment 73720
 
Last edited:

taltamir

Dabbler
Joined
Aug 2, 2022
Messages
28
I noticed there is an error in putty on login mentioning /nonexistent
which I recall is used for home directory.

I went ahead and created a home directory. this prevented the error on login in putty.
but it did not resolve the issue.
I am still unable to use cd or rm. sudo does not exist either.

ls exists and is showing... something.
I have no idea what it means though.
attached is the picture showing the exact errors
 

Attachments

  • Capture.PNG
    Capture.PNG
    19.6 KB · Views: 65
Last edited:

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
You are in the wrong place. You are in the CLI rather than the shell
 

taltamir

Dabbler
Joined
Aug 2, 2022
Messages
28
You are in the wrong place. You are in the CLI rather than the shell
Thank you for the help.

Truenas says I am in the shell, as per attached image.
Capture.PNG
TrueNas might be using the wrong term there...

Well, How do I make it so that putty goes into shell instead of a shell-less CLI?
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Dunno why its going into the CLI in the first place. Shouldn't be happening
 

taltamir

Dabbler
Joined
Aug 2, 2022
Messages
28
Dunno why its going into the CLI in the first place. Shouldn't be happening
that is weird...

I have a thought.
originally I created this server way back when I scale was still in beta and I was forced to login as root via the web gui.
about a month ago I enabled the ability to login to the web gui via a named user account (with admin privilages) and disabled the ability to login as root.
Could this have caused this issue maybe?
or am I barking up the wrong tree?
 
Top