LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 08-06-2003, 09:30 AM   #1
nullpt
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 94

Rep: Reputation: 15
sysctl


Hello all,

I was woundering how could I hide the sysctl variables from normal users..

I was unable to find any information about that.

Thanks in advance.
 
Old 08-06-2003, 12:33 PM   #2
cIx
Member
 
Registered: Aug 2003
Location: /dev/null
Posts: 40

Rep: Reputation: 15
What do you mean by saying "Hide Sysctl variables" ? You mean that you don't want users to access the /etc/sysctl.conf file?
 
Old 08-06-2003, 01:06 PM   #3
nullpt
Member
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 94

Original Poster
Rep: Reputation: 15
Hi there,

alex@angelfire:~:> sysctl -a

all vars
all vars
....

alex@angelfire:~:>

"alex" is a regular user. I want to hide the variables from the regular users.

Thanks in advance
 
Old 08-06-2003, 01:14 PM   #4
cIx
Member
 
Registered: Aug 2003
Location: /dev/null
Posts: 40

Rep: Reputation: 15
oh.. that's easy

# chmod 0550 /sbin/sysctl

now only user root and group root can access the file
 
  


Reply


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
Information on using sysctl() ? DanTheKiwi Programming 2 08-17-2004 01:52 AM
sysctl and iptables alaios Linux - Security 2 06-09-2004 04:59 AM
/etc/sysctl.conf ??? biscristi Linux - Software 0 06-03-2004 09:50 AM
sysctl.conf nocturnal *BSD 4 12-11-2003 06:43 PM
help! the /etc/sysctl.conf darkstarreddiam Linux - Networking 2 05-08-2003 09:55 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 10:22 AM.

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