nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

What is the best way to secure mount point?

This is a discussion on What is the best way to secure mount point? within the Linux software forums, part of the Linux Getting Started category; We have three Linux and one FreeBSD server for hosting customer's domains. On all systems, we have separate partition called ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 06-03-2005, 11:56 AM
Member
User
 
Join Date: Feb 2005
Posts: 66
Rep Power: 0
chiku
Default What is the best way to secure mount point?

We have three Linux and one FreeBSD server for hosting customer's domains. On all systems, we have separate partition called /dev/device mounted on /wwwdata (example /wwwdata/mydomain.com is webroot for virtual host and ftp account)

I would like to know how to secure this mount point, as I have noticed some users can create dangerous stuff in /tmp (especially those with shell account) using perl or even compiled and what not causing security risk; though I have uninstalled gcc so that they cannot install and compile anything downloaded from net.. I am trying to find answer via google but no luck so far... I need gcc as we have custom compiled postfix, apache and other stuff as per our needs
__________________
There's no place like 127.0.0.1
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-04-2005, 12:40 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

To Secure mount point

Use mount options to help prevent intruders or your own users from executing program
For example /tmp cannot be used to execute program add -o nodev,noexec,nosuid /tmp or /wwwdata mount point in /etc/fstab
# mount -o nodev,noexec,nosuid /dev/sda2 /wwwdata
# mount -o nodev,noexec,nosuid /dev/hda3 /tmp

Above flags to mount, commands are available on both Linux (ext2/3) and FreeBSD file systems.

Secure ftp login using chroot feature, since you have not mentioned your ftp server I can't give exact info on this... however all modern ftp server has this feature so user ftp in they can't move to /tmp or something else...

Hope this helps
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Mount iso image saurabh_jsh Linux hardware 1 04-29-2008 03:52 PM
secure smtp and secure POP shaun_s Mail Servers 0 12-11-2007 07:56 PM
mount -o loop .... PeterGib Linux software 3 08-17-2007 07:03 AM
Why are ulimit values not being set properly upon SSH (Secure Shell) login? jerry Networking, Firewalls and Security 0 06-15-2007 11:58 PM
Secure vsftpd FTP permissions on anonymous user uploads nixcraft Getting started tutorials 6 12-20-2006 03:00 AM


All times are GMT +5.5. The time now is 10:42 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36