Hidden and hiding files and folders

how do I hide or unhide hidden files or folders??
I have a directory that I want to hide so that other people can't see it or get access to it. (or at least limit the people who can see it and get access to it.) How do I set it up to protect that directory and any file that goes into it?
cuz...I have two separate accounts (lets say....x and y) and I want only x and y and root to be able to have access to (e.g.) /home/directory
What command do I use to make it a "hidden file/folder"? (well..the Solaris equilvalent to a Windows hidden file or folder)

The option of changing the permisions is a better solution for what you want to do.
For completeness sake, the way to hide/unhide directories,files etc. in UNIX is by starting the name with a ".".
This does however not restrict access to the resource in any way , it just hides it from directory listings etc. Most tools/file managers etc. have an option to "show hidden files/directories" which negates its use as a security mechanism.
You will find that a lot of applications store their configuration information in directories starting with "." as is the case with netscape which has a ".netscape" directory off your home directory. It does serve the purpose of keeping it out of the way as it is not generally visible while still easily accesable.
The same holds true for WinTel "hidden" directories/files, in explorer they just show up as a lighter shade ( grayed out) but are still accessable like any other directory.
Hein

Similar Messages

  • My external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive. Same thing has happened with Final Cut Express.

    My new LaCie external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive.
    The same thing happened recently between Final Cut Express and my other LaCie external hard drive used as the Scratch disk. It fixed itself.
    I've run out of ideas. Help would be very much appreciated. Thanks.

    have you done some searches on FCPx and time machine? Is there a known issue with using a TM drive with FCPx? dunno but ...wait...I'll take 60 sec for you cause I'm just that kind of guy....   google...." fcpx time machine problem"  Frist page link 
    http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard- drives-and-final-cut-pro-x/
           You cannot have time machine backups on your hard drive if you intend to use it in FCPX.
    booya!

  • Drag and drop files into folders in iPad reader? or iTunes?

    is it possible to drag and drop files into folders in iPad reader? or iTunes?  It is very clunkey to have to click each separate file to instruct it to move to the folder.  Better still, can I just sync an existing folder on my hard drive so the pdf's inside always remain up to date on my iPad?

    There is no way to drag and drop in Reader on an iPad.
    There is no way to sync PDFs in a folder on your hard drive to those inside of Reader.
    There are readers (which are NOT free) which let you do some of these things and have more capabilities. You might check out PDF Expert from Readdle which costs $9.99 US.

  • .HTML and .DWT files in folders have 0kb size

    Hey guys,
    I was just setting up a new client on the system and I have an issue with uploading HTML and DWT files through Dreamweaver.  The files end up on the server but each is a 0kb file.  Here are my steps:
    In Partner Portal I created a new site
    I chose to start with a blank slate/template
    I logged in via Dreamweaver CS5's BC Extension as I normally do and set the local directory of the project
    I was moving a static HTML site over to this site so the design and files were done already. So once the project was setup in DW I selected all the files in the project folder and uploaded them to the remote site via the Files panel in DW.
    The upload completed and did not note any errors or problems.
    I logged into the BC Admin and went to update some URLs of the pages and I noticed the first .html file in a folder had 0kb.
    I noticed that this problem only occurred in files that are uploaded to a folder. IE- I had a folder called "contact" and a file index.html inside.  I uploaded this folder and the rest via the Files panel in DW. I DID NOT create the folders through BC first.  The same thing happens with .DWT files too.  Although, in this case, since I had a "Templates" directory locally and I'm assuming one was created by BC on the remote host when I created the account it's probably not having to do with users creating folders through FTP/Files panel in DW.
    The .html files in the root of the site are fine. All my JS and CSS files in their folders are also fine.  It just seems to be .HTML and .DWT files in folders that have 0kb.
    Has anyone seen this? 
    I have to get this site live in a rush tomorrow so I'm either going to delete the folders via FTP and create all the pages/folder first in BC and copy and paste the code over from DW to BC Admin area manually.  I'm not excited about doing that as it will add hours onto this site when moving a static site over should be pretty quick.  Now I have to create all the pages and templates manually.

    I can now confirm that the problem is related to DW or the DW FTP login session. I used WinSCP to FTP my files up and they went up fine.

  • Unable to drag and drop files or folders

    Hi
    I'm unable to drag and drop files or folders. I can't drag from a folder to desktop, I can't drag from finder. I can't move files around. I can't drag from itunes into ipod.
    I've run Onyx and disk permission repair, cleaned all caches etc, all to no avail.
    Get info tells me I have read and write permissions.
    Can someone please help me.
    Thanks

    I'm having the same problem, the terminal command to make that testfile worked, guess its a good sign but i wouldn't know, I also have a couple of extra problems:
    It started with VisualHub saying "Critical componats of Mac OS X are missing or damaged on your system, Without them, VisualHub is unable to continue. The affected componats is/are: - /tmp Temporary Directory. Try Repairing Permissions using Disk Utility"
    So i did that using OnyX, rebooted, still didn't work, so i remember hearing about how reinstalling .3 of 10.5.3 can help replace files that are lost, so i did that and thats where it went wrong, it rebooted and it seemed to go good, but then i noticed a big ? where Camino is meant to be on my Dock and i looked in my stack and it was gone, Safari would crash on the 5th letter i typed anywhere on the browser, (Safari and Webkit Nightly) At least Firefox works so i can post this, Spotlight is gone from the menu bar, i can't drag anything from the dock and i can't drag safari from the App stack or the dock crashes.
    The thing that worries me is why was Camino deleted? and Safari crashing?
    If anyone has a solution to this you would be a HUGE help, i really don't want to reformat my mac because i don't have anywhere to backup my files, i don't have the money for a decent sized HDD to backup into.
    Thanks all who help!!!

  • What is the name of the folders which are your backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer

    what is the name of the folders which are the backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer, authorize it and sync with Iphone 3Gs and Ipod 5th gen.
    I

    I second the whole iTunes folder approach.
    If for some reason you have split the media folder from the library files then the media folder needs to restored to the same path it used to have while the library files can be copied into the music folder of your new profile.
    If in dobut, backup up the entire Documents and Settings folder before wiping the infected drive, but be selective about what you restore as many viruses drop active components capable of reinfecting the compuer in the temp folders and internet caches. It is much easier to backup more than you need than to discover after the fact that you no longer have access to some vital project you'd been storing in a folder on the desktop.
    tt2

  • WPA8.1 Feature to save and move files between folders and OneDrive Folders

    Hi,
    I would like to suggest to dev team a new feature to Adobe Reader on Windows Phone.
    Today I was done a uggly workarround to save one PDF file on a OneDrive folder to send to my classmates. So I would like a feature to save and move files between folders on SD cards and OneDrive to keep my phone organized.
    thank you for your time.

    Here:
    property aFolder : "a"
    property bFolder : "b"
    property cFolder : "c"
    property dFolder : "d"
    property eFolder : "e"
    tell application "Finder"
    try
    set theLocation to the selection as alias
    on error
    set theLocation to (folder of the front window as alias)
    end try
    if not (exists folder aFolder of theLocation) then make new folder at theLocation with properties {name:aFolder}
    if not (exists folder bFolder of theLocation) then make new folder at theLocation with properties {name:bFolder}
    if not (exists folder cFolder of theLocation) then make new folder at theLocation with properties {name:cFolder}
    if not (exists folder dFolder of theLocation) then make new folder at theLocation with properties {name:dFolder} 
    if not (exists folder eFolder of theLocation) then make new folder at theLocation with properties {name:eFolder}
    set this_list to every file of theLocation
    repeat with i in this_list
    if (name of i) begins with "a" then
    move i to folder "a" of theLocation
    else if (name of i) begins with "b" then
    move i to folder "b" of theLocation
    else if (name of i) begins with "c" then
    move i to folder "c" of theLocation
    else if (name of i) begins with "d" then
    move i to folder "d" of theLocation
    else if (name of i) begins with "e" then
    move i to folder "e" of theLocation
    end if
    set name of (the result) to items 3 thru -1 of (get name of (the result)) as string
    end repeat
    end tell
    (98558)

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • HT204266 Cannot access itunes store from itunes - says to check internet connection.  I have internet connection.  I've unistalled ALL itunes files and associated files, and reinstalled?

    Cannot access itunes store from itunes - says to check internet connection.  I have internet connection.  I've unistalled ALL itunes files and associated files, and reinstalled?

    Try this:
    1. Settings>General>Date & Time>Turn off set automatically
    2. Set date one year ahead
    3. Go back to iTunes and try again.
    4. You will get the same error.
    5. Go back to settings general date and time and turn back on 'set automatically'
    Try connecting to iTune Store again.

  • Hiding files and folders

    hi
    how can we make files or folders hidden in mac ?

    you can put a hidden flag on a folder or a file to make it invisible to finder in normal mode. that can be done with a terminal command. for example to make folder A on your desktop invisible you need to run the following command in terminal
    chflags hidden ~/desktop/A
    to make it visible again you need to enter
    chflags nohidden ~/desktop/A
    the general syntax is
    chflags hidden /path/to/file
    however, there is a terminal command to make finder display hidden files and no matter what those files will be visible from terminal.

  • I have 2 auxillary disk drives for my MacBokk Pro. Time Machine uses one for backup and I use the other for storage, but I am unable to create a new folder or drag and drop files or folders to the aux drive.

    I am unable to create a new folder on either of my auxillary disk drives.  I can access the files and folders that were there when I transferred one of the drives from a PC.  Time machine uses one for backup and I want to use the other to store photos which are large files.  An help would be appreciated.

    Thanks for the reply.  If I reformat the drive will I be able to access the files on it from the MAC.  I do not share the drive with a PC.  The files were originally created on a PC which I no longer use.  I do want to continue to access the files put there by the PC.  I would like to not have to copy them over to the MAC hard drive just to use them.  The second aux drive is new and works fine because it was formatted by the MAC.  I can drag and drop files there and work with just as if they were on the internal drive.

  • Merging and storing files and folders on external hard drive

    Merging and storing files/folders  - I have a MacBookPro3,1 &  a MacBookAir1,1 both running OS10.6.8 and then files from backups and archives on a LaCie 250 and LaCie 500. I want to improve my productivity by merging all files/folder into one place.
    I have a WesternDigital 1T to move files/folders to and do my duplicate deletion work.
    The end result I'm seeking is to have all my files/folders stored on the LaCie 500  - with space for expanding iPhoto Library and Movies then that LaCie 500 Backed up on the 1T.   As my computers are older models the internal drives are smaller - MBA 80GB and MBP160. The Air in particular gets full up quickly and doesn't work efficiently.
    What steps/software have you had experience with, and would recommend to merge all my files/folders, delete duplicates, and get it all in one place - including iTunes, iPhoto. 
    What are the pros and cons of keeping & working with files/folders on an external drive rather than on the internal drive?
    I'm aware of sluggishness in iPhoto if the library is too large, and looked into iPhoto Library Manager as an option for my photos.
    Thanks in advance for your help with this way past due Spring cleaning activity.

    Plugins have to be in specific locations for the application to load them. If you're just storing plugins you're not using you can store them anywhere.

  • Search multiple folders and muiltiple files and combine to single file

     I want to search multiple folders for muliple files and combine to single file name. The files I'm searching have same format, but where named
    differently in each of there processes. Now I want to combine based upon -SearchFor .. I'm having a problem with -Filter $SearchFor
    Code:
    Function Search-Files{
    Param([String[]]$Locations,[String[]]$SearchFor, $AppendTo)
    Begin
    If(-Not (Test-Path $AppendTo)){New-Item $AppendTo -ItemType File -Force}
    Process
    ForEach($Location in $Locations)
    $Files = Get-ChildItem -Path $Location -Filter $SearchFor -Recurse
    ForEach($File in $Files)
    Get-Content -Path $FIles.FullName | Out-File $AppendTo -Append
    End{}
    Search-Files -Locations "\\servera\public\t1\usa\saleshist\","\\serverb\public\t2\usa\saleshist\",-SearchFor "dodetail-cm.txt","somstr.txt",-AppendTo "\\virt1\Saleshist_data_load_files\saleshdr.load.csv"

    I think you might want to use -Include instead of -Filter.  Your -Include parameter accepts wildcards, i.e. *.docx or *somstr.txt
    Your command to actually append the content should be:
    Get-Content -Path $File.FullName | Out-File $AppendTo -Append
    You had $Files.FullName which might behave unexpectedly, if at all.
    Your actual command has several issues.
    Search-Files -Locations "\\servera\public\t1\usa\saleshist\","\\serverb\public\t2\usa\saleshist\" -SearchFor "dodetail-cm.txt","somstr.txt" -AppendTo "\\virt1\Saleshist_data_load_files\saleshdr.load.csv"
    You had commas following the lists of locations and searchfor terms, did that even work? Without seeing your source files or your target file I can only advise you so much, but ideally you would import-csv and export-csv.  Depending on the contents,
    you may be able to get away with get-content and out-file though.
    I hope this post has helped!

  • K3b wont let me drag and drop files or folders

    I use k3b and since switching to arch havent had to use it till now. I open it just fine but it wont let me  drag and drop from dolphin (files or folders)
    though I can manually browse using its interface at the top and add files just fine...
    anyone experience same problem or know how to fix?? I couldnt find it in settings.
    again using k3b version : 1.93.0rc4-1
    thanks

    SMith319
    I'm having the very same problem, dragging and dropping new albums from iphoto to my iWeb created website, after having no trouble doing this for the last 2 years.
    I have able to drag and drop just 2 weeks ago and now it doesn't work.
    It's an album page, not a photo page, I am certain because there are already 5 albums posted on that page.
    Very strange. I wonder if its some sort of update problem they need to fix. All my software is updated (although I dont have ilife '09) but I wonder if some sort of new bug has be created through the most recent updates.
    If anyone has a solution I would be most grateful as I've run out of ideas and am unable to post new albums in any way shape or form, drop and drop or not..
    Thanks.

  • How to view long file names and sort files within folders/projects?

    Hello, like so many people here, I am a new mac user, but certainly not computer illiterate. I have been a professional photographer for 10 years and recently change to mac and have been slowly trying to adapt my work flow accordingly.
    However I have become increasingly frustrated with Aperture 3 and after reading posts here it looks like I am certainly not the only person. While in my case I am sure it is because of my inexperience with mac systems so any guidance or assistance is much appreciated.
    Hopefully my questions are simple. I have been importing my images and re-naming images as I do so. A very simple combination of date, custom name, and counter. However, when I look at the images once the import has completed, they are not in any logical order within the 'project'. I have tried to sort them by file name, orientation, file size, etc, both ascending and descending, but they will not list in the correct order. eg the file '2010-03-09 Lyon France 001', continually falls between '2010-03-09 Lyon France 022' and '....021'.
    This has also lead me to a further question. While my file names can generally be read when the image is a landscape format, on the portrait images the file name it too long for me to read the whole name, and I can not find anyway to read the file name, eg browser, split screen, viewer, or full screen.
    Im sorry for all the details, and I am sure it is just my lack of experience, so appreciate your help.
    PS. On a separate note, I notice on another thread from the frustrated user 'ultratechy' that he got a reply from Tony who stated 'Also after installing any application you should always run disk utility and repair permissions....' Now as I am completely new to mac, I had no idea about this. Any other tips that I should always be aware of? Thanks again.

    Thanks for your reply Calx. If it makes you feel better, I am actually a New South Welshman - just living in the sunshine state!
    You are correct, I am trying to get my head around a new way of working and thinking, but I suppose it will all become clearer as time goes by. I have re-visited the manual many times, and been doing loads of research online, but just trying to put it all into practice now, so any tips or advice is always appreciated.
    At the moment, I am just working with a small part of my library until I do get my head around things before moving onto the bulk of my images. I have my images stored and backed up on multiple external hard drives. I am trying to import my images into aperture from an external drive as I have been slack over the years with keywording, metadata, organising, etc etc, so I figure from what I have read that aperture may assist me with making these time consuming tasks a bit quicker and easier.
    I have put a bit of thought into my filing structure, but I am sure that with further use and understanding, this may change in the future, but I hope not. To give you an example of how I am thinking and working - I have used folders for my regular clients, eg, Ray White, and then made another level of folders within 'Ray White' for the date, and then in each 'date folder' I place my projects and name them with the address of the property I have photographed. I select and edit images from each project and place them in albums under each project. Not sure if this is the most perfect structure, but any advice is welcome.
    Keywords is always an issue with me. Over the years I have compiled a number of list for each client and each 'type' of photography. For example, real estate images have there own list, I just simply manually add keywords for specific jobs, eg the address and any specific location or features.
    Again, advice and guidance always welcome and I would appreciate how you go about these topics? And maybe you can help explain something that I have pre-emted may be a problem, and it may happen when I move onto my larger library, and I am not sure how to explain this as it may show my lack of management previously. When I worked on my PC, I used PS4, Adobe Bridge and Camera RAW pretty much exclusively. For my landscape images for example, I might have 2 or 3 variations of the one images, eg, black and white, sepia, and color for instance. But the file name remained the same, I just stored them in different folders indicating what version of the image was stored there. Now I am thinking that when I import images in Aperture, I will come across difficulties because Aperture will think the I am importing duplicate images because I will in fact have 3 images with the same file name, even though the adjustments I have made to them are different. Is this the case? Will I have to make adjustments again? Will I have to change the name of the files prior to importing? If so, any advice or tips?
    Well, I should stop there. Im sorry to bombard you with some much text, but as mentioned, I am new, and finding my feet, so thanks for your time.

Maybe you are looking for