How do I access a file in a plugin's jail?

Status
Not open for further replies.

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Hi all,

The developer of a plugin I use 'Mylar' has just asked me if I can provide him with the Mylar.db file so he can help me troubleshoot an issue I am having.

Unfortunately with my limited knowledge of Unix, I'm not sure how to access that file and send it to him.

Can anyone help?

Cheers
 
Last edited:

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Thanks for that.

Unfortunately, part of what I am having difficulty with, regarding accessing files via shell, prevents me accessing via SSH as well.

'To start the SSH service, look for the following line in that jail’s /etc/rc.conf:'

What exactly am I supposed to be doing here?

Sorry, my knowledge of Unix is primary at best :(
 
D

dlavigne

Guest
You have to open the file in an editor to make the change. Try using the easy editor: ee /etc/rc.conf.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
All I get when I run 'ee /etc/rc.conf.' from my plugins jail is the below screenshot

Something doesn't seem right
 

Attachments

  • Shell.jpg
    Shell.jpg
    43.6 KB · Views: 954
D

dlavigne

Guest
OK then, insert this line:

sshd_enable="YES"

and save the change.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Okey dokey, so after a fair amount of tinkering about, I can now SSH into my Freenas box using Putty

I have literally no idea what to do next :D
 

Attachments

  • Putty.jpg
    Putty.jpg
    43.3 KB · Views: 895

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
It's easier to just copy out the file you need using an FTP client.
 
D

dlavigne

Guest
Try winscp, it has a nice double-pane graphical view where you can drag and drop files between systems.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Would you mind explaining how I would do that Jailer?

You've already got SSH turned on so all you need is an FTP client. Use the SFTP protocol and log in with your root credentials and browse to the directory where the file is located.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Thanks dlavigne and Jailer

I have managed to grab the file I was after via Filezilla :)

One last question. When I SSH in to my Freenas box, it defaults to showing a folder called root, which only seems to contain the contents of the plugin jail I added the ssh commands to

I can still see all the other folders and files however, if I go up one level. Is this normal behaviour? and what would happen if I followed the same process with other jails? would their contents all end up in the same 'root' folder

I'm also wondering what the point of adding the new user was? (as suggested in the Freenas manual) as I needed to ssh in as root
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
You're better off logging in as a user (SSH) and switching to root after you log in. Logging in as root locally isn't a big deal but I wouldn't suggest enabling it for remote log in.

That's standard behavior for logging in via FTP BTW.
 
Status
Not open for further replies.
Top