Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a script that needs to extract certain information form the /proc/net/ip_conntrack file once in a while. I do not wish to run this script as the root user.

Default permissions for the file is:

$ ls -lah /proc/net/ip_conntrack
-r--r----- 1 root root 0 2010-03-28 12:18 /proc/net/ip_conntrack

I can change it with:

sudo chmod o+r /proc/net/ip_conntrack

But that does not stick after a reboot. Is there some configuration file for file-permissions in the /proc directory in Ubuntu Server 9.10? Or do I just have to stick a chmod line in some startup script?

share|improve this question
    
/proc is a virtual filesystem that resides only in memory. You should put your chmod line in a start up script. –  Jimmy Hedman Mar 29 '10 at 17:15
add comment

1 Answer 1

up vote 2 down vote accepted

it looks like you can safely stick the chmod command in rc.local (http://www.openbsd.org/cgi-bin/man.cgi?query=rc.local&sektion=8)

share|improve this answer
    
Will do. I just thought there might be some configuration files for the permissions of the virtual /proc file-system. No reason to loose sleep over this, thanks. :) –  Bjarke Freund-Hansen Mar 30 '10 at 7:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.