Wednesday, 15 June 2022
Linux - HA Cluster Maintenance
Sunday, 12 June 2022
Creating and modifying user in Linux
Creating and modifying user in Linux
By default when you Install Linux Operating system a user will be created and that user will have full sudo privilege. However when ever you create a user after installing OS, you will need to provision required privilege for that user. In this blog i will show you few commands with useradd and usermod.
The following user karthick has been created when OS was installed and this user is added to the Wheel group to get the sudo privilege. User karthick can run privileged commands with his password.
To create a normal user in command line providing the users home directory and UID we will use as -d to specify user home directory and -u for UID.
#useradd -d <Path_To_User's_HomeDirectory> -u UID
UID is a unique identifier number used to identify the user.
Adding users to this wheel group will gain complete root access for the user.
If you do not want user to have complete root access and instead provide granular or role based access we can provision that through sudo template. you can create a sudoers template/drop-in file under /etc/sudoers.d directory.
We will see about sudoers template file in much more detail in upcoming blogs.
Wednesday, 10 November 2021
zmprov commands in zimbra
zmprov commands in zimbra
zmprov commands are used for provisioning in zimbra.
syntax - zmprov command argument
gaà Get account – gets current value
maà Modify account – modifies current value to specified value.
gcfà get configuration – gets current configuration
mcfà modify configuration – Modifies current configuration to specified
configuration.
1. To Change display name for a single user
$zmprov ga user@domain.com | grep displayName
displayName: User Name
$zmprov ma user@domain.com displayName "User Name1"
$zmprov ga user@domain.com | grep displayName
displayName: User Name1
$zmprov ga user@domain.com | grep zimbraPrefFromDisplay
2. To Modify Mail attachment size
Check current value
zmprov gcf zimbraMtaMaxMessageSize
zmprov gcf zimbraFileUploadMaxSize
zmprov gcf zimbraMailContentMaxSize
Modify size
zmprov mcf zimbraMtaMaxMessageSize 20971520
zmprov mcf zimbraFileUploadMaxSize 20971520
zmprov mcf zimbraMailContentMaxSize 52428800
3. To get &Modify Mail forwarding
address.
zmprov ga user@domain.com zimbraPrefMailForwardingAddress
zmprov ma user@domain.com zimbraPrefMailForwardingAddressforward@domain.com
Monday, 8 November 2021
Install Zimbra on Centos 8
Install Zimbra on Centos 8
- Set a Fully Qualified Hostname(FQDN) = mail.jkzimbra.com
- Update host file entry for the host in format - <ip> <FQHN> <HN>
- Configure a static ip = 192.168.142.128
- For now we can stop and disable firewalld, iptables, selinux. In later blogs we can go through how to configure these along with zimbra.
- Install and set-up dns with a A and MX record. Here we will use dnsmasq software to accomplish this.
- Finally update the system to latest patch level with yum update.
- Download the zimbra setup from zimbra.com site. and place it in the server.
- It is better to have a separate LVM for /opt as the whole zimbra setup and configuration will reside at this mount point.
Step 3: Update host file to reflect as below with FQDN
Step 4:Set a static IP
Step 7: Download zimbra setup and move it to the server in /tmp or /home.
Enabling Server Statistics Display. In order for the server statistics to display on the administration console, the syslog configuration files must be modified.
Admin account is already created during installation where you will get all zimbra service related emails. lets login and see how the web email looks,
Yay!! we got some emails. remember these are not external emails. we only get internal email until we set public dns.
Saturday, 6 November 2021
CronJob
Setting host name in CentOS Linux 8
Thursday, 4 November 2021
Configure local repository on Ubuntu
Configure local repository on Ubuntu
Prerequisites:
· Install apt-utils
· Install dpkg-dev
Server-side configuration:
1. Download required packages in one machine.
2. Create a directory in /var/www/ as below,
Now move to the binary directory,
4. Move your downloaded packages to this directory.
5. Create a file named Packages which apt-get can read using the following command,
# apt-ftparchive packages >
Packages
6. Now create a zip file of that Packages file created above using below command,
# gzip -c Packages >
Packages.gz
Client-side configuration :
1. Change the internet configurations with no internet.
2. Edit the /etc/apt/sources.list file as shown below,
deb http://yourIP/localrepo/pkg/binary /
And hash all other lines. Save and exit.
3. Issue apt-get update the changes you made in sources.list will be updated and you will get a message like below,
Reading packages lists….. Done.
4. Once successfully verifying the sources you can start installing any package available from your local repository using apt-get.
# apt-get install package_name
Note : you will get a warning like package is not
authenticated just continue with yes and the package will be downloaded.