LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2009, 08:27 PM   #1
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Rep: Reputation: 16
how to restrict programs to root access only


i've just installed gconf-editor and i'm wondering how can i make this program root accessible only? i mean when i fire it up it will prompt me for root password before i can use it... (there's a few other softwares that i would like to put restrictions on)
 
Old 06-24-2009, 08:36 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You can make a tool only usable by root by changing the ownerships/perms.
You'd have to write a wrapper to make it ask for root passwd if that functionality is not built-in (usually wouldn't be).
You should put your distro in your profile, but if you have RH based system, it does ask for root passwd for stuff like Add/Remove SW I think, so you could check the src code. Also the stuff on the SysAdmin menu iirc.
 
Old 06-24-2009, 08:39 PM   #3
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by chrism01 View Post
You can make a tool only usable by root by changing the ownerships/perms.
You'd have to write a wrapper to make it ask for root passwd if that functionality is not built-in (usually wouldn't be).
You should put your distro in your profile, but if you have RH based system, it does ask for root passwd for stuff like Add/Remove SW I think, so you could check the src code. Also the stuff on the SysAdmin menu iirc.
to be honest i'm a real noob to Linux, i have used it for a length of period but i haven't delved into anything more than daily usage (movie watching, document creation, web surfing etc)

I'm clueless in what you are explaining... maybe i'll wait untill a click click instruction comes along :|
 
Old 06-24-2009, 08:48 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
In that case I highly recommend you bookmark & read this http://rute.2038bug.com/index.html.gz
For your particular qn, pay special attention to the chown and chmod cmds.
If you add your distro & version to your profile details so we can see them, you'll get better advice, as some things solutions vary depending on which Linux you've got.
You should also bookmark/read
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
 
Old 06-24-2009, 08:56 PM   #5
pomo56
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Bla

Same here about the newbie stuff. Good link though.
 
Old 06-24-2009, 09:01 PM   #6
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
sorry, i'm currently running the latest from RedHat Fed Project: Fedora 11 - Gnome
 
Old 06-24-2009, 09:08 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
In that case, as I said, you'll notice there are several operations that prompt you for root passwd. You need to check the src code.
Alternately, this looks easier http://www.linuxjournal.com/article/2807, http://www.linuxjournal.com/article/2460
GIYF
 
Old 06-24-2009, 09:11 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Manuleka

Just so you understand it is NOT RedHat Fedora, it is Fedora. While RH does offer a tremendous amount of support to the project, it is an independent entity (even more so since FC6).
 
Old 06-24-2009, 10:17 PM   #9
manuleka
Member
 
Registered: Feb 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by lazlow View Post
Manuleka

Just so you understand it is NOT RedHat Fedora, it is Fedora. While RH does offer a tremendous amount of support to the project, it is an independent entity (even more so since FC6).
thanks... i thought Fedora was more like a community based Red Hat Project (which is open source and open to public) developed and maintained by the community group or groups, where as Red Hat Enterprise is their pay service/product line
 
  


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
can I set programs requiring root access to not require it? newbiesforever Linux - General 2 02-22-2008 06:32 PM
restrict access to root / yogaboy Linux - Newbie 4 12-31-2006 09:17 AM
Restrict X server access using /etc/security/access.conf anand_kt Linux - General 0 04-22-2005 09:40 AM
restrict internet access to the root only anubhuti_k Linux - Security 1 02-15-2005 01:59 AM
Restrict access by IP waifurchin Linux - Security 3 02-02-2003 08:54 AM


All times are GMT -5. The time now is 06:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration