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

Defining AI Ethics

                           Defining AI Ethics Welcome to Defining AI Ethics. Humans rely on culturally agreed-upon morals and standards of action — or ethics — to guide their decision-making, especially for decisions that impact others. As AI is increasingly used to automate and augment decision-making, it is critical that AI is built with ethics at the core so its outcomes align with human ethics and expectations. AI ethics is a multidisciplinary field that investigates how to maximize AI's beneficial impacts while reducing risks and adverse impacts. It explores issues like data responsibility and privacy, inclusion, moral agency, value alignment, accountability, and technology misuse …to understand how to build and use AI in ways that align with human ethics and expectations.  There are five pillars for AI ethics: explainability, fairness,...

Seven Personal Qualities Found In A Good Leader

Whether in fact a person is born a leader or develops skills and abilities to become a leader is open for debate. There are some clear characteristics that are found in good leaders. These qualities can be developed or may be naturally part of their personality. Let us explore them further. Seven Personal Qualities Found In A Good Leader: 1. A good leader has an exemplary character. It is of utmost importance that a leader is trustworthy to lead others. A leader needs to be trusted and be known to live their life with honestly and integrity. A good leader “walks the talk” and in doing so earns the right to have responsibility for others. True authority is born from respect for the good character and trustworthiness of the person who leads.   2.A good leader is enthusiastic about their work or cause and also about their role as leader. People will respond more openly to a person of passion and dedication. Leaders need to be able to be a source of inspiration, and b...

The evolution and future of AI

                  The evolution and future of AI The original AI researchers were very interested in games because they were extremely complex. Huge numbers of possible positions and gains were available, yet they're simple in a certain way. They're simple in that the moves are well-defined, the goals are well-defined. So you don't have to solve everything all at once. With chess in particular, in the work on Deep Blue at IBM, what became apparent, what computers could do on our problem like that was bringing a massive amount of compute resource to do deeper searches, to investigate more options of moves in chess than was previously possible. Watson defeating jeopardy. So this was another crossover point, in the development of AI and cognitive computing. That the questions that IBM was able to answer with jeopardy were questions that weren't simply looking up in the database,...