    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>Linux.com :: Basically, hide a hard drive from other users - how?</title>
        <link>http://www.linux.com/archive/forums/topic/2136</link>
        <description>Everything Linux and Open Source</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Linux.com Admin</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.linux.com" /> 
        <admin:errorReportsTo rdf:resource="mailto:noreply@linux.com" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>



<div class="xarbb-noteswrapper">
</div>

   <div class="xarbb-noteswrapper">
       <div class="xar-sub rightnote">
           <div>
                    <a href="http://www.linux.com/archive/forums/topic/904">
Previous Topic</a>
|
                    <a href="http://www.linux.com/archive/forums/topic/2160">
Next Topic</a>
</div>

           <div>
                    <a href="http://www.linux.com/archive/forums/printtopic/2136?theme=print">
Print this topic</a> |
You are not subscribed            </div>
        </div>
        <div style="clear: both;"></div>
    </div>

    <h1>
        <a class="xar-title" href="http://www.linux.com/archive/forums/topic/2136">Basically, hide a hard drive from other users - how?</a>
   </h1>


   <div class="xarbb-topiccontrols">
<form action="http://www.linux.com/archive/forums?func=jump" method="post">
   <label for="xarbb_jump_menu">Forum Jump</label>
    <select name="f" id="xarbb_jump_menu" onchange="this.form.submit();">
        <optgroup label="Options">
            <option value="6" selected="selected">
Please select forum            </option>
            <option value="6">--------------------</option>
        </optgroup>
        <optgroup label="Forums">
                <option value="1">New to Linux</option>
                <option value="2">Hardware</option>
                <option value="3">Linux Distributions</option>
                <option value="4">Applications</option>
                <option value="5">Programming and Development</option>
                <option value="6">Miscellaneous Discussion</option>
                <option value="7">Linux.com Writers Forum</option>
                <option value="8">Jobs</option>
        </optgroup>
    </select>
    <input type="submit" class="button" value="Jump" />
</form>
<div style="clear: both;"></div>
   </div>

   <div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/6">
        Miscellaneous Discussion   </a>
</span>
<div style="clear: both;"></div>
   </div>

<div class="xarbb-tablewrapper">



   <table>
       <tr>
           <th scope="col">
Author</th>
           <th scope="col">
Message</th>
       </tr>



            <tr>
                <td class="xar-norm author">
                    <div>
                        <a href="http://www.linux.com/archive/roles/405594">beavis2k8</a>
                   </div>
                   <div class="xar-sub">
Joined: Jun 29, 2008<br/>Posts: 5                        <br />
                        <a href="http://www.linux.com/archive/forums?by=405594&amp;func=searchtopics">
Other Topics</a>
                   </div>
               </td>

               <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted Jun 29, 2008 at 11:53:52 PM</span>
                       </div>



<div style="float: left;">
                           <strong class="xar-sub">
Subject: Basically, hide a hard drive from other users - how?                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div>
                        I switched to linux about 6 months ago and have been loving its versatility compared to windows. Anything i have thought i would like to do, i have found a way to do it.

Recently my girlfriend has been asking to use my computer more and more regularly so i decided to make her a user account.
Its all set up fine, shes got a home folder and she can use office apps, surf and check her emails and stuff.... but call me crazy but im not too happy about her sniffing around my files and deleting them by accident.
Ive restricted some access, she cant see my home, she cant see my emails, in fact, anything thats linked to my account is unaccessable.... just the way i want it.
Only 1 problem remains - The icons on the desktop for my external drives are there, now i can play with the permissions to stop her having access, but, i know if she can see them but can't access them, she will automatically think im up to no good. women huh? (apologies to any females on here)

So basically, how do i stop the icons for the HDDs showing up on her desktop and in the &quot;Computer screen etc&quot; but show up on mine?
I thought about using mount and umount commands in the session startup but i think that might get a bit messy?
Any ideas?</div>

                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/2136#top">
Back to top</a>
</td>
               <td class="xar-alt">

                        <a href="http://www.linux.com/archive/roles/405594">
                            <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                        </a>
                        <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=405594">
                            <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                       </a>
                            <a href="http://">
                                <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                           </a>
</td>
           </tr>





           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/400555">
                                Penguin                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Mar 28, 2008<br/>Posts: 88<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=400555&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-accent message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Jun 30, 2008 10:34:51 AM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1193466" href="http://www.linux.com/archive/forums/topic/2136#1193466">
                                    Re:  Re:  Basically, hide a hard drive from other users - how?                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        One way to do it is to set your fstab (/etc/fstab - the file which tells your distro which drives to mount and where) so it doesn't auto mount the drive(s), and change the KDE settings to not show unmounted drives. You could also (if you really wanted) only allow root to mount/unmount the drive.
A quick example of what the fstab line might look like after is this:
Just don't mount it: 
&quot;/dev/sdb1  	/media/Stuff  	auto  	rw,noauto,async,exec  	1 1&quot;
Don't mount it and only let root mount it: 
&quot;/dev/sdb1  	media/Stuff  	auto  	rw,noauto,async,exec,nouser  	1 1&quot;

I hope this helps, let me know how it turns out / if this does(n't) sort your problem.
Penguin
Edit: Hmm, it seems it doesn't like tab spaces; don't copy the entire line, just the &quot;rw,noauto,async,exec&quot; part, and replace what's there already (alternatively, just change what's there so you have noauto (and nouser if you only want root to mount it) in there.
[Modified by: Penguin on June 30, 2008 10:37 AM]
Edit 2: If you wanted, you could also change the mount point to your home directory, so looking in /media (or /mnt) wont show the mount points either (thus not giving away the fact that some thing's not mounted). So instead of &quot;/media/Stuff&quot; you'd have /home/mount/Stuff&quot; (or wherever, just make sure the directory exists where you're trying to mount to, it's not always necessary, but it never hurts).

[Modified by: Penguin on June 30, 2008 10:45 AM]
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/2136#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/400555">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=400555">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/405594">
                                beavis2k8                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Jun 29, 2008<br/>Posts: 5<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=405594&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Jun 30, 2008 5:26:16 PM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1193496" href="http://www.linux.com/archive/forums/topic/2136#1193496">
                                    Re:  Basically, hide a hard drive from other users - how?                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        [quote]Edit 2: If you wanted, you could also change the mount point to your home directory, so looking in /media (or /mnt) wont show the mount points either (thus not giving away the fact that some thing's not mounted). So instead of &quot;/media/Stuff&quot; you'd have /home/mount/Stuff&quot; (or wherever, just make sure the directory exists where you're trying to mount to, it's not always necessary, but it never hurts).[/quote]

That works how I wanted, never even thought of that! Thanks very much! Now I can get on with customising her applications menu :D                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/2136#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/405594">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=405594">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>
</table>
</div>

<div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/6">
        Miscellaneous Discussion   </a>
</span>

</div>



            </channel>
</rss>
