Hide network mount from df commands | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Hide network mount from df commands

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-24-2008
CBarraford CBarraford is offline
Registered User
 
Join Date: Mar 2007
Last Activity: 1 May 2009, 12:23 PM EDT
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Hide network mount from df commands

I am trying to write a script that mounts a network drive. The network drive must be as secure and hidden as possible, including being hidden from commands such as df, etc. Any suggestions?
Sponsored Links
    #2  
Old 07-24-2008
Ikon's Avatar
Ikon Ikon is offline Forum Advisor  
Computer Geek
 
Join Date: Jul 2008
Last Activity: 10 July 2013, 11:06 AM EDT
Location: Frederick, MD
Posts: 748
Thanks: 4
Thanked 10 Times in 9 Posts
I havnt tried this but try putting a . infront of the mount point. So it would be /mnt/.mounted_directory


EDIT:Just tried that and it still shows up in df
I cant find anyway to hide it from df. Not sure why you would want to, best bet is just to not give any permissions top people that you dont want to access it.
Sponsored Links
    #3  
Old 07-24-2008
CBarraford CBarraford is offline
Registered User
 
Join Date: Mar 2007
Last Activity: 1 May 2009, 12:23 PM EDT
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
The user needs access so an application can install a package from the network drive. But I don't want the user to get a copy of it. So I am tring to hide the network drive.
    #4  
Old 07-24-2008
Ikon's Avatar
Ikon Ikon is offline Forum Advisor  
Computer Geek
 
Join Date: Jul 2008
Last Activity: 10 July 2013, 11:06 AM EDT
Location: Frederick, MD
Posts: 748
Thanks: 4
Thanked 10 Times in 9 Posts
Can the application run as another user, and that user has access to the network drive?

To start the application it calls
"sudo -u appuser /path/application"

and the user appuser has access to the network share.

The appuser would only have sudo access to the application and no other uneeded commands.

This is assuming the application initiates the installation of the package.
Sponsored Links
    #5  
Old 07-24-2008
CBarraford CBarraford is offline
Registered User
 
Join Date: Mar 2007
Last Activity: 1 May 2009, 12:23 PM EDT
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
that's a prett good idea, I didn't think of that. The only issue is the user has admin rights, so they could override if they wanted to. Thanks for your help.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to configure sudoers in order to hide some sudo commands. fefafefa Linux 0 04-28-2012 07:16 PM
script to auto mount remote sshfss over network FloridaBSD Shell Programming and Scripting 0 03-31-2012 04:39 PM
How to mount a filesystem of one pc in another pc that are connected in a network? venkatesh_sasi Linux 3 03-18-2008 10:47 AM
Hide my shell commands yamsin789 Shell Programming and Scripting 1 10-06-2007 07:30 AM
Mount a network computer/drive in unix? emplate UNIX for Dummies Questions & Answers 2 05-04-2005 03:16 PM



All times are GMT -4. The time now is 11:29 AM.