RE: to hide file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> The trick with mountpoint works in Linux. But that trick does not give
> you the exact equivalent of hidden files as they usually exist in DOS

Actually, I have used this "feature" in a custom script at one of my
sites...   The users have a simple script to mount their directory to a
mount point in their homedir.  said directory contains one file, named
"unmounted"...  The script simply -e's the directory.  Great help that
was, to be sure. :)

-G





-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]
On Behalf Of A.Fadyushin@xxxxxxxxxxxx
Sent: Monday, August 29, 2005 5:24 AM
To: redhat-list@xxxxxxxxxx
Subject: RE: to hide file



> -----Original Message-----
> From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-
> bounces@xxxxxxxxxx] On Behalf Of Dave Ihnat
> Sent: Monday, August 29, 2005 4:08 PM
> To: General Red Hat Linux discussion list
> Subject: Re: to hide file
> 
> On Mon, Aug 29, 2005 at 11:52:08AM +0400, A.Fadyushin@xxxxxxxxxxxx
wrote:
> > There is no special 'hide' property for files or directories in
Linux
> > filesystem. Therefore, the filesystem will always report to
application
> > every file in the directory.
> 
> Oh, there are tricks that have been used for decades in Unix that will
> still work in Linux.  For instance, create a directory as a
mountpoint;
> put some files and directories in it, then mount an filesystem over
it.
> I believe that still works in Linux.
> 
> Another trick used to be to remove the actual ".." directory entry
with
> an entry that really points off to another directory; this was called
a
> 'hyperspace link'.  I don't know if that still works, but it's an
example
> of the kind of things crackers _can_ do to hide files and directories.
> --
> 	Dave Ihnat
> 	ignatz@xxxxxxxxxx
> 
> --

The trick with mountpoint works in Linux. But that trick does not give
you the exact equivalent of hidden files as they usually exist in DOS
and Windows. In those systems you always can access hidden file if you
know its name, but you can not see it - the system will not report the
presence of the file in the filesystem. In contrast, when you hide files
behind a mountpoint, the files become inaccessible for future open
calls, only files which were open before mount will be accessible for
processes which opened them. You will not see the hidden file(s) (as in
DOS/Windows) but you will not be able to open it even if you know its
name (unlike DOS/Windows).

As far as I know there is no way in Linux filesystem to receive the same
behavior for hidden files as in DOS/Windows (the usual '.' in the
beginning of file name is not a filesystem feature, it is a feature of
application which support it).

Alexey Fadyushin.
Brainbench MVP for Linux.
http://www.brainbench.com


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux