LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 07-20-2003, 09:47 AM   #1
-=MaGo=-
Member
 
Registered: Jun 2003
Location: Italy
Distribution: mandrake; debian
Posts: 33

Rep: Reputation: 15
Question mandrake net_monitor


I have mandrake 9.1 and I use net_monitor to connect to the internet. To use net_monitor a normal user have to insert the root password. I would like to change the default and create a group of users that can use net_monitor without insert any password.
Does anybody know how to do this?

thanks

Diego
 
Old 07-20-2003, 11:04 AM   #2
hexbit
Member
 
Registered: Jun 2003
Location: Dallas, Tx
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
Try using the sudo command. It allows normal users to run certain programs w/o having to type root's password. Do a `man sudo` at the command prompt for more information.
 
Old 07-20-2003, 11:21 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
The other option, the one you are digging at...

Let's say the file that you need the set of users to execute is /usr/local/netup
We need to first create a group:
groupadd -u 12345 netup
You can use whatever gid you want, just make sure it's not already being used in your /etc/group file. Now we will need to add users to that group:
usermod -G netup teddy
If teddy is your user. Now, we will want to own that file to this group:
chgrp netup /usr/local/netup
And finally, ensure that group privileges have at least the execute bit set:
chmod 710 /usrl/local/netup
This will give root (assuming root is the owner) full access, netup group the group access ONLY AS execute (which should be all they need on an executable binary file) and no one else (the 0 means no one outside of root or that group can use that file).

HTH

Cool
 
Old 07-21-2003, 11:51 AM   #4
-=MaGo=-
Member
 
Registered: Jun 2003
Location: Italy
Distribution: mandrake; debian
Posts: 33

Original Poster
Rep: Reputation: 15
thanks MasterC,
but I still have some problems...
I followes your instructions but I can not run net_monitor as normal user
this is what I get id I type as root: # ls -al net_monitor.real
-rwx--x--- 1 root netusers 21817 Jul 21 08:34 net_monitor.real*

netuser is the name of the group
I checked to be member of this group, and I am
in the /etc/group file there is the line: netusers:x:1000:diego

diego is the user I want it can use net_monitor

???
what I did wrong
the only way to use net_monitor as a normal user is to set all permitions: #chmod 777 net_monitor.real
but it is not what I want

Thanks again for your help

Ciao

Diego
 
  


Reply



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
Mandrake 9.2b2: Unable to find / launch Mandrake Control Center blafield Mandriva 2 06-12-2009 03:38 AM
dual booting fedora core 2 and mandrake: can't boot mandrake any more mgyamada Fedora 1 10-04-2004 07:39 AM
Completely new to Linux, Downloaded Mandrake 10 and want to run both XP and Mandrake Scandal Mandriva 4 06-28-2004 10:03 PM
Upgrading Mandrake 9.1RC2 to Mandrake 9.2 final Without ISOs johnleemk Mandriva 1 12-27-2003 12:17 AM
Uninstalled Mandrake, Installed Slackware, still getting mandrake boot screen powerismine Slackware 4 11-22-2002 06:51 AM

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

All times are GMT -5. The time now is 05:52 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
Open Source Consulting | Domain Registration