kanotix.com

General Support - Users and groups

kb0hae - 01.08.2006, 03:03 Uhr
Titel: Users and groups
Hi. I just added a new user acount, and had quite a problem getting it set up so he could use the dial-up connection here. I found out that for him to be able to connect he had to be a member of the DIP group to be able to use pppd. I think there was at least 1 other group he had to be added to so he could use KPPP.

Is there a list of what all the groups are and what priveleges membership gives a user?
piper - 01.08.2006, 03:23 Uhr
Titel: RE: Users and groups
dial-out and dip is all i needed for my week on dial-up i believe Winken
Swynndla - 01.08.2006, 12:17 Uhr
Titel: Re: Users and groups
kb0hae hat folgendes geschrieben::
Is there a list of what all the groups are and what priveleges membership gives a user?

I might be wrong, but no I don't think there is.

This command shows all the groups:
cat /etc/group

You might like this gui instead:
K > System > KUser

This command:
ls -lh /usr/sbin/pppd
and this command:
ls -lh /usr/bin/kppp
show that the apps are executable by the group "dip"

Other than that, you'd need to understand the command line file structure of the app in question.
kb0hae - 03.08.2006, 07:12 Uhr
Titel: RE: Re: Users and groups
Hi Guys. I have looked at KUser, in fact have used it. Unfortunatly not all the group names are intuitive. While some are listed by the directory or subdirectory that they give access to, some probably allow access only to certaun files. Without knowing exactly what privileges membership in each group confers on a user, how can one know how to assign group membership? I guess isubg the command above would help if you know exactly what apps a user needs to run. A list as I originally requested would be much more handy.

Thanks for the info!
John - 03.08.2006, 12:22 Uhr
Titel: RE: Re: Users and groups
i give my new users all the groups the original user has, so everything works fine
jiro - 04.08.2006, 03:29 Uhr
Titel: RE: Re: Users and groups
that's what i do too, but it would be much nicer if there was a list with explanations so i could actually understand what i was doing instead of just guessing.

also: is there a way to copy all of one user's group memberships at once? right now when i create a new user account i need to go thru kuser and check each checkbox manually. a little annoying that way.
John - 04.08.2006, 08:40 Uhr
Titel: RE: Re: Users and groups
#!/bin/sh
#adds user youruser to the group yourgroup
adduser youruser yourgroup

for exmaple adduser jiro lpadmin

just write this once fpr all groups and replace youruser with the user you want to add (with kate for example you can replace all "youruser" with "jiro" by using the replace-option)
you got to make the script executable with chmode +x /path/to/scrip/script

execute it with /path/to/script/script

when youre in the same directory execute it with ./script
jiro - 05.08.2006, 03:25 Uhr
Titel: RE: Re: Users and groups
yep, looks like that will work fine. thank you!
kb0hae - 06.08.2006, 12:41 Uhr
Titel: RE: Re: Users and groups
Hi Folks. After MUCH searching (must have used the wrong search terms!) on the net, I finally found a partial list with explanations. That page refered me to a document on my own system (!!!) that gives a fairly good overview of what group membership in the "standard groups" means. Navigate to /usr/share/doc/base-passwd, and look at the users-and-groups.html file.

Happy reading! Sehr glücklich
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007