Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hide folder(s)

Status
Not open for further replies.

roeiboot

Technical User
Feb 10, 2002
241
US
oi,

i'm using Pro-FTP server on Linux 7.1, is there a way to hide certain folders for the the FTP users ??
 
i don't have a ect/ftpaccess at all... and yet the ftp server works.
 
i wanna hide the default "Desktop" folder that is created by RH. i am 'jailing' the users in their own home-dir by the way.. everything manually since i still don't get the group stuff :]
 
You don't have to jail everyone manually. Just use the directive &quot;DefaultRoot ~&quot; in the <Global>...</Global> context and everyone is jailed. If you have a userid named &quot;foo&quot;, and you want that user to not be jailed, change the line to read &quot;DefaultRoot ~ !foo&quot;.


Anyway, the Desktop is created by KDE. If your users use the KDE GUI, then they're going to have to have access to it then.

Here's one way: Create a group called &quot;noshow&quot;. Set ownership of the Desktop directory to that group, but leave the user ownership alone. In proftp.conf, add an entry that reads something like:
<Directory /*>
HideGroup noshow
</Directory>

In the <Global>...</Global> section add:
<Limit ALL>
IgnoreHidden on
</Limit>

Restart proftpd. ______________________________________________________________________
TANSTAAFL!
 
that didn't work (yet)... if the directory is only used by people using the KDE GUI i might as well delete the dir correct.. all those users are FTP only users.

still i don't get the whole group thing from Linux :]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top