LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2006, 09:02 PM   #1
Archer36
Member
 
Registered: Aug 2004
Posts: 56

Rep: Reputation: 15
Use sudo with ipw2200, ettercap, ethereal...?


Well I know how bad of a habit it is to run as root, and I should be using sudo insted. So i created a new user, and everything runs fine but when it comes to using anything related with the network, like ettercap, ethereal, loading my ipw2200 drivers, or a program to select wireless AP everyone of those requires to you to be root in order to run them.

So how do I setup my sudoers file so I can run those? I think I have to do somthing with Cmnd_Aliases but i am seeing so many different things, like NETWORK and I am quite confused how to use this command.

Just a little background, I have slack 10.2 installed on my laptop and I am the only user. I use the laptop for wardriving with GPS, also general things like browsing web, school, gpsdrive and such. So judging by that is SUDO the best way to setup my system?

Thanks
Archer36
 
Old 03-07-2006, 02:11 PM   #2
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Dont add another layer to SW. Get used to using su and pw from terminal or command prompt when they are needed. Once network and wifi are config'd you should not need to be root except on rare occasions. You may want to review /etc/group to add user(your username) to pertinent groups.
man sudo is available if you insist.
 
Old 03-07-2006, 04:29 PM   #3
Archer36
Member
 
Registered: Aug 2004
Posts: 56

Original Poster
Rep: Reputation: 15
Im not sure I completly understand, if I dont run ettercap, or ethereal from su or root they will not work because it does not have access to ethX interfaces.

Thanks
 
Old 03-08-2006, 09:29 AM   #4
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
kdesu ethereal

Hi

If certain programs (like ethereal) need to be run as root, you can do this

user@host:~$ kdesu ethereal

user@host:~$ kdesu ettercap -G (haven't tried it but I think it should work)

Anyway some programs like ettercap or nmap prefer the command line. It does work for ethereal (and I think the package from www.linuxpackages.net does it this way)

Good luck.
 
Old 03-08-2006, 10:15 AM   #5
Archer36
Member
 
Registered: Aug 2004
Posts: 56

Original Poster
Rep: Reputation: 15
Yea I have been using kdesu for some of the apps is this a form of su?
 
Old 03-08-2006, 08:28 PM   #6
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
kdesu is su just for gui apps.

sudo is a "form" of su that limits what you can do with su. so you have to put in the sudo.conf file what commands can be used, if the command isnt allowed in the sudo.conf file you cant run it. if you use su you actually switch to that user. it depends on your environment which is better if you have admins that you dont fully trust because of security reasons or simple typos sudo might be better, but sudo is a lot more time consuming and difficult to setup. whereas su is automatically setup because it doesnt have a setup but you give full rights as the person that su is going to.

you can su to other users to
ex:
su bob
su adm
su #become root

you can do the same with sudo though and restrict what commands are allowed to be run. you can setup sudo so that some commands that require root access to run without passwords. sudo is very powerful but "can be" dangerous if you allow access to commands like sh, because you can do anything with a shell. thats almost like giving access to su.

man sudo
man su

lestoil sudo isnt anymore sw then su ... you just have to becareful what you do with it and even if sudo is setup wrong its more secure then giving access to su, until its to late.
 
Old 03-10-2006, 06:36 PM   #7
Archer36
Member
 
Registered: Aug 2004
Posts: 56

Original Poster
Rep: Reputation: 15
Ok been playing around with it a bit, now when loading my wlan drivers it wants to use rmmod, insmod, and modprobe. Now should I add /sbin to my user's path? ATM i just put two symbolic links in /usr/local/bin but was not sure what I should do.

Thanks
 
Old 03-11-2006, 12:31 PM   #8
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
if you edit your PATH your makeing a system wide change for 1 script ... it doesnt really matter but its not to smart either. its like changing all 4 tires on your car cause 1 of them gets a nail in it.

why dont you edit the script so instead of useing:
modprobe <somemodule> #(you would need to do this for insmod and rmmod in the script too)

it uses instead:
/sbin/modprobe <somemodule> #(insmod and rmmod too)

but the symbollic links would work too.
 
  


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
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
AimSniff And Ettercap? ocdavi Linux - Networking 0 10-22-2005 02:58 PM
sudo ethereal with ssh adamwenner Linux - Software 0 09-10-2004 02:21 PM
Ettercap 0.7.0 is it threat? dominant Linux - Security 1 08-13-2004 10:31 AM
ettercap NC 7 and MDK10 kvtournh Mandriva 0 07-26-2004 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:48 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