On Tue, Oct 20, 2009 at 6:57 PM, Gopi Desaboyina
<[email protected]> wrote:
> I've been observing /var/tmp permissions getting changed from default 1777 to 
> 755. normally during bootup there is set-tmp-permissions scripts. which takes 
> care of setting correct permissions on /tmp and /var/tmp. for some reason 
> they going away on /var/tmp after sometime. again i correct them using 
> /etc/init.d/set-tmp-permissions. after some days they goes away. This is 
> happening only in Solaris 10 U7. Did anyone faced this issue ?  I looked at 
> crontab non of the scripts have reference to /var/tmp or chmod.

When I see things like this I whip up a quick dtrace script.
Completely untested, and quite likely misses corner cases (e.g. cd
/var/tmp ; chmod 755 .).

#! /usr/sbin/dtrace -ws

syscall::chmod:entry
/ copyinstr(arg1) == "/var/tmp" / {
    stop();
    system("ptree %d", pid);
    system("prun %d", pid);
}

Since this is a boot time issue, you probably want to create an early
rc script, SMF service, or use anonymous tracing.

http://alexeremin.blogspot.com/2009/01/boot-chart-with-help-of-dtrace-and.html

>
> Thanks for help. If not i've to open a case with Sun.
> --
> This message posted from opensolaris.org
> _______________________________________________
> sysadmin-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss
>



-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
sysadmin-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss

Reply via email to