Sponsored Content
Full Discussion: Users in multiple groups?
Top Forums UNIX for Dummies Questions & Answers Users in multiple groups? Post 302576624 by cero on Friday 25th of November 2011 10:47:31 AM
Old 11-25-2011
I guess he figured it out reading the usermod manpage:
Quote:
NAME
usermod - modify a user account
...
-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
A list of supplementary groups which the user is also a member of.
Each group is separated from the next by a comma, with no
intervening whitespace. The groups are subject to the same
restrictions as the group given with the -g option. If the user is
currently a member of a group which is not listed, the user will be
removed from the group.
This behaviour can be changed via the -a
option, which appends the user to the current supplementary group
list.
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

Users and groups

Hi, Is it possible that one user belongs to many groups, or the relation of user/group is 1/1?. Thanks Ramón (2 Replies)
Discussion started by: rsanz
2 Replies

2. Linux

listing users and groups

RH 7.2 I'm trying to list the users & groups on my machine. I found the lsuser & lsgroup commands but no associated man pages. I typed: lsuser I get --> Valid options are: -a So I typed: lsuser -a I get --> Valid options are: groups, home So I typed: lsuser -a groups I get -->... (2 Replies)
Discussion started by: jalburger
2 Replies

3. UNIX for Dummies Questions & Answers

users and groups

hi eveyone i've recently requested my unix admin to create a userid for 2 groups. He created the id and i can see it by grep "id" /etc/group. But when i login with that id into unix and try to cd that group it says permission denied. something like cd /groupname -- permission denied Can my admin... (1 Reply)
Discussion started by: sammet
1 Replies

4. UNIX for Dummies Questions & Answers

Finding out all users and their UNIX groups??

Is there a way to find out all users and the UNIX groups they belong to?? :) (3 Replies)
Discussion started by: Hangman2
3 Replies

5. Solaris

Defaults number of users and Groups

Hi All, I would like know how many of default number of users and groups are there in solaris-10... Regards Tirupathi Raju (2 Replies)
Discussion started by: tirupathiraju_t
2 Replies

6. Solaris

Removing users from groups

How do I remove a user from a group? I'm using the usermod command but its not working. I have a user "abc" who is a member of the groups root and other. I'm trying to remove him from the group "other" (using CLI) which is his secondary group but it's not working. How do I do this? Is there any... (11 Replies)
Discussion started by: the_red_dove
11 Replies

7. UNIX for Dummies Questions & Answers

List users and groups

Hi I am new to unix so hopefully someone can help. I need to list all the users I have in my unix enviroment (AIX) and the groups (primary and secondary) they belong to. Can anyone help? Many thanks in advance (2 Replies)
Discussion started by: m3y
2 Replies

8. Shell Programming and Scripting

users and groups /etc/group parsing

Hi, I have two little issues: 1) there is possible in sh to create a function who return a boolean value? 2)i have to verify if an user belongs to a group and i think it is needed to create a function which take two parameter and return a boolean value. in fact i have to parse /etc/group... (5 Replies)
Discussion started by: catalint
5 Replies

9. UNIX for Advanced & Expert Users

Creating groups and users

Hi Could anyone please suggest how we can check in Linux if a user or a group name is already existing? In case of a user the command should also be able to specify the user with a given directory and shell. We can of course check this using a grep command but since that is just a pattern match,... (12 Replies)
Discussion started by: Dorothy
12 Replies

10. UNIX for Beginners Questions & Answers

Email the users about their existing groups

Hi Guys, I want a script where in I need to send an email to individual users about their groups. OS:unix redhat Shell :Bash. The mail should be like,"Hi &username , you are in part of &group1,&group2 .." I need to mail to their personal email id mostly @outlook. Not to their UNIX.... (1 Reply)
Discussion started by: vijay2107
1 Replies
AppleVolumes.default(5) 					File Formats Manual					   AppleVolumes.default(5)

NAME
AppleVolumes.default - Configuration file used by afpd(8) to determine the shares made available through Appletalk DESCRIPTION
/etc/atalk//AppleVolumes.default is the configuration file used by afpd to determine what portions of the file system will be shared via Appletalk, as well as their behaviors. Any line not prefixed with # is interpreted. The configuration lines are composed like: path [ chooser name ] [ options ] The path name must be a fully qualified path name, or a path name using either the ~ shell shorthand or any of the substitution variables, which are listed below. The chooser name is the name that appears in the Chooser on Macintoshes to represent the appropriate share. If there are spaces in the name, it should be in quotes (i.e. "File Share"). The chooser name may not exceed 27 characters in length, and cannot contain the : charac- ter. The possible options and their meanings are: allow:[users/groups] The allow option allows the users and groups that access a share to be specified. Users and groups are specified, delimited by com- mas. Groups are designated by a @ prefix. Example: allow:user1,user2,@group casefold:[option] The casefold option handles how casenames should be mangled. The available options are: tolower - Lowercases names in both directions. toupper - Uppercases names in both directions. xlatelower - Client sees lowercase, server sees uppercase. xlateupper - Client sees uppercase, server sees lowercase. codepage:[nls file] The codepage option loads a specific codepage from the nls directory. dbpath:[path] Sets the database information to be stored in path. deny:[users/groups] The deny option specifies users and groups who are not allowed access to the share. It follows the same format as the allow option. options:[option] This allows multiple options to be specified in a comma delimited format. The available options are: crlf - Enables crlf translation for TEXT files. dropbox - Allows a volume to be declared as being a "dropbox." Note that netatalk must be compiled with dropkludge support for this to function. limitsize - Hack for older Macintoshes using newer Appleshare clients to limit the disk size reporting to 2 GB. mswindows - Forces filename restrictions imposed by MS WinXX, and invokes the MS default codepage (iso8859-1) if one is not already specified. noadouble - Forces afpd to not create .AppleDouble unless a resource fork needs to be created. nohex - Disables :hex translations for anything except dot files. This option makes the / character illegal. prodos - Provides compatibility with Apple II clients. ro - Specifies the share as being read only for all users. usedots - Don't do :hex translation for dot files. This makes all files such as .Parent, .Apple* illegal. Dot files created on the server side will be invisible to the client. password:[password] This option allows you to set a volume password, which can be a maximum of 8 characters long. rolist:[users/groups] Allows certain users and groups to have read-only access to a share. This follows the allow option format. rwlist:[users/groups] Allows certain users and groups to have read/write access to a share. This follows the allow option format. The variables which can be used for subsitutions are: $c client's ip or appletalk address $f full name (contents of the gecos field in the passwd file) $g group name $h hostname $s server name (this can be the hostname) $u user name (if guest, it is the user that guest is running as) $v volume name (either ADEID_NAME or basename of path) $z appletalk zone (may not exist) $$ prints dollar sign ($) SEE ALSO
afpd(8) 4th Berkeley Distribution 20 September 2000 AppleVolumes.default(5)
All times are GMT -4. The time now is 05:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy