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