Skip to main content

Changing Ownership and Group Permissions in Linux

Giving Ownership from 'root' to 'lsadm' for ldirectory

[root@seplinuxuatapp1 /]# chown lsadm ldirectory
[root@seplinuxuatapp1 /]#ls -l

total 197
drwxr-xr-x 2 root root 4096 Apr 9 14:26 bin
drwxr-xr-x 4 root root 1024 Apr 9 14:31 boot
drwxr-xr-x 22 root root 118784 Apr 10 11:01 dev
drwxr-xr-x 55 root root 8192 Apr 11 16:43 etc
lrwxrwxrwx 1 root root 9 Apr 9 14:33 home -> /usr/home
drwxr-xr-x 2 root root 4096 Jan 24 2003 initrd
drwxr-xr-x 11 root root 4096 Apr 9 14:29 lib
drwx------ 2 root root 16384 Apr 9 07:23 lost+found
drwxr-xr-x 5 lsadm root 4096 Apr 11 16:40 ldirectory
drwxr-xr-x 2 root root 4096 Jun 21 2006 misc
drwxr-xr-x 4 root root 4096 Apr 9 14:31 mnt
drwxr-xr-x 2 root root 4096 Jan 24 2003 opt
dr-xr-xr-x 84 root root 0 Apr 10 04:00 proc
drwxr-x--- 5 root root 4096 Apr 9 18:28 root
drwxr-xr-x 2 root root 8192 Apr 9 14:26 sbin
drwxrwxrwt 5 root root 4096 Apr 11 04:02 tmp
drwxr-xr-x 17 root root 4096 Apr 9 14:33 usr
drwxr-xr-x 23 root root 4096 Apr 9 14:32 var

Giving Group permission from 'root' to 'lgroup' group for ldirectory

[root@seplinuxuatapp1 /]# chgrp lgroup ldirectory
[root@seplinuxuatapp1 /]# ls -l
total 197
drwxr-xr-x 2 root root 4096 Apr 9 14:26 bin
drwxr-xr-x 4 root root 1024 Apr 9 14:31 boot
drwxr-xr-x 22 root root 118784 Apr 10 11:01 dev
drwxr-xr-x 55 root root 8192 Apr 11 16:43 etc
lrwxrwxrwx 1 root root 9 Apr 9 14:33 home -> /usr/home
drwxr-xr-x 2 root root 4096 Jan 24 2003 initrd
drwxr-xr-x 11 root root 4096 Apr 9 14:29 lib
drwx------ 2 root root 16384 Apr 9 07:23 lost+found
drwxr-xr-x 5 lsadm lgroup 4096 Apr 11 16:40 ldirectory
drwxr-xr-x 2 root root 4096 Jun 21 2006 misc
drwxr-xr-x 4 root root 4096 Apr 9 14:31 mnt
drwxr-xr-x 2 root root 4096 Jan 24 2003 opt
dr-xr-xr-x 84 root root 0 Apr 10 04:00 proc
drwxr-x--- 5 root root 4096 Apr 9 18:28 root
drwxr-xr-x 2 root root 8192 Apr 9 14:26 sbin
drwxrwxrwt 5 root root 4096 Apr 11 04:02 tmp
drwxr-xr-x 17 root root 4096 Apr 9 14:33 usr
drwxr-xr-x 23 root root 4096 Apr 9 14:32 var



Regards
Avinash Pillai
URL : http://avinashpillai.blogspot.com
Email: avinashp[AT]aztecsoft[DOT]com, avinashp25[AT]gmail[DOT]com

Comments

Popular posts from this blog

What is Cybersecurity Risk? Definition & Factors to Consider

  Cybersecurity risk has become a leading priority for organizations as they embrace digital transformation and leverage advanced technology solutions to drive business growth and optimize efficiencies. Additionally, many organizations are increasingly reliant on third-party and   fourth-party vendors   or programs.  In this post, we’ll explore what cybersecurity risk is and take a look at some key cybersecurity risk factors that organizations across all industries should keep in mind as they build and refine their   cybersecurity risk management strategy .   What is cybersecurity risk? Cybersecurity risk refers to   potential threats and vulnerabilities   in digital systems. It encompasses the likelihood of a cyberattack compromising data or systems, leading to financial,   reputational , or operational damage. A few examples of cybersecurity risks include   ransomware ,   malware ,   insider threats ,   phishing attacks ...

How To Manage Dell Servers using OMSA – OpenManage Server Administrator On Linux

OMSA is a web based application to manage DELL PowerEdge Servers. Using OMSA you can perform proactive system monitoring, system diagnosis, troubleshoot hardware issues and configure RAID etc., You can also view and manage hardware’s embedded system management (ESM) log using OMSA. This is an jumpstart guide that explains how to install Dell OMSA on Linux. I have also provided few screenshots of DELL OMSA web application. 1. Download DELL OMSA Go to DELL support website -> click on “Drivers & Downloads” -> choose your server model (in my case, I selected PowerEdge 2850) -> choose the operating system -> scroll-down and expand ‘Systems Management’ -> Click on ‘OpenManage Server Administrator Managed Node’ -> Click on OM_5.5.0_ManNode_A00.tar.gz to download it. You can directly download it to your Linux server as shown below. # mkdir -p /usr/local/omsa # cd /usr/local/omsa # wget http://ftp.us.dell.com/sysman/OM_5.5.0_ManNode_A00.tar.gz 2....

Adding a New Hard Drive to Linux using LVM

I did this on RHEL 5.5. You should have the new drive created and added to the machine before you start anything.First you need to fdisk the drive like any other drive in linux. One key step is that you need to change the type; option ?t? to ?8e? for lvm. root@itsme ~# fdisk /dev/sdc Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only,until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 7832. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e ex...