Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 1997 11:37:13 -0800 (PST)
From:      Thomas Dean <tomdean@ix.netcom.com>
To:        bill@duey.interlinks.net
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Hidden Files
Message-ID:  <199711171937.LAA00729@ix.netcom.com>
In-Reply-To: <Pine.BSF.3.96.971117134043.279A-100000@duey.interlinks.net> (message from Bill Sandiford on Mon, 17 Nov 1997 13:41:49 %2B0000 (GMT))

next in thread | previous in thread | raw e-mail | index | archive | help
A filename that starts with '.' is not normally displayed thru the ls
command or shell expansions of file names.  Look at 'man ls'.  This does not control access to the file or prevent someone from seeing the file with the ls command or special shell expansions.  Try this:
  ls
  ls -a
  echo *
  echo .*

What do you really mean by 'hide files', deny access?  If so, look at
'man chmod' or get a basic Unix user's guide or script user's guide.
O'Reilly puts out a couple of good ones.  You can deny access to
directorys or files by permissions on files.  Look at group membership
and file permissions.  'man group'.

One way to 'hide' files is to put them into a directory that only the
owner has read access.  That way, no one other than the owner can see
the files.  If the directory name starts with '.', then the default ls
command and shell expansions will not see the directory.  No one other
than the owner or someone with root permissions can see the files in
the directory.

tomdean



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711171937.LAA00729>