You can hide directories/files by changing the upload directive in
/etc/ftpaccess. For ex. 

upload  /var/ftp  /incoming       yes  root  daemon  0400

All files uploaded to the directory incoming will have the permission
400 and will be owned by user root. Since root usually don't have
permission to browse from an ftp client and the rest of users have zero
permissions you cannot see any file you upload (actually with 400 you
cannot download files even if you know its name).


Fernando

> 
> I don't know how it works or how to set it up but I know I've 
> seen ftp servers
> hiding directories like you describe ( I'm guessing the ls is 
> the one from
> inside ftp).  When I've seen this before it was applied to a 
> single directory
> as a security feature.  You could tell someone the filename 
> and they could go
> get it but the casual browser wouldn't find it.  Could it be 
> that your ftp
> server setup has this hiding set for / ?
> 
> On Wed, 15 Mar 2000, Glynn Clements wrote:
> > Bruce McAlister wrote:
> > 
> > > When i login to the box i loginf as bruce and the 
> password for user bruce.
> > > This is all fine, when i do a pwd it shows me root (/). 
> But when i do an ls
> > > in the directory it displays nothing. I can cd to the 
> directory structure
> > > under /home/ftp/pub/bruce and i can upload and download 
> files, but i cannot
> > > see anything when i login and do an ls or anything, it is 
> as if the
> > > directories dont exist, i tried using different ftp 
> clients but still
> > > nothing. It is asif it is disallowing the display of 
> anydirectory listings
> > > or contents of any of the directories. 
> > 
> > It sounds as if you don't have a suitable "ls" program available as
> > "/bin/ls", relative to the pseudo-root directory. Note that the "ls"
> > program has to be statically linked, unless you also install the
> > necessary shared libraries, dynamic linker, config files etc.
> > 
> > -- 
> > Glynn Clements <[EMAIL PROTECTED]>
> > 
> > -
> > To unsubscribe from this list: send the line "unsubscribe 
> linux-net" in
> > the body of a message to [EMAIL PROTECTED]
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-net" in
> the body of a message to [EMAIL PROTECTED]
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to