Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-06-2006, 09:02 PM
|
#1
|
Member
Registered: Aug 2004
Posts: 56
Rep:
|
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
|
|
|
03-07-2006, 02:11 PM
|
#2
|
Member
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815
Rep:
|
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.
|
|
|
03-07-2006, 04:29 PM
|
#3
|
Member
Registered: Aug 2004
Posts: 56
Original Poster
Rep:
|
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
|
|
|
03-08-2006, 09:29 AM
|
#4
|
Member
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 344
Rep:
|
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.
|
|
|
03-08-2006, 10:15 AM
|
#5
|
Member
Registered: Aug 2004
Posts: 56
Original Poster
Rep:
|
Yea I have been using kdesu for some of the apps is this a form of su?
|
|
|
03-08-2006, 08:28 PM
|
#6
|
Member
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301
Rep:
|
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.
|
|
|
03-10-2006, 06:36 PM
|
#7
|
Member
Registered: Aug 2004
Posts: 56
Original Poster
Rep:
|
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
|
|
|
03-11-2006, 12:31 PM
|
#8
|
Member
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|