Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 5th September 2011, 18:44
frontier frontier is offline
Junior Member
Join Date: Sep 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SFTP as root gives me access to /root/

Hi guys,

When I SFTP to my server (using the root account I SSH with to set everything up) it lands me in a /root/ folder with .bash_history, .bash_logout, .bash_profile etc. I was hoping I would see the root directory (/bin /boot /dev /etc and so on). The idea is that (as web admin) I want to be able to move stuff between my client sites, which are located in /srv/www/client1/ for each user. Down the line I will set them up with FTP accounts that limit access to their folder.

Is the /root/ folder my "home directory" and - if yes - can I change it to the base directory of the server? Is this usual behaviour or could it be a problem with my SFTP client?

I'm running CentOS 5.6.


Reply With Quote
Sponsored Links
Old 6th September 2011, 11:50
Ben Ben is offline
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts

As sftp is based on ssh (don't mix it up with ftps which is ftp encrypted with ssl/tls) it points you to the user's homedir you logged in with, in this case root.

So that is fine.

Depending on what you want to do (how specific these "moves" are and how often you need to repeat / sync it) you might either think about user based ftp(s) or you check if rsync can help you here.
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quota Exceeded errors IKShadow Installation/Configuration 14 20th January 2011 17:39
ISPConfig 2 Upgrade pineapple General 53 23rd June 2010 17:25
index.html make eror planet_fox Installation/Configuration 46 28th March 2007 10:10
mod_proxy / rewrite rules KenKnight Server Operation 25 30th January 2007 23:21
cannot connect to ispconfig guidovanh Installation/Configuration 22 3rd March 2006 20:52

All times are GMT +2. The time now is 14:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.