<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mannan Bhuiyan on Medium]]></title>
        <description><![CDATA[Stories by Mannan Bhuiyan on Medium]]></description>
        <link>https://medium.com/@mash.bhuiyan?source=rss-37b6262fd284------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zpT-IH4YzLm1SyIKBEqPgQ.jpeg</url>
            <title>Stories by Mannan Bhuiyan on Medium</title>
            <link>https://medium.com/@mash.bhuiyan?source=rss-37b6262fd284------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:04:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mash.bhuiyan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building an AWS Audio Redaction Pipeline with PII Masking and FFmpeg]]></title>
            <link>https://medium.com/@mash.bhuiyan/building-an-aws-audio-redaction-pipeline-with-pii-masking-and-ffmpeg-f28d8b6edf30?source=rss-37b6262fd284------2</link>
            <guid isPermaLink="false">https://medium.com/p/f28d8b6edf30</guid>
            <dc:creator><![CDATA[Mannan Bhuiyan]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 13:49:37 GMT</pubDate>
            <atom:updated>2026-01-06T13:49:37.123Z</atom:updated>
            <content:encoded><![CDATA[<p>Handling audio data that contains <strong>Personally Identifiable Information (PII)</strong> is a common challenge across industries such as contact centers, healthcare, and finance. Organizations often need to <strong>transcribe audio, redact sensitive information, and produce a clean redacted audio file</strong> — all in a scalable and automated way.</p><p>In this blog, I’ll walk through an <strong>AWS-based Audio Redaction Solution</strong> that uses managed services and serverless components to achieve exactly that.</p><h3>Solution Overview</h3><p>This solution deploys an <strong>end-to-end AWS pipeline</strong> that:</p><p>Accepts <strong>MP3 or WAV audio files</strong></p><p>Transcribes audio using <strong>Amazon Transcribe</strong></p><p>Redacts PII from the transcription</p><p>Generates <strong>redacted audio output</strong> using <strong>FFmpeg on AWS Lambda</strong></p><p>Stores structured outputs in <strong>Amazon S3</strong></p><p>Everything is deployed using <strong>AWS CloudFormation</strong>, making the setup repeatable and production-ready.</p><h3>Architecture at a Glance</h3><p><strong>High-level flow:</strong></p><p>1.Audio file is uploaded to an S3 input bucket</p><p>2. A Lambda function triggers an Amazon Transcribe job</p><p>3. Transcription output is analyzed and PII is identified</p><p>4. FFmpeg processes the original audio to mute or mask sensitive segments</p><p>5. Redacted audio and JSON outputs are stored in S3</p><p>This approach is fully serverless, scalable, and cost-efficient.</p><h3>Prerequisites</h3><p>Before deploying the solution, make sure you have:</p><p>An <strong>AWS account</strong> with permissions to create:</p><p>CloudFormation stacks</p><p>Lambda functions</p><p>IAM roles</p><p>S3 buckets</p><p>An <strong>FFmpeg Lambda Layer ARN</strong> deployed in your account</p><p>A supported Lambda runtime (<strong>Python 3.9</strong> is used in this guide)</p><p>Step 1: Deploy the FFmpeg Lambda Layer</p><p>Since FFmpeg is not available by default in AWS Lambda, we use a <strong>pre-built Lambda Layer</strong> that includes both <strong>FFmpeg and FFprobe</strong>, compatible with Amazon Linux 2.</p><h3>How to deploy the layer:</h3><ol><li>Navigate to the <strong>AWS Serverless Application Repository</strong></li></ol><p>2. Search for an FFmpeg Lambda Layer</p><p>3. Click <strong>Deploy</strong></p><p>4. Follow the prompts to deploy it into your AWS account</p><p>5. Copy the generated <strong>Layer ARN</strong>, for example:</p><pre>arn:aws:lambda:us-east-1:&lt;account-id&gt;:layer:ffmpeg:1</pre><p>This ARN will be referenced later in the CloudFormation template.</p><h3>Step 2: Create the CloudFormation Stack</h3><p>The entire pipeline is provisioned using a single CloudFormation template.</p><h3>Deployment steps:</h3><ol><li>Open the <strong>AWS CloudFormation Console</strong></li><li>Click <strong>Create stack → With new resources (standard)</strong></li><li>Choose <strong>Template is ready</strong></li><li>Upload the audio-redaction.yaml template</li><li>Enter a stack name (e.g., aws-redacted-audio)</li><li>Provide required parameters:</li></ol><ul><li>Input S3 bucket name</li><li>Output S3 bucket name</li><li>FFmpeg Lambda Layer ARN</li></ul><p>7.Acknowledge IAM resource creation</p><p>8.Click <strong>Create stack</strong></p><p>This template:</p><p>Supports <strong>MP3 and WAV</strong> audio formats</p><p>Uses <strong>Python 3.9</strong> for Lambda functions</p><p>Accepts an external <strong>FFmpeg Layer ARN</strong> as a parameter</p><h3>Step 3: Upload and Test the Pipeline</h3><p>Once the stack is deployed, you can validate the solution end to end.</p><h3>Testing steps:</h3><p>Upload an <strong>MP3 or WAV</strong> file to the input S3 bucket</p><p>Monitor <strong>CloudWatch Logs</strong> for the transcription Lambda function</p><p>Verify the transcription job in the <strong>Amazon Transcribe Console</strong></p><p>Check the output S3 bucket for:</p><p>Transcription JSON files under output_json/</p><p>Redacted audio files under redacted_audio/</p><p>Confirm that the FFmpeg Lambda function processed and uploaded the redacted audio.</p><p>If everything is configured correctly, the pipeline will run automatically without manual intervention.</p><h3>Why This Approach Works Well</h3><p><strong>Serverless &amp; scalable</strong> — no infrastructure to manage</p><p><strong>Security-focused</strong> — sensitive data is redacted early in the pipeline</p><p><strong>Reusable &amp; automated</strong> — CloudFormation ensures consistency</p><p><strong>Format flexibility</strong> — works with both MP3 and WAV inputs</p><p>This architecture is well-suited for compliance-driven environments where data privacy is critical.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f28d8b6edf30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design: A Step-by-Step Guide for Scalable Architectures]]></title>
            <link>https://medium.com/@mash.bhuiyan/system-design-a-step-by-step-guide-for-scalable-architectures-3422614e8a57?source=rss-37b6262fd284------2</link>
            <guid isPermaLink="false">https://medium.com/p/3422614e8a57</guid>
            <dc:creator><![CDATA[Mannan Bhuiyan]]></dc:creator>
            <pubDate>Sun, 15 Sep 2024 06:03:43 GMT</pubDate>
            <atom:updated>2024-09-15T06:03:43.623Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s tech landscape, designing scalable and efficient systems is critical for ensuring reliability and performance. Whether you’re designing a distributed application, building APIs, or optimizing data flow, approaching system design methodically is key. Below is a structured guide that can help you create robust and scalable architectures.</p><h3>1. Define the Problem Space</h3><p>Before jumping into design, clearly understand the problem you are solving. Define the scope and clarify both <strong>functional</strong> (what the system should do) and <strong>non-functional requirements</strong> (performance, scalability, security, etc.). Explicitly state any assumptions and decisions you make along the way to avoid ambiguities.</p><p>For example, in designing a social media app, functional requirements might include user registration, posting, and commenting. Non-functional requirements could cover response times, uptime, and data privacy.</p><h3>2. Design the System at a High Level</h3><p>At this stage, design the system from a bird’s-eye view. Start by outlining <strong>APIs</strong> — these will define how clients (e.g., web apps, mobile apps) interact with system resources. Consider aspects like request parameters, response formats, and how data is exchanged between the <strong>client</strong> and <strong>server</strong>.</p><p>A high-level design diagram is essential to visually represent the <strong>architecture</strong>. Key components like <strong>load balancers, databases, services</strong>, and <strong>queues</strong> should be outlined. This serves as the foundation before diving into details.</p><h3>3. Deep Dive into the Design</h3><p>Once you have the high-level design, break it down into detailed components. Examine the individual services, databases, and relationships between them. At this point, you should factor in <strong>non-functional requirements</strong> — how will performance, scalability, and fault tolerance be ensured?</p><p>Present multiple design options and evaluate their pros and cons. For instance, will you use <strong>monolithic</strong> or <strong>microservices</strong> architecture? Each has trade-offs, and your decision should align with the system’s goals and growth expectations.</p><h3>4. Identify Bottlenecks and Scaling Opportunities</h3><p>As you finalize the design, it’s important to assess how the system will handle scaling and identify any potential <strong>bottlenecks</strong>. Determine how the system will handle increased load or growth over time.</p><p>Look into practices such as <strong>horizontal scaling, database sharding</strong>, and <strong>global service deployment</strong>. Solutions like <strong>content delivery networks (CDNs)</strong>, <strong>caching</strong>, <strong>rate limiting</strong>, and <strong>replication</strong> are key to handling large traffic volumes and ensuring uptime. Address single points of failure to maintain reliability.</p><h3>5. Review and Wrap Up</h3><p>Once your system is designed, summarize the key decisions made and the trade-offs you considered. Ensure that the architecture meets the system’s requirements — both functional and non-functional. Highlight any areas for future improvement, such as optimizing database queries or incorporating more advanced monitoring.</p><p>Remember, system design is a <strong>continuous process</strong>. As your application grows, you’ll need to iterate and scale various components, ensuring that your architecture remains flexible and resilient.</p><h3>Conclusion</h3><p>System design is an intricate process that requires careful consideration of the problem space, architecture, scalability, and bottlenecks. Following a structured approach ensures that your system is built to last, handles scaling gracefully, and meets all necessary requirements. Whether you’re preparing for a technical interview or working on large-scale projects, mastering these principles will guide you toward designing efficient and scalable systems.</p><p>#SystemDesign #Scalability #CloudArchitecture #APIDesign #TechLeadership #SoftwareEngineering #DistributedSystems #DevOps #TechTips #TechInnovation #TechCommunity</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3422614e8a57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Quick Overview of Kubernetes Architecture: Key Components Explained]]></title>
            <link>https://medium.com/@mash.bhuiyan/a-quick-overview-of-kubernetes-architecture-key-components-explained-5b2fa3594e3a?source=rss-37b6262fd284------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b2fa3594e3a</guid>
            <dc:creator><![CDATA[Mannan Bhuiyan]]></dc:creator>
            <pubDate>Tue, 03 Sep 2024 07:53:35 GMT</pubDate>
            <atom:updated>2024-09-03T07:53:35.213Z</atom:updated>
            <content:encoded><![CDATA[<p>Kubernetes, an open-source container orchestration platform, automates the deployment, scaling, and management of containerized applications. Understanding its architecture is crucial for effectively managing and scaling your applications. Here’s a quick overview of the key components that make up Kubernetes architecture.</p><h3>1. Master Node (Control Plane)</h3><p>The master node is the brain of the Kubernetes cluster, responsible for managing the cluster’s state, scheduling workloads, and maintaining overall system health. It consists of several key components:</p><ul><li><strong>API Server</strong>: Acts as the front-end of the control plane, handling all communication between users, external components, and the Kubernetes cluster. It serves as the gateway to the cluster, processing RESTful API requests and updating the cluster’s state.</li><li><strong>etcd</strong>: A distributed key-value store that holds all the configuration data and state of the cluster. It ensures consistency across the cluster and stores information such as node status, namespaces, and Pod data.</li><li><strong>Scheduler</strong>: Assigns newly created Pods to nodes based on resource availability, constraints, and policies. It ensures that workloads are evenly distributed across the cluster to optimize performance and resource utilization.</li><li><strong>Controller Manager</strong>: Monitors the cluster’s state and ensures that the desired state is maintained. It includes various controllers, such as the Node Controller, Replication Controller, and Endpoints Controller, which manage specific aspects of the cluster.</li></ul><h3>2. Worker Nodes (Data Plane)</h3><p>Worker nodes are the machines where the application workloads run. Each worker node contains the necessary services to manage and run Pods, which are the smallest deployable units in Kubernetes. Key components of worker nodes include:</p><ul><li><strong>kubelet</strong>: An agent that runs on each worker node, responsible for managing the state of the node and ensuring that the containers are running as expected. It communicates with the API Server to receive instructions and report the status of the node.</li><li><strong>kube-proxy</strong>: A network proxy that manages network communication between Pods and Services. It handles routing traffic to the appropriate containers and manages network rules to ensure that Pods can communicate with each other and with the external world.</li><li><strong>Container Runtime</strong>: The software responsible for running the containers. Kubernetes supports various container runtimes, such as Docker, containerd, and CRI-O, which execute the container images and manage container lifecycle operations.</li></ul><h3>3. Pods</h3><p>Pods are the smallest and simplest Kubernetes objects. A Pod can contain one or more containers that share the same network namespace and storage volumes. Pods are typically used to host a single instance of a running process, and they can be scaled up or down depending on the application’s needs.</p><h3>4. Networking and Storage</h3><p>Kubernetes networking allows Pods to communicate with each other and with external services. Kubernetes also provides a range of storage solutions, including persistent volumes, which allow data to persist beyond the lifecycle of individual Pods.</p><h3>Conclusion</h3><p>Kubernetes architecture is designed to provide a highly scalable, resilient, and flexible platform for managing containerized applications. By understanding its core components — the master node, worker nodes, Pods, networking, and storage — you can better leverage Kubernetes to automate and scale your deployments effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*MFrgozKqx8mBvkDDC4i_kA.png" /></figure><p>#Kubernetes #CloudComputing #DevOps #ContainerOrchestration #Microservices #K8s #Infrastructure #CloudNative #SoftwareArchitecture</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b2fa3594e3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SFTP on Your Ubuntu EC2 Instance: Quick and Simple Setup.]]></title>
            <link>https://medium.com/@mash.bhuiyan/sftp-on-your-ubuntu-ec2-instance-quick-and-simple-setup-f3ec4dbb3745?source=rss-37b6262fd284------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3ec4dbb3745</guid>
            <dc:creator><![CDATA[Mannan Bhuiyan]]></dc:creator>
            <pubDate>Thu, 29 Aug 2024 04:38:59 GMT</pubDate>
            <atom:updated>2024-08-29T04:38:59.298Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Secure File Transfer Protocol (SFTP)</strong> is a robust and secure method for transferring files between computers, especially when compared to traditional FTP. Running over SSH (Secure Shell), SFTP leverages public-key cryptography for authentication, ensuring that both login credentials and file transfers are encrypted and secure.</p><p><strong>Why Choose SFTP Over SCP?</strong></p><p>Both SFTP and Secure Copy Protocol (SCP) are network protocols designed for secure file transfers, operating over the same default SSH port (22). However, SFTP is often the preferred choice for large file transfers due to its additional features:</p><ul><li><strong>Directory Management</strong>: SFTP allows to navigate and manage directories on the remote server.</li><li><strong>Resume Transfers</strong>: If a transfer is interrupted (e.g., due to a network issue), SFTP can resume it from where it left off, saving time.</li><li><strong>Transfer Logs</strong>: SFTP can keep a log of transfers, adding an extra layer of accountability and traceability.</li></ul><p>For instance, imagine transferring a large file to a remote server and internet connection drops. With SCP, would need to restart the transfer from the beginning. With SFTP, can simply resume the transfer, ensuring a smoother and more reliable process.<br><strong>Pre-requisites</strong></p><p>Before begin, make sure you have the following:</p><ol><li><strong>WinSCP</strong> (or any SFTP client): In this guide, we’ll use WinSCP, an SFTP client for Windows. Feel free to use a client that suits your operating system.</li><li><strong>Vsftpd</strong>: This is the SFTP server software you’ll install on your EC2 instance.</li><li><strong>EC2 Instance with Ubuntu AMI</strong>: Ensure you have an EC2 instance running Ubuntu.</li><li><strong>Open Port 22 (SSH)</strong>: Ensure EC2 instance’s security group has port 22 open to allow SSH access.</li></ol><h3>Steps to Set Up SFTP on Ubuntu EC2</h3><p><strong>Step 1: SSH into Your EC2 Instance</strong></p><p>First, SSH into EC2 instance and execute the following commands:</p><pre>sudo apt update -y<br>sudo apt install vsftpd -y</pre><p><strong>Step 2: Configure vsftpd</strong></p><p>Open the configuration file to make necessary changes:</p><pre>sudo vi /etc/vsftpd.conf</pre><p><strong>Step 3: Disable Anonymous FTP</strong></p><p>Find the line anonymous_enable=YES and change it to:</p><pre>anonymous_enable=NO</pre><p><strong>Step 4: Configure Passive Mode</strong></p><p>Add the following settings at the bottom of the configuration file</p><pre>pasv_enable=YES<br>pasv_min_port=1024<br>pasv_max_port=1048<br>pasv_address=&lt;Public IP of your instance&gt;</pre><p>Replace &lt;Public IP of your instance&gt; with the actual public IP address of your EC2 instance.</p><p><strong>Step 5: Save Changes</strong></p><p>To save the changes in the vsftpd.conf file, press the escape key, then type :wq! and hit enter.</p><p><strong>Step 6: Restart vsftpd</strong></p><p>Restart the vsftpd service to apply the changes:</p><pre>sudo systemctl restart vsftpd</pre><h3>Accessing the SFTP Server Using WinSCP</h3><ol><li>Open WinSCP and select <strong>SFTP</strong> as the file protocol.</li><li>Enter your EC2 instance’s public IP address.</li><li>Use the default <strong>ubuntu</strong> username and leave the password field blank.</li><li>Navigate to <strong>Advanced → Authentication</strong> and select your instance’s private key file. Ensure the key is in <strong>PPK</strong> format, not PEM. If you have a PEM file, convert it to PPK format.</li><li>Click <strong>OK</strong>, then <strong>Login</strong>.</li></ol><h3>Conclusion</h3><p>And that’s it! You should now be able to transfer files securely between your local machine and your Ubuntu EC2 instance using SFTP. In WinSCP, file transfers can be done simply by dragging and dropping files between your local system and the EC2 instance.</p><p>This setup ensures that your data is transferred securely and efficiently, providing peace of mind when managing files in the cloud.</p><p>#SFTP #EC2 #AWS #CloudSecurity #Ubuntu #CloudComputing #FileTransfer #WinSCP #SSH</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3ec4dbb3745" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[  :   …]]></title>
            <link>https://medium.com/@mash.bhuiyan/-38d415d93f1e?source=rss-37b6262fd284------2</link>
            <guid isPermaLink="false">https://medium.com/p/38d415d93f1e</guid>
            <dc:creator><![CDATA[Mannan Bhuiyan]]></dc:creator>
            <pubDate>Sat, 24 Aug 2024 09:49:12 GMT</pubDate>
            <atom:updated>2024-08-24T09:49:12.047Z</atom:updated>
            <content:encoded><![CDATA[<h3>𝐋𝐢𝐧𝐮𝐱 𝐔𝐬𝐞𝐫 𝐀𝐝𝐦𝐢𝐧𝐢𝐬𝐭𝐫𝐚𝐭𝐢𝐨𝐧: 𝐄𝐬𝐬𝐞𝐧𝐭𝐢𝐚𝐥 𝐂𝐨𝐦𝐦𝐚𝐧𝐝𝐬 𝐟𝐨𝐫 𝐒𝐲𝐬𝐭𝐞𝐦 𝐀𝐝𝐦𝐢𝐧𝐢𝐬𝐭𝐫𝐚𝐭𝐨𝐫𝐬</h3><p>Managing users is a fundamental aspect of Linux system administration. Here’s a quick guide to some essential user administration commands every sysadmin should know:</p><p>𝟏.𝐓𝐨 𝐜𝐫𝐞𝐚𝐭𝐞 𝐚 𝐧𝐞𝐰 𝐮𝐬𝐞𝐫:<br> useradd /adduser username</p><p>𝟐.𝐓𝐨 𝐬𝐞𝐭 𝐮𝐬𝐞𝐫 𝐩𝐚𝐬𝐬𝐰𝐨𝐫𝐝:<br> passwd username</p><p>𝟑.𝐓𝐨 𝐥𝐨𝐜𝐤 𝐮𝐬𝐞𝐫 𝐩𝐚𝐬𝐬𝐰𝐨𝐫𝐝:<br> passwd -l username</p><p>𝟒.𝐓𝐨 𝐮𝐧𝐥𝐨𝐜𝐤 𝐮𝐬𝐞𝐫𝐧𝐚𝐦𝐞:<br> passwd -u username<br> <br>𝟓.𝐔𝐬𝐞𝐫 𝐜𝐚𝐧 𝐥𝐨𝐠𝐢𝐧 𝐨𝐧𝐥𝐲 𝐮𝐬𝐞𝐫 𝐧𝐚𝐦𝐞 𝐰𝐢𝐭𝐡𝐨𝐮𝐭 𝐩𝐚𝐬𝐬𝐰𝐨𝐫𝐝:<br> passwd -d username</p><p>𝟔.𝐇𝐨𝐰 𝐭𝐨 𝐜𝐡𝐚𝐧𝐠𝐞 𝐮𝐬𝐞𝐫’𝐬 𝐡𝐨𝐦𝐞 𝐝𝐢𝐫𝐞𝐜𝐭𝐨𝐫𝐲:<br> useradd -d home_directory username(for new user)<br> usermod -d home_directory username(for existing user)<br> <br>𝟕.𝐇𝐨𝐰 𝐞𝐱𝐩𝐢𝐫𝐞 𝐮𝐬𝐞𝐫’𝐬 𝐚𝐜𝐜𝐨𝐮𝐧𝐭:<br>usermod -e yyyy/mm/dd username<br>or <br>chage -E yyyy/mm/dd username</p><p>𝟖.𝐇𝐨𝐰 𝐭𝐨 𝐜𝐡𝐚𝐧𝐠𝐞 𝐮𝐬𝐞𝐫 𝐥𝐨𝐠𝐢𝐧 𝐬𝐡𝐞𝐥𝐥:<br> chsh -s shell name username</p><p>𝟗.𝐇𝐨𝐰 𝐭𝐨 𝐜𝐡𝐚𝐧𝐠𝐞 𝐮𝐬𝐞𝐫 𝐥𝐨𝐠𝐢𝐧 𝐈𝐃:<br> useradd -u username(for new user)<br> usermod -u username(for existing user)</p><p>𝟏𝟎.𝐂𝐫𝐞𝐚𝐭𝐞 𝐚 𝐠𝐫𝐨𝐮𝐩:<br>groupadd groupname</p><p>𝟏𝟏.𝐓𝐨 𝐭𝐚𝐤𝐞 𝐚 𝐮𝐬𝐞𝐫 𝐚𝐬 𝐚 𝐦𝐞𝐦𝐛𝐞𝐫 𝐨𝐟 𝐬𝐞𝐜𝐨𝐧𝐝𝐚𝐫𝐲 𝐠𝐫𝐨𝐮𝐩.<br>useradd -G groupname usernme(for new user) <br>usermod -G groupname username(for existing user)</p><p>𝟏𝟐.𝐓𝐨 𝐭𝐚𝐤𝐞 𝐚 𝐮𝐬𝐞𝐫 𝐚𝐬 𝐦𝐞𝐦𝐛𝐞𝐫 𝐨𝐟 𝐦𝐨𝐫𝐞 𝐬𝐞𝐜𝐨𝐧𝐝𝐚𝐫𝐲 𝐠𝐫𝐨𝐮𝐩:<br>usermod –G groupname1,groupname2,groupnme3 username</p><p>𝟏𝟑.𝐓𝐨 𝐭𝐚𝐤𝐞 𝐦𝐨𝐫𝐞 𝐮𝐬𝐞𝐫 𝐢𝐧𝐭𝐨 𝐚 𝐠𝐫𝐨𝐮𝐩.<br>gpasswd -M username1,username2,username3 groupname</p><p>𝟏𝟒.𝐓𝐨 𝐬𝐞𝐞 𝐮𝐬𝐞𝐫 𝐢𝐧𝐟𝐨:<br> finger username<br> chage -l username</p><p>𝟏𝟓.𝐓𝐨 𝐫𝐞𝐦𝐨𝐯𝐞 𝐮𝐬𝐞𝐫 𝐰𝐢𝐭𝐡𝐨𝐮𝐭 𝐮𝐬𝐞𝐫 𝐡𝐨𝐦𝐞 𝐝𝐢𝐫𝐞𝐜𝐭𝐨𝐫𝐲:<br> userdel username</p><p>𝟏𝟔.𝐓𝐨 𝐫𝐞𝐦𝐨𝐯𝐞 𝐮𝐬𝐞𝐫 𝐰𝐢𝐭𝐡 𝐮𝐬𝐞𝐫 𝐡𝐨𝐦𝐞 𝐝𝐢𝐫𝐞𝐜𝐭𝐨𝐫𝐲:<br> userdel –r username</p><p>𝟏𝟕.𝐓𝐨 𝐫𝐞𝐦𝐨𝐯𝐞 𝐠𝐫𝐨𝐮𝐩𝐧𝐚𝐦𝐞:<br> groupdel usernme</p><p>𝟏𝟖.𝐓𝐨 𝐜𝐡𝐚𝐧𝐠𝐞 𝐠𝐫𝐨𝐮𝐩 𝐧𝐚𝐦𝐞:<br>groupmod -n newname oldname</p><p>𝟏𝟗.𝐓𝐨 𝐜𝐡𝐚𝐧𝐠𝐞 𝐚𝐧 𝐞𝐱𝐢𝐬𝐭𝐢𝐧𝐠 𝐮𝐬𝐞𝐫’𝐬 𝐥𝐨𝐠𝐢𝐧 𝐧𝐚𝐦𝐞:<br>usermod -l newname homedirectory old_name</p><p>𝟐𝟎.𝐇𝐨𝐰 𝐭𝐨 𝐫𝐞𝐦𝐨𝐯𝐞 𝐚 𝐮𝐬𝐞𝐫 𝐟𝐫𝐨𝐦 𝐚 𝐠𝐫𝐨𝐮𝐩:<br>gpasswd -d user group</p><p>These commands will enhance efficiency in managing users and groups on Linux systems. Stay sharp and keep learning! <br><a href="https://www.linkedin.com/feed/hashtag/?keywords=linux&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7233046758602203136">hashtag#Linux</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=sysadmin&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7233046758602203136">hashtag#SysAdmin</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=devops&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7233046758602203136">hashtag#DevOps</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=linuxcommands&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7233046758602203136">hashtag#LinuxCommands</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=usermanagement&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7233046758602203136">hashtag#UserManagement</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=it&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7233046758602203136">hashtag#IT</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=systemadministrator&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7233046758602203136">hashtag#SystemAdministrator</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38d415d93f1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating MySQL Backups with mysqldump]]></title>
            <link>https://medium.com/@mash.bhuiyan/automating-mysql-backups-with-mysqldump-dc4f470dc08d?source=rss-37b6262fd284------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc4f470dc08d</guid>
            <dc:creator><![CDATA[Mannan Bhuiyan]]></dc:creator>
            <pubDate>Sat, 17 Aug 2024 07:08:48 GMT</pubDate>
            <atom:updated>2024-08-17T07:08:48.487Z</atom:updated>
            <content:encoded><![CDATA[<p>Ensuring data integrity and availability is crucial for any project. One effective way to manage your MySQL backups is by automating the backup process using mysqldump. Below is a simple Bash script to streamline your MySQL database backups.</p><p><strong>Script Overview</strong></p><p>This script is designed to back up a MySQL database and save the dump file with a timestamped filename. It reads environment variables from a specified file to securely handle database credentials.</p><p><strong>Script Breakdown</strong></p><p>#!/bin/bash</p><p>source /data/web/projectx-ops/env_file</p><p>/bin/mysqldump -h${MYSQL_HOST} -u${MYSQL_USER} -p${MYSQL_PASSWORD} ${MYSQL_DATABASE} &gt; $(date “+%Y%m%d.sql”)</p><ol><li><strong>Shebang Line (#!/bin/bash)</strong><br> Defines the script’s interpreter.</li><li><strong>Source Environment Variables (source /data/web/projectxyz-ops/env_file)</strong><br> Loads database connection details from an environment file for security and ease of maintenance.</li><li><strong>Database Dump Command (/bin/mysqldump)</strong><br> Executes mysqldump with:</li></ol><ul><li>-h${MYSQL_HOST}: MySQL server hostname.</li><li>-u${MYSQL_USER}: Username.</li><li>-p${MYSQL_PASSWORD}: Password.</li><li>${MYSQL_DATABASE}: Database to back up.</li><li>Output redirected to a file named with the current date.</li></ul><p><strong>💡 Tips for Effective Backup Management</strong></p><ul><li><strong>Automate with Cron:</strong> Schedule this script to run regularly using cron jobs for continuous protection.</li><li><strong>Secure Your Credentials:</strong> Ensure the environment file is properly secured and access is restricted.</li><li><strong>Monitor Your Backups:</strong> Regularly check backup files and processes to avoid surprises.</li></ul><p>Feel free to tweak the script to fit your specific needs, and share your improvements or additional tips!</p><p>#MySQL #DatabaseManagement #Backup #Automation #DevOps</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc4f470dc08d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>