mounting /proc or /usr


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users mounting /proc or /usr
# 1  
Old 12-03-2004
Bug mounting /proc or /usr

i am not quite sure what the purpose of mounting a filesystem that is already mounted.. i know you may want to mount /usr read only but do not know the true purpose behind this.. and why would /proc be mounted on /proc itself.. this is all new to me.. I have been reading up on it from various sources one of which is Rute Tutorial and Expo by Paul Sheer..(excellent book). but I am not quite understanding the concept.
moxxx68
ps this book can be viewed freely on www.freeprogrammingresources.com under books along with many books.
# 2  
Old 12-03-2004
You can re-mount the /usr filesystem read-only (or indeed set it up in /etc/fstab with the "ro" option so it happens automatically). Doing so is a good security measure where several clients can all mount a central /usr partition over NFS and thus not have to worry about updating binaries on all systems - just update the central /usr filesystem and all the other clients will be using these updated binaries - because it is mounted read-only clients will not be able to change any of the contents of /usr - something they generally won't need to do anyway.

As for /proc - this is not a "true" filesystem - rather it is a psuedo filesystem generated dynamically by the kernel to display system information.

Cheers
ZB
# 3  
Old 12-04-2004
is it worth my while to mount /usr ro for security measures now that I am accessing remote servers and accounts through ftp and ssh.. and I bring this up because i have virtually no controlled security of any type like firewalls or virus detection on my system.. would this be advisable or unnecessary. it would seem that it would be a bit tedious to have to remount rw to add binaries and utilities in my /usr/local and /usr/bin and then remount ro.
# 4  
Old 12-04-2004
For the purposes of a desktop Linux system where you will be continually adding to /usr/local there is no real security gain by mounting /usr read-only. If you were serving /usr over NFS then I'd say yes.

Without having a firewall of any kind, your biggest threat is through vulnerabilites in old packages (and unnecessarily open ports) - if they can exploit your system, then yes, they could replace binaries in /usr/bin with malicious ones, but in such an event this probably would be the least of your worries.

If this were a server system, however, I'd say without a doubt yes - mount /usr read-only. For your needs, however, i'd recommend setting up iptables/ipchains (depending on your kernel) and getting your firewall up and running. Google for "guarddog" - this provides a nice KDE interface to configuring your firewall (providing support is compiled into your kernel for iptables/ipchains which it usually is by default on modern distributions).

Cheers
ZB
# 5  
Old 12-05-2004
speaking of servers I have acually just done precisely that, I downlowded samba and installed it i tried to configure it to specs.. and now I am trying to figure out exactly how to implement it.(i know that sounds funny but the reason I downloaded is so that I could cross the NFS platform). I was'nt aware of the firewall actually being on the system so i guess I will have to take a look at that.. (I am not a security freak, but still I worry!), as for mounting /usr ro correct me if I am wrong i would umount /dev/hdd /usr and the
mount -t autofs -o ro /dev/hdd /usr .
as for IP tables I would need a clue as to where to start
thanx moxxx68
# 6  
Old 12-05-2004
Samba is for sharing files between Windows and *nix machines - not for NFS exports - you can do that as standard within any *nix OS.

The firewall issue is a long and complex one, which is why it's best to let something like GuardDog take care of the configuration for you (requires a KDE desktop).

You can find howto's for NFS, Samba and lots of other things over at the Linux Documentation Project.

Cheers
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Linux Containers - /proc mounting and other queries

Hi guys, I am confused about how containers work in Linux, especially how chrooting works and about how /proc filesystems are mounted. So please feel to migrate this question to another forum if this is not the right one. Now, to business. Okay Dockers can be confusing to the uninitiated... (10 Replies)
Discussion started by: sreyan32
10 Replies

2. OS X (Apple)

OSX: ./Users/myname OR. /usr/myname ? 1) what is the truth on UNIX ./usr/ directory.

OSX uses its own directory strecture on the BSD core, for example /Users/Bob_Alice/. but legacy Unix structure /usr/... remains. Adding confustion, some Unix books say /usr/ was never intended for specific users. and others show it being used for Bor or Alice. I am not sure where to put my third... (5 Replies)
Discussion started by: michaelayres
5 Replies

3. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

4. UNIX for Dummies Questions & Answers

Regarding /proc

If you are adding the kernel module without any module parameter passing, it should print out following information to info1 file so that user can make read access to info1 file (via, for example, cat /proc/info1): • Processor type • Kernel version • Total number of the processes currently... (1 Reply)
Discussion started by: shekhar.huded
1 Replies

5. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

6. UNIX for Dummies Questions & Answers

_/proc/stat vs /proc/uptime

Hi, I am trying to calculate the CPU Usage by getting the difference between the idle time reported by /proc/stat at 2 different intervals. Now the 4th entry in the first line of /proc/stat will give me the 'idle time'. But I also came across /proc/uptime that gives me 2 entries : 1st one as the... (0 Replies)
Discussion started by: coderd
0 Replies

7. Linux

Kernal panic error& setuproot:error mounting /proc&/sys

Hi all, I am new to redhat/fedora linux. In fedora linux 6,we created one file system(hda3 - /fs). in this mount poing we were installed mounta vista os. while booting we are getting below error messages. 1) Booting 'mountaVisat(2.6.18_pro 500_pc_target-x86_586 smp)' root(hd0,1)... (2 Replies)
Discussion started by: arjunreddy3
2 Replies

8. UNIX for Dummies Questions & Answers

proc

Hi, What are the various way's to fix /proc folder in redhat linux 7.2 and how to verify /proc folder is proper or croupted? Thank in advance Bache Gowda (7 Replies)
Discussion started by: bache_gowda
7 Replies

9. UNIX for Advanced & Expert Users

/proc

/proc is filing up my root filesystem. Can you delete any of the4 ID numbers out of /proc. Please help me. (3 Replies)
Discussion started by: aojmoj
3 Replies
Login or Register to Ask a Question