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....

How to configure NFS on Linux

1. Introduction The Network File System is certainly one of the most widely used network services. Network file system (NFS) is based on the  Remote procedure call  which allows the client to automatically mount remote file systems and therefore transparently provide an access to it as if the file system is local. If you still have some questions after reading this article please try our new  LinuxCareer Forum . 2. Scenario In this scenario we are going to export the file system from the an IP address 10.1.1.50 ( NFS server ) host and mount it on an a host with an IP address 10.1.1.55 ( NFS Client ). Both NFS server and NFS client will be running Ubuntu Linux. 3. Prerequisites At this point, we assume that the NFS service daemon is already installed on your system, including portmap daemon on which NFS setup depends. If you have not done so yet simply install nfs-common package on both NFS client and NFS server using using apt-get ...