Thanks Ravinder,
Using -a option in usermod, you can easily add the user to another group.In my below example, I added john to asmoper group using -a option as shown below
I was hoping for a similair short command to remove just one group from a user. Using your method,I need to list all the groups I want to keep. It could be confusing if the user belongs to several groups
For eg: If I want to remove secondary group asmadmin from john user, I need to list asmoper,asmdba groups which I want to keep after -G
Hi!!,
I am on HP UX -11. I have created a new group and want to assign some the users to this group without changing their existing group ( The new group is the secondary group for them)
Any ideas how to do it??
SAM doesnt seem to be working.. Any way of doing it from command line??
... (1 Reply)
Is there a command or better combination of cmds that will give me the list of Unix users in a particular Unix group whether their primary group is that group in question (information stored in /etc/passwd) or they are in a secondary group (information stored in /etc/group).
So far all I got... (5 Replies)
Experts,
I know when I use id it shows only the primary group information for the given user, and that info comes from passwd file. When I use groups it shows all groups user are member of, however from where come information given by groups command?
grep fmtt3990 /etc/passwd... (6 Replies)
Hi,
When I include a user to the secondary group "sys" GID=3 in Solaris 9 OS I'm not able to login. I get these error. The user home directory and the shell exists. Is this because of any security hardening.
# su - agent
No directory!
# su agent
su: No shell
# grep taddm /etc/passwd... (14 Replies)
We have created ACL's to allow two differnet groups to access some directories. You can see output from getfacl below.
group::rwx
group:rbauser:r--
The original group has full access, the secondary group has read only. However users in the secondary group can't see the directories. Think this... (1 Reply)
Hi I am facing problem of taking backup of file system as username1.
There are some files in system which is having group ownership as nobody.
and username1 is not able to open this file and backup is failing .Even as a root user I can not open this file.
File which is creating problem is ... (1 Reply)
Hi,
I would like to know how to find our secondary group of user only.
I have used the command id -Gn user1
it is showing both groups of user.
Primary and secondary group. (2 Replies)
Hello,
i try to add user john to secondary group, named groupB
this will add as primary group,
how can i add to secondary group??
dn: cn=groupB,ou=Groups,dc=ldap-server,dc=com
changetype: modify
add: memberuid
memberuid: john (1 Reply)
Discussion started by: prpkrk
1 Replies
LEARN ABOUT DEBIAN
doveadm-user
DOVEADM-USER(1) Dovecot DOVEADM-USER(1)NAME
doveadm-user - Perform a user lookup in Dovecot's userdbs
SYNOPSIS
doveadm [-Dv] user [-a userdb_socket_path] [-f field] [-x auth_info] user ...
DESCRIPTION
The user command is used to perform a user lookup - to show what information Dovecot sees about the user(s), or if it exists at all in the
configured userdb(s).
The auth_info may be useful when the userdb is for example a SQL database and you are using %variables, like %s or %l, in the user_query
setting. Or when you have configured the userdb in a way like this:
userdb {
driver = passwd-file
args = /etc/%s.passwd
}
OPTIONS
Global doveadm(1) options:
-D Enables verbosity and debug messages.
-v Enables verbosity, including progress counter.
Command specific options:
-a userdb_socket_path
This option is used to specify an absolute path to an alternative UNIX domain socket.
By default doveadm(1) will use the socket /var/run/dovecot/auth-userdb. The socket may be located in another directory, when the
default base_dir setting was overridden in /etc/dovecot/dovecot.conf.
-f field
When this option and the name of a userdb field is given, doveadm(1) will show only the value of the specified field.
-x auth_info
auth_info specifies additional conditions for the user command. The auth_info option string has to be given as name=value pair.
For multiple conditions the -x option could be supplied multiple times.
Possible names for the auth_info are:
service
The service for which the userdb lookup should be tested. The value may be the name of a service, commonly used with Dove-
cot. For example: imap, pop3 or smtp.
lip The local IP address (server) for the test.
rip The remote IP address (client) for the test.
lport The local port, e.g. 143
rport The remote port, e.g. 24567
ARGUMENTS
user Is a user's login name. Depending on the configuration, a login name may be for example jane or john@example.com. It's also possi-
ble to use '*' and '?' wildcards (e.g. -u *@example.org).
EXAMPLE
Perform a user lookup for the users jane and john@example.com.
doveadm user jane john@example.com
userdb: jane
uid : 8001
gid : 8001
home : /home/jane
mail : sdbox:~/sdbox
plugins : sieve
quota_rule: *:storage=150M
userdb: john@example.com
home : /srv/mail/8/70312/79832
uid : 79832
gid : 70312
mail : mdbox:~/mdbox
The next example shows a user lookup, using wildcards.
doveadm user *.?oe@example.net
jane.doe@example.net
judy.roe@example.net
john.doe@example.net
REPORTING BUGS
Report bugs, including doveconf -n output, to the Dovecot Mailing List <dovecot@dovecot.org>. Information about reporting bugs is avail-
able at: http://dovecot.org/bugreport.html
SEE ALSO doveadm(1)Dovecot v2.1 2011-11-04 DOVEADM-USER(1)