Trying to browse into iocage in Shell but get permission denied at every folder level

rebo00

Dabbler
Joined
May 29, 2020
Messages
24
Hi,
OS: FreeNAS-11.3-U2.1
I open Shell > logs in as root > type /mnt > enter > zsh: permission denied: /mnt
I understand that root has been removed from accessing anything via shell and that /mnt isn't accessible anyway, ok.
I open Shell > login > admin and password > type /mnt/***STORAGE POOL NAME***/iocage/jails/jail name/ > /mnt/***STORAGE POOL NAME***/iocage/jails/jail name/: Permission denied
I get this with any folder in the entire structure.
I need to get into the Databases folder to run a command and backup some files.
Any ideas?
Regards,
Andy
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
How about open shell as root, type cd /mnt/***STORAGE POOL NAME***/iocage/jails/jail name<CR> ?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Have you tried the Shell button for the jail itself?

1591016460470.png
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Hi,
OS: FreeNAS-11.3-U2.1
I open Shell > logs in as root > type /mnt > enter > zsh: permission denied: /mnt
I understand that root has been removed from accessing anything via shell and that /mnt isn't accessible anyway, ok.
I open Shell > login > admin and password > type /mnt/***STORAGE POOL NAME***/iocage/jails/jail name/ > /mnt/***STORAGE POOL NAME***/iocage/jails/jail name/: Permission denied
I get this with any folder in the entire structure.
I need to get into the Databases folder to run a command and backup some files.
Any ideas?
Regards,
Andy
Your just using the wrong commands. Need to use cd.
 

rebo00

Dabbler
Joined
May 29, 2020
Messages
24
How about open shell as root, type cd /mnt/***STORAGE POOL NAME***/iocage/jails/jail name<CR> ?
This, don't know how I didn't find anything on that.
So what does just typing the directory in without cd actually try to do?
Thanks for the replies, appeciated.
Regards,
Andy
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
This, don't know how I didn't find anything on that.
So what does just typing the directory in without cd actually try to do?
Thanks for the replies, appeciated.
Regards,
Andy
It tries to execute it like a program. First thing in the cmd is almost always a program of some kind.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
This, don't know how I didn't find anything on that.
Once you have arrived at your destination directory using "cd" (change directory), then "ls" to list contents. I suggest that you look at the FreeBSD man pages for the commands for clarification on them.
 
Top