Networking Forums

Networking Forums > Computer Networking > Linux Networking > group membership needed for looking at network usage?

Reply
Thread Tools Display Modes

group membership needed for looking at network usage?

 
 
frwarner
Guest
Posts: n/a

 
      11-05-2005, 09:04 AM
Does a user need to belong to a certain group to be allowed to start a
program that shows network load (like knemo)? Some of my users can and
some can't, don't know why not.

 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      11-05-2005, 05:48 PM
In the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed). com>, frwarner wrote:

>Does a user need to belong to a certain group to be allowed to start a
>program that shows network load (like knemo)?


Depends on the permissions and ownership of the binary. Try

ls -l /path/to/knemo

>Some of my users can and some can't, don't know why not.


What happens when they try - does the computer catch fire or something?

1. Use the 'id' command to see what group(s) each user belongs to (man id)
2. Look at the user's PATH (echo $PATH) to see if they can reach the binary

Binaries beginning with the letter 'k' are often a windoze wanna-be from
KDE. See if the desktops have been set up in the same manner. I can't
help there, as I never saw the need for KDE or the comparable mess from
Gnome.

Old guy
 
Reply With Quote
 
frwarner
Guest
Posts: n/a

 
      11-05-2005, 07:51 PM

Moe Trin wrote:
> >Does a user need to belong to a certain group to be allowed to start a
> >program that shows network load (like knemo)?

>
> Depends on the permissions and ownership of the binary. Try
> ls -l /path/to/knemo
> 1. Use the 'id' command to see what group(s) each user belongs to (man id)
> 2. Look at the user's PATH (echo $PATH) to see if they can reach the binary


Thanks for replying. This particular (knemo) problem is resolved now,
BTW, but one more point:
Yes, I understand that the binary must be in the PATH and of course be
readable; I know how file permissions work, and the groups are also
easy to see in /etc/group. But there's also another, more subtle and
tricky problem: some programs just don't work for some users. E.g.
several programs run only as root; everyone else may well be able to
run the binary, and it will start, but not work. Typical example:
mount/umount; the info who can use it is not in the filesystem (rx
permissions for everyone) but someplace else (/etc/fstab in this case).
And I don't know a general way of finding that "someplace else". Do
you?

And if the decision is based on group permissions the filesystem, it is
not clear which group is relevant. Half of the group names in
/etc/group are not self explaining. Is there any documentation
explaining what uucp, xok, pkcs11, icecream are? I know none.

> Binaries beginning with the letter 'k' are often a windoze wanna-be from
> KDE. See if the desktops have been set up in the same manner. I can't
> help there, as I never saw the need for KDE or the comparable mess from
> Gnome.


True, but as I just explained, for command-line progs it also not easy
to find the group.

 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      11-05-2005, 11:53 PM
In the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>, frwarner wrote:

>Yes, I understand that the binary must be in the PATH and of course be
>readable;


Actually, neither is true. If the binary is not in the PATH, you can
still run it by supplying the full path in the command. This is why
you often see a user running '/sbin/ifconfig' which works perfectly
well. As for the file being readable,

[compton ~]$ ls -l /bin/sudo
---s--x--x 1 root root 46080 May 6 2004 /bin/sudo
[compton ~]$

binaries don't have to be readable, they need only be executable. A
shell script on the other hand does need to be both readable and
executable to run

>But there's also another, more subtle and tricky problem: some programs
>just don't work for some users. E.g. several programs run only as root;
>everyone else may well be able to run the binary, and it will start, but
>not work.


Yes, there are a number of binaries that only root can run, even if
the user has execute permission.

>Typical example: mount/umount; the info who can use it is not in the
>filesystem (rx permissions for everyone) but someplace else (/etc/fstab
>in this case). And I don't know a general way of finding that "someplace
>else". Do you?


You hit one of the good ones - did you check the man page? In the case
of mount (and umount), it's mentioned in there. Generally, when you
are dealing with hardware (the disk for example, or the network), or
places where the command will impact other users, you need to be
super-user, or root needs to have done something to allow users to do
things. I'm thinking this is covered in at least two of the LDP guides
(http://tldp.org/guides.html) - though I don't have them on this system.

>And if the decision is based on group permissions the filesystem, it is
>not clear which group is relevant. Half of the group names in
>/etc/group are not self explaining.


A lot of the groups are there for "traditional" reasons, as well as
file ownership. You could make all files owned by root, but there are
some that need _slightly_ elevated permissions, but not everything. Try
this:

for GROUP in `cut -d: -f1 < /etc/group | grep -v root`
do
find / -group $GROUP -exec ls -lad {} \; >> /tmp/group.ownership
done

These four lines are meant to be run as a shell script. You can also
run this manually - one group at a time from the command line as in

find / -group admin -exec ls -lad {} \;

You may need to run that as root, as some directories don't have read
permission for the common user. Note that some groups may exist that
have no members, and seem to own no files/directories. One example is
"nobody" - both a user and group that normally has no special
permission, and is used for administrative tasks that don't require
permissions, such as creating the 'whatis' files.

>Is there any documentation explaining what uucp, xok, pkcs11,
>icecream are? I know none.


Of those, only group 'uucp' is a standard. 'UUCP is a Unix to Unix transfer
mechanism. It was used primarily for remote sites to download and upload
email and news files to local machines before the Internet became common.
If you didn't already know that, you probably don't need it, but it's not
uncommon to find the serial ports owned by that group, as that's where
the modem lived.

>True, but as I just explained, for command-line progs it also not easy
>to find the group.


A lot depends on how your administrator (or lacking that, the people
who created your distribution) set things up. Most _users_ do not have
any permission to muck with the system. You can use the 'group' or 'id'
command to see what your users belong to - usually only 'users' but
this is distribution dependent.

Old guy
 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      11-06-2005, 08:31 AM
> In the Usenet newsgroup comp.os.linux.networking, in article
> <(E-Mail Removed) .com>, frwarner wrote:
>
>>Is there any documentation explaining what uucp, xok, pkcs11,
>>icecream are? I know none.



uucp was already responded to,
icecream is a distributed compiling system (SUSE),
xok seems to be an user group by SUSE,
pkcsll seems to be the PKCS standard 2, public
key cryptographic system


<http://wiki.kde.org/tiki-index.php?page=icecream>,
<http://www.rsasecurity.com/rsalabs/node.asp?id=2124>

Google is your friend here.

--

Tauno Voipio
tauno voipio (at) iki fi
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN, RAP user group membership NVVN Windows Networking 0 01-20-2010 04:13 AM
Enumerate group membership for computer accounts Jose Santos Windows Networking 0 10-15-2008 09:03 AM
Dynamic VLAN Membership TheDragon Wireless Internet 2 05-05-2008 06:26 PM
Forest membership question Jon Rowlan Windows Networking 2 12-29-2006 08:28 AM
Local Group Membership Enforced via GPO? nadime Windows Networking 0 06-28-2006 06:37 PM



1 2 3 4 5 6 7 8 9 10 11