LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2014, 07:10 AM   #1
mfatih
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Rep: Reputation: Disabled
Connecting to specific directory with Filezilla


Hello, I have an embedded linux device. I can connect to the device and I can upload or download files. No problem with this. But, at first connection, I want to connect to "/" directory instead of "/root". In the device file system, there are files ssh_config and sshd_config under /etc/ssh directory. I think I have to do something with these files but I don't know what.

I don't exactly know what mean "/root" and "/" directories. I think that the real root directory is "/" directory which is empty but when I connect with filezilla, the "/root" directory is the default so I had to go back to / directory everytime.
 
Old 12-23-2014, 12:20 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
/ is the very top of the directory. /root is the home directory of the user called "root" who is the ultimate superuser. My username is jdkaye so my home directory is /home/jdkaye
Code:
root@AttilaII:/usr/bin# cd ~
root@AttilaII:~# pwd
/root

jdkaye@AttilaII:/usr/bin$ cd ~
jdkaye@AttilaII:~$ pwd
/home/jdkaye
Got it?
jdk

Last edited by jdkaye; 12-23-2014 at 12:22 PM.
 
Old 12-23-2014, 03:17 PM   #3
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
Quote:
In the device file system, there are files ssh_config and sshd_config under /etc/ssh directory. I think I have to do something with these files but I don't know what.
What proctocol are you connecting with? ftp?

sshd & ssh refer to the ssh protocol.

In any case, those would not be the correct file to alter as they deal with how the connection is made, not what directory you login to.

Most likely the program that needs to be adjusted is filezilla as it is making the connection and specifying what directory it wants. I have never used it so I can't help you with that.

Last edited by Miati; 12-23-2014 at 03:18 PM.
 
Old 12-23-2014, 04:04 PM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,163
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
Site Manager...

Last edited by Habitual; 06-26-2015 at 06:47 PM.
 
Old 12-24-2014, 06:51 AM   #5
mfatih
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Miati View Post
What proctocol are you connecting with? ftp?

sshd & ssh refer to the ssh protocol.

In any case, those would not be the correct file to alter as they deal with how the connection is made, not what directory you login to.

Most likely the program that needs to be adjusted is filezilla as it is making the connection and specifying what directory it wants. I have never used it so I can't help you with that.
Thank you for your answer. I realized that the protocol was ftp as you said.

At Filezilla's side, remote directory can be adjusted as in the image Habitual posted.
 
1 members found this post helpful.
Old 12-24-2014, 12:01 PM   #6
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
Since the device supports ssh, I would consider using it if you're ever inclined, especially if you have a basic understanding of the terminal.

Ssh let's you do some pretty amazing stuff all while remaining fully encrypted.
 
Old 01-13-2015, 02:38 AM   #7
mfatih
LQ Newbie
 
Registered: Dec 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
I found a file in /etc directory. File name was passwd. I changed the first line from:

root:x:0:0:root:/root:/bin/sh

to

root:x:0:0:root:/:/bin/sh

then, what I desired happened. I think I changed the home directory of user called root. I don't know if it caused a problem but it was a solution.

Thanks to all for all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find specific named directory while excluding specific named directory sharky Linux - Newbie 6 01-17-2014 12:29 PM
Permission on specific Directory / File to specific group AbidDhanaiser Linux - Desktop 1 08-28-2013 04:38 AM
Filename completion in a specific directory for a specific command using tcsh Leo Simon Linux - Software 3 12-29-2012 11:44 AM
Copy a directory into another directory while ignoring specific directories or files wh33t Linux - Newbie 14 05-16-2012 09:13 PM
Searching a specific directory for a specific extension? RoaCh Of DisCor Linux - Newbie 3 08-13-2005 04:28 PM


All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration