Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-21-2008, 08:25 AM   #1
LQ Newbie
Registered: Jan 2008
Location: Poland
Distribution: Debian testing/Lenny
Posts: 18

Rep: Reputation: 0
Change group of a /proc file upon startup in Debian


I was wandering where to find a place (deamon) which will assign a specific group to a /proc file (say bar group to file /proc/foo for example) upon startup.

I know I can make a simple shell script which will do
chgrp bar /proc/foo
and place it in /etc/init.d or so, but I want to do this right.

I'm used to do things the Debian way, if you know what I mean.

Is there a specific place where I can setup this kind of things?

Thanks in advance.
Old 10-21-2008, 08:34 AM   #2
Dutch Master
Senior Member
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Why would you need that? There's probably a better way to solve your problem, as the /proc dir is 'virtual' (as in: there is no real data in it, it's all kernel stuff) and therefor rather fluid. One solution is a sym-link:
ln -s /proc/foo /tmp/foo
Old 10-22-2008, 03:34 AM   #3
LQ Newbie
Registered: Jan 2008
Location: Poland
Distribution: Debian testing/Lenny
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for reply Dutch Master!

I want to allow users from a group to have write access to a specific /proc file.

Linking to a proc file isn't the solution here, because user still needs to have write permission to a file that link points to.


debian, group, proc, startup

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change owner, group and permission settings on file and folder creation?? helptonewbie Linux - Newbie 9 12-17-2007 03:03 PM
ID created with assigned group is not display in /etc/group file dwarf007 Linux - Security 2 08-21-2007 10:39 PM
Startup file on debian linux x86_64, looking to edit Wolvenmoon Linux - Software 1 08-19-2005 09:29 AM
what is the file of startup on debian? help j.vilon Linux - General 3 09-19-2004 02:17 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration