FW: About coreadm in solaris 9/10

From: Valarani, Santhosh (Santhosh.Valarani@PacifiCorp.com)
Date: Tue Sep 04 2007 - 11:57:19 EDT


Anybody have any luck in this issue??

This are the few more information regarding this issue

First test done with this permission to /var/core ls -ld /var/core
drwxrwxr-x 2 root root 512 Aug 30 09:40 /var/core
id
uid=0(root) gid=0(root)
root@testbox# cd /var/core
root@testbox <mailto:root@pdxappu49d> # ls
bash.core ksh.core
root@testbox <mailto:root@pdxappu49d> # ls -l
total 10816
-rw------- 1 root root 3691097 Aug 28 13:35 bash.core
-rw------- 1 root root 1818921 Aug 28 13:35 ksh.core
root@testbox <mailto:root@pdxappu49d> # rm -rf *
root@testbox <mailto:root@pdxappu49d> # su - (user)
testbox# gcore -g $$
gcore: /var/core/bash.core dump failed: Permission denied
testbox# ls -l /var/core
total 0
This is second test
testbox# ls -ld /var/core
drwxrwxr-x 2 root root 512 Aug 30 09:40 /var/core
testbox# exit
logout
root@testbox <mailto:root@pdxappu49d> # chmod 700 /var/core
root@testbox <mailto:root@pdxappu49d> # su - (user)
testbox# gcore -g $$
gcore: /var/core/bash.core dump failed: Permission denied

testbox# coreadm
global core file pattern: /var/core/%f.core
global core file content: all
init core file pattern: /var/core/%f.core
init core file content: default
global core dumps: enabled
per-process core dumps: disabled
global setid core dumps: enabled
per-process setid core dumps: disabled
global core dump logging: enabled

Santhosh Valarani
503-813-5373 (work)

> ______________________________________________
> From: Valarani, Santhosh
> Sent: Thursday, August 30, 2007 8:47 AM
> To: sunmanagers@sunmanagers.org
> Subject: About coreadm in solaris 9/10
>
> Hi
>
> When I try to configure the coreadm.conf I am facing these issues
>
> My commands are
>
> coreadm -g /var/core/%f.core
> coreadm -i /var/core/%f.core
> coreadm -e log
> coreadm -e global
> coreadm -e global-setid
> coreadm -d proc-setid
> coreadm -d process
> coreadm -u
>
> And when as root I am getting the expected output but as normal user it is
getting as permission denied
>
> Testhost#gcore -g $$
> gcore: /var/core/ksh.core dumped
> (su - non-root)
> Testhost# gcore -g $$
> gcore: /var/core/ksh.core dump failed: Permission denied
> Can anyone help me resolve this issue
>
> Santhosh
>

-----------------------------------------------------------------------------
-

This email is confidential and may be legally privileged.

It is intended solely for the addressee. Access to this email by anyone else,
unless expressly approved by the sender or an authorized addressee, is
unauthorized.

If you are not the intended recipient, any disclosure, copying, distribution
or any action omitted or taken in reliance on it, is prohibited and may be
unlawful. If you believe that you have received this email in error, please
contact the sender, delete this e-mail and destroy all copies.

=============================================================================
=
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:17 EDT