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