Skip to main content

Posts

User quota in Linux step by step

  Linux Admin – Quota Management As a Linux administrator, quota management is an important aspect of managing file systems and controlling disk usage by users. Quotas allow you to set limits on the amount of disk space a user or a group can consume. Here's a general guide on how to manage quotas in Linux:                Enabling Quota Management in C Linux is basically a 4 step process – Step 1  − Enable quota management for groups and users in /etc/fstab. Step 2  − Remount the filesystem. Step 3  − Create Quota database and generate disk usage table. Step 4  − Assign quota policies. Enable Quota Management in /etc/fstab First, we want to backup our /etc/fstab filen − [root@localhost ~]#   cp -r /etc/fstab ./ We now have a copy of our  known working  /etc/fstab in the current working directory. We made the following changes in the options section of  /etc/fstab  for the volume or Label to where quotas are to be applied for users and groups. usrquota grpquota  As you can see, we

How TO Manage Groups Ad User on linux

Linux Admin - User Managemen When discussing user management, we have three important terms to understand − Users   Groups Permissions We have already discussed in-depth permissions as applied to files and folders. In this chapter, let's discuss about users and groups. CentOS Users In CentOS, there are two types accounts –  System accounts − Used for a daemon or other piece of software .   Interactive accounts − Usually assigned to a user for accessing system resources . The main difference between the two user types is − System accounts are used by daemons to access files and directories. These will usually be disallowed from interactive login via shell or physical console login .. Interactive accounts are used by end-users to access computing resources from either a shell or physical console login. With this basic understanding of users, let's now create a new user for Bob Jones in the Accounting Department. A new user is added with the adduser command. Following

Crontab in linux- Examples and Command

A cron job in Linux is a time-based job scheduler. It is a utility that allows you to schedule and automate the execution of scripts, commands, or programs at specific intervals or at predetermined times. Cron jobs are commonly used in Linux and other Unix-like operating systems to automate repetitive tasks, such as system maintenance, log rotation, backups, and periodic data processing. The cron service is responsible for running these scheduled tasks. It reads a configuration file called the "crontab" (short for cron table) to determine when and which commands to execute. Each user on a Linux system can have their own crontab file, which lists the cron jobs specific to that user The crontab file uses a specific format to define the schedule of a cron job. It consists of six fields that specify the timing of the job: scss * * * * * command_to_be_executed | | | | | | | | | +----- Day of the Week ( 0 - 7 ) (Sunday = 0 or 7 ) | | | +------- Month ( 1 - 12 ) | | +--