Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Sep 23, 2012 4:32 am 
Offline
Junior Member
User avatar

Joined: Mon Sep 17, 2012 4:33 am
Posts: 43
Website: http://www.bonsoni.com
Does anyone know how to hide the root+system folders on ftp?

Basically I would like to hide the root+system folders except the public folder. So when I sign in I will see the public directory only.

_________________
Ubuntu 10.4 LTS, Apache2, LAMP, n00b

Online Shopping


Top
   
PostPosted: Sun Sep 23, 2012 5:26 am 
Offline
Senior Member

Joined: Tue Aug 14, 2012 5:55 pm
Posts: 82
If you have logged in with a user who has the root access. you will be able to browse through everything.


Top
   
PostPosted: Sun Sep 23, 2012 7:33 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
The following should do the trick: http://library.linode.com/security/sftp-jails

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Sun Sep 23, 2012 9:52 am 
Offline
Junior Member
User avatar

Joined: Mon Sep 17, 2012 4:33 am
Posts: 43
Website: http://www.bonsoni.com
hoopycat wrote:
The following should do the trick: http://library.linode.com/security/sftp-jails


I was looking for a simpler solution, like tick box somewhere to hide/unhide files/folders. (just think about view>hidden file option on your linux/windows computer)

_________________
Ubuntu 10.4 LTS, Apache2, LAMP, n00b

Online Shopping


Top
   
PostPosted: Sun Sep 23, 2012 11:06 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
So that you don't see them, or so that other users can neither see nor access them?

The first would be a function of your client. You might be able to set up your client to plop you straight into the directory you want to be in.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Sun Sep 23, 2012 11:57 am 
Offline
Junior Member
User avatar

Joined: Mon Sep 17, 2012 4:33 am
Posts: 43
Website: http://www.bonsoni.com
hoopycat wrote:
So that you don't see them, or so that other users can neither see nor access them?

The first would be a function of your client. You might be able to set up your client to plop you straight into the directory you want to be in.


Yap I will do this if I don't find any "hide folders" option on the server.

The reason I would like to do this is:

1. I have a history of dragging folders to another accidentally while using ftp.

2. Will save time to go straight to the public folder.

3. Yet - if I want to have a look what's happening on the root folders I will just "unhide" and investigate

_________________
Ubuntu 10.4 LTS, Apache2, LAMP, n00b

Online Shopping


Top
   
PostPosted: Sun Sep 23, 2012 11:59 am 
Offline
Senior Member

Joined: Wed Jun 27, 2012 10:00 pm
Posts: 87
Website: http://hemonc.org/wiki/Main_Page
minerva wrote:
Basically I would like to hide the root+system folders except the public folder. So when I sign in I will see the public directory only.

I think you'll need to create a separate account and restrict folder permissions accordingly so that account won't have read access to root/system, but will have all of the access you wish to the public folder.

However, if you just want to avoid certain folders, I think changing the default directory of the client is a reasonable solution.

_________________
Amateur, eager to learn.
My hematology, oncology, and chemotherapy regimen wiki


Top
   
PostPosted: Sun Sep 23, 2012 1:59 pm 
Offline
Junior Member
User avatar

Joined: Mon Sep 17, 2012 4:33 am
Posts: 43
Website: http://www.bonsoni.com
yaz wrote:
I think you'll need to create a separate account and restrict folder permissions accordingly so that account won't have read access to root/system, but will have all of the access you wish to the public folder.


So I will just make a new "xyz" user and he will only have access to the "public_html" folder.

If there is anything require to investigate the root will login using ftp and have a look, right? quite like this idea.

I know how to make a new user but what is the command to restrict the new user's accessibility except the public_html?

_________________
Ubuntu 10.4 LTS, Apache2, LAMP, n00b

Online Shopping


Top
   
PostPosted: Sun Sep 23, 2012 2:39 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
minerva wrote:
2. Will save time to go straight to the public folder.

Pretty much ANY FTP Client will have a "default folder" setting to allow you to set what the remote folder is when connected.

And you should NOT be using FTP at all, it's highly insecure, you should be using SFTP, which is a subset of SSH.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Sun Sep 23, 2012 3:12 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
minerva wrote:
I know how to make a new user but what is the command to restrict the new user's accessibility except the public_html?


http://library.linode.com/security/sftp-jails

I do assume that, by FTP, you meant SFTP. (This should be a very safe assumption, since it is 2012, but you never know...)


Top
   
PostPosted: Tue Sep 25, 2012 5:50 am 
Offline
Junior Member
User avatar

Joined: Mon Sep 17, 2012 4:33 am
Posts: 43
Website: http://www.bonsoni.com
hoopycat wrote:

I do assume that, by FTP, you meant SFTP. (This should be a very safe assumption, since it is 2012, but you never know...)


Thanks for the link hoopy. Much appreciated.

_________________
Ubuntu 10.4 LTS, Apache2, LAMP, n00b

Online Shopping


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group