The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > BSD
Google UNIX.COM


BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to mount a file system of a remote machine to local file system cy163 UNIX for Dummies Questions & Answers 2 01-31-2008 05:04 AM
How to find a file whick is consuming larger disk space in file system lokeshpashine UNIX for Dummies Questions & Answers 3 01-04-2008 01:26 PM
Migrating password file to new freebsd server rbizzell BSD 0 09-16-2006 09:32 AM
Installing FreeBSD on old system? MadProfessor UNIX for Dummies Questions & Answers 2 12-25-2003 01:48 PM
How do I send a file as an attachment (gzip file) on a Unix system lacca UNIX for Dummies Questions & Answers 3 07-03-2002 10:04 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-17-2008
Registered User
 

Join Date: Apr 2008
Posts: 1
Stumble this Post!
Exclamation FreeBSD Stackable File System

how can we create a folder invisible to the userspace, i.e no flavor of "ls" should be able to retrieve it, it should exist and we should be able to work with it like any other folder.

Specifically, hat changes do we need to make in the kernel... I am thinking of a whiteout entry but not sure how to implement it.

Please Help.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-18-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,160
Stumble this Post!
Can you tell us what is the purpose on that ? Because, for example, if I create a folder, as root, like : "mkdir -p /home/users/testFolder", chown it for example with "chown user:user /home/users/testFolder", make "chmod -R 700 /home/users/testFolder" no one else besides root will be able to ls it. For other purposes, you can use BSD jails, here's an article on Wikipedia and an article at FreeBSD's site on what is beneath the technology.
Reply With Quote
  #3 (permalink)  
Old 04-22-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,099
Stumble this Post!
I too would like to express that i wonder what the purpose of such a directory should be.

What you can do is: create a directory with filemode 700 like sysgate has told you. Only the owner (and root) can "ls" its contents. Now create a directory inside it with also filemode 700. Nobody will be able to find out about its existence because listing the contents of the parent directory is not possible.

I hope this helps.

bakunin
Reply With Quote
  #4 (permalink)  
Old 04-30-2008
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Stumble this Post!
Quote:
Originally Posted by warrior1234 View Post
how can we create a folder invisible to the userspace, i.e no flavor of "ls" should be able to retrieve it, it should exist and we should be able to work with it like any other folder.

Specifically, hat changes do we need to make in the kernel... I am thinking of a whiteout entry but not sure how to implement it.

Please Help.
Hi,
Instead of "looking for the magic tricks", another alternative could be to use encryption and there are lots of them, one is: gpgdir - Recursively encrypt and decrypt directories (that i just came across today )
But just dont stop there, do explore the darkest of areas and share them with us ...
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0