05-21-2017
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.
The email id will be the suffix of the respective username.
**I Would be thankful if you can write a code as am new to UNIX **
Regards,
Vijay.
Last edited by vijay2107; 05-21-2017 at 02:32 AM..
10 More Discussions You Might Find Interesting
1. Cybersecurity
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
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
Hi all
usermod -G Group_id login
it is replacing the existiong Secoundry groups and is adding the only group speced in usermod command
how can we retain the existing secoundry groups and add a user to a new group (6 Replies)
Discussion started by: pbsrinivas
6 Replies
4. UNIX for Dummies Questions & Answers
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
5. UNIX for Dummies Questions & Answers
Is there a way to find out all users and the UNIX groups they belong to??
:) (3 Replies)
Discussion started by: Hangman2
3 Replies
6. Solaris
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
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
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 Dummies Questions & Answers
Happy Thanksgiving Everyone!! I have a question about adding users to multiple groups. Thanks in advance
Using Red Hat and here are the issues:
Example:
Users:
Bob
Mark
Groups:
SystemsAnalysts
BusinessAnalysts
If I am adding a user Bob to both groups (SystemsAnalysts and... (2 Replies)
Discussion started by: hansokl
2 Replies
10. UNIX for Advanced & Expert 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
LEARN ABOUT DEBIAN
eurephiadm-fwprofiles
eurephiadm fwprofiles(7) eurephiadm fwprofiles(7)
NAME
eurephiadm-fwprofiles - Configuring eurephia firewall profiles
SYNOPSIS
eurephiadm fwprofiles --list|-l [-v|--verbose] [-a|--accessprofile <acc. ID>] [-f|--fw-destination <name>] [-i|--uid <user ID>]
[-n|--username <username>] [-c|--certid <cert ID>] [-e|--email <e-mail address>] [-d|--digest <certificate SHA1 digest>]
eurephiadm fwprofiles --add|-A [-d|--description <Description>] [-f|--fw-destination <name>]
eurephiadm fwprofiles --delete|-D [-a|--accessprofile <acc. ID>] [-f|--fw-destination <name>]
DESCRIPTION
The eurephia plug-in can take advantage of the OS firewall to give a fine grained access control of each OpenVPN client. The preconfigured
firewall chains available to eurephia needs to be defined using this eurephiadm command. When the firewall profiles are defined here, they
can be assigned to the different user accesses you have enabled.
MODES
Available modes for the fwprofiles command are:
-A | --add
[-d|--description <Description>] [-f|--fw-destination <name>]
Add a new firewall profile. Both --description and --fw-destination are required. The --description is just to give a human read-
able description of the firewall profile name and is only used in the different reports available in eurephiadm.
-D | --delete
[-a|--accessprofile <acc. ID>] [-f|--fw-destination <name>]
Delete a firewall profile. Either --accessprofile or --fw-destination must be provided.
-l | --list
[-v|--verbose] [-a|--accessprofile <acc. ID>] [-f|--fw-destination <name>] [-i|--uid <user ID>] [-n|--username <username>]
[-c|--certid <cert ID>] [-e|--email <e-mail address>] [-d|--digest <certificate SHA1 digest>]
List available firewall profiles. Without any arguments, a simple overview over all registered firewall profiles. If the --verbose
argument is given, the list will be more comprehensive.
The rest of the arguments are filters which is used to reduce the length of the list. Multiple filters may be added, but they will
only work as additional "AND" argument in the query.
-h | --help
<mode> Show a help screen. Without any arguments, all modes are listed. Providing a mode will show more information about the cho-
sen mode.
FILTERS
These filters are used by the --list mode.
-a | --accessprofile <id>
Numeric ID defining the access profile ID.
-f | --fw-destination <name>
The firewall reference for the chain used by the OS when filtering the OpenVPN client traffic.
-i | --uid <user id>
Numeric user ID
-n | --username <username>
User name
-c | --certid <certid>
Numeric reference to a certificate
-e | --email <email addr>
e-mail address in certificates
-d | --digest <SHA1 digest>
Certificate SHA1 digest
SEE ALSO
eurephiadm(7), eurephiadm-usercerts(7)
AUTHOR
Copyright (C) 2008-2010 David Sommerseth <dazo@users.sourceforge.net>
David Sommerseth July 2010 eurephiadm fwprofiles(7)