LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2008, 01:30 PM   #1
ciden
Member
 
Registered: Dec 2006
Location: New Delhi, India
Distribution: PCLinuxOS 2010
Posts: 246
Blog Entries: 1

Rep: Reputation: 31
How to make files hidden from windows when using linux.?


Windows files have the options/flags-
Read-only
Hidden
Archive
system


How can I set these file options using a linux OS.
I have a thumb drive containing files that I want to remain hidden when viewed on a windows xp machine. How do I set the windows hidden flag on files I create on linux?
 
Old 05-16-2008, 02:15 PM   #2
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
If you want to use the GUI, you can pretty much do the same thing. Just right click on the folder you want to hide, click the permissions tab, and select "None" in the access windows. They will not be available on the network.

Regards

Bob
 
Old 05-16-2008, 02:30 PM   #3
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
If you have the mtools installed you can use mattrib for DOS files.

http://man.he.net/man1/mattrib
 
Old 05-16-2008, 02:33 PM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
BobNutfield, that won't work on a FAT file system, which is what the thumbdrive is probably using, and even if it worked it has nothing to do with the question asked.

If I understand it correctly, he wants to mark some files on the (FAT32) thumbdrive as hidden. When he plugs the thumbdrive into a computer running Windows, he wants those files to be considered hidden.

I'm not familiar with how to do this. Obviously, the way to make a file hidden when the thrumbdrive is plugged into a Linux computer is to begin the file name with ".". However, this is completely unrelated with the way it's done by Windows.

(edit: added Oh, apparently it's done with mattrib. Thanks, bsdunix!

Last edited by IsaacKuo; 05-16-2008 at 02:34 PM.
 
Old 05-16-2008, 02:53 PM   #5
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
Quote:
BobNutfield, that won't work on a FAT file system, which is what the thumbdrive is probably using, and even if it worked it has nothing to do with the question asked.
OK, thanks for correcting me. I suppose I didn't understand the question. However, I will tell that when I apply no access to a folder on my home network, that folder is not visible to my Windows machines. That is what I understood the question to be. I apologize for the confused post.

Bob
 
Old 05-19-2008, 02:17 AM   #6
ciden
Member
 
Registered: Dec 2006
Location: New Delhi, India
Distribution: PCLinuxOS 2010
Posts: 246

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Thank you for the info BSDUnix.
I installed mtools and mattrib works for me.
I still have to check my files on a windows machine though.

Thanks to you too BobNutfield, for taking the time to answer.
Your answer pertains to a networked environment, I suppose.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make find exclude hidden files (.files) Rotwang Linux - General 2 08-08-2011 03:58 AM
How to hide Windows hidden files in Linux Beauford-2 Linux - Server 1 02-27-2007 06:02 PM
How to make .foo files hidden in Windows underdawg General 2 09-23-2005 03:49 PM
Windows XP Hidden files on a DVD Universalpsyko Linux - Newbie 2 02-01-2005 01:31 PM
Can't see hidden files burned with Windows KTLiberty Linux - General 23 09-18-2004 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration