-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Jan 08, 2005 at 01:55:01PM +0000, eliroven wrote:
> 
> 
> 
> 
> Hi Mark
> 
> 
> running.
> > 
> > Should be easy enough to pick out near the end of the listing.  ;)
> 
> 
> 
> Inelegant, but it works! Thanks.
> 
> This is what I got from the the ps command:
> 
> **********
> 2375 ?        S      0:02 /usr/bin/perl /usr/sbin/net_monitor 
> --embedded 41943437
> **********
> 
> So, I ran the commmand /usr/sbin/net_monitor and it works, but not 
> without before asking me for the admin password :-(
> 
> So, is there a way to give this command, or link or whatever admin 
> priviledges - just for this very specific event?

Yes, you can use sudo.  I haven't been following the thread, so don't
know which distribution you're using, but most distributions have the
sudo program installed.

There should be a file called /etc/sudoers  (or something similar,
/usr/local/etc/sudoers, or /etc/sudo/sudoers.)

Open it with your favorite editor.  There is a program called visudo,
that is the preferred way to edit the file, but if you're the only user
on there, we'll leave that for another time.  If you're familiar with
the vi editor, which on all distros I know of save Mepis is the default
editor for visudo, then do  use it, with the command 

visudo -f /etc/sudoers 

Add this line to it (I usually add these lines at the end, for if there
are two conflicting sets of permissions, sudo uses the last one)

I am assuming that all users belong to the users group, which is
standard on most installations.  (Though not all)

%users ALL= NOPASSWD:  /usr/sbin/net_monitor 

(As I've written it, with the % before the line)


- -- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Adam: You failed me. 
Spike: Let's not quibble about who failed who. 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFB3/8U+lTVdes0Z9YRAptPAJ0Rp72zP6eKqXbkUAdssv6Az9WrdwCdH8FU
iOrH4sFn2DBBKB5ylJBJHgw=
=ohVV
-----END PGP SIGNATURE-----


To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to