LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-29-2008, 09:15 AM   #1
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
not allow editors with sudo


is there an easier way to not allow:

sudo vi
sudo emacs
sudo pico
sudo ...

i would like to give complete access to /usr/bin

but disallow root priveleges when using sudo with editors
(so they can't change /etc/ files for example)
 
Old 09-29-2008, 09:52 AM   #2
jb_get
Member
 
Registered: Sep 2008
Location: America
Distribution: Debian
Posts: 33

Rep: Reputation: 16
you will need to find the file visudo and from there you can do what you want. I am not sure exactly what you would have to type in but i know thats where you want to be to do what you want.

Last edited by jb_get; 10-23-2008 at 04:14 AM.
 
Old 09-30-2008, 12:23 AM   #3
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by ash4stuff View Post
is there an easier way to not allow:

sudo vi
sudo emacs
sudo pico
sudo ...

i would like to give complete access to /usr/bin

but disallow root priveleges when using sudo with editors
(so they can't change /etc/ files for example)
I think /usr/bin has too much files. If you give acess to it you give complete root access.
For example:
Code:
sudo /usr/bin/strace <whatever_program_you_like_include_editors>
Sure there are a lot of other programs that can be used in the similar way.

And if it's a box with gcc it's another huge hole.

Anyway, what are you trying to achieve ?
 
  


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
LXer: The Ultimate Sudo FAQ To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 02:36 AM
Text Editors John-in-France Linux - Software 10 04-12-2008 12:29 PM
LXer: sudo, or not sudo: that is the question LXer Syndicated Linux News 0 02-07-2008 06:40 PM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 04:20 PM
Editors Gins Linux - Software 13 08-20-2006 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:27 PM.

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