Linux - DistributionsThis 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
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.
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.
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?
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.
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).
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.