pkgadd sets /etc/ groupwritable why?

2007-12-25 11:52:00

Hello folks,

I'd like to thank mr. Casper Dik (casper@holland.Sun.COM) for giving me

quick, but essential asnwer.

now going to my problem:

Q:Why Solaris 2.5.1 does /etc dir (among with some others, I found out)

has group `sys' writable permittions?

A:

~~ That's because that was the default prior to Solaris 2.6 in which the

~~ default was changed to mode 755.

Q:How to get pkgadd not to change (back) these permittions while adding

additional packages.

A:

(1).

~~ .. you can run "fix-modes" (ftp.wins.uva.nl:/pub/solaris) after

~~ each pkgadd instead. (patch installs are also pkgadds)

~~

(2)

Another solution, figured out myself, is to run simple script which would

parse pkgmap/pkgproto file and set correct permittions _BEFORE_ installing

the package:

f none /sbin/ipnat=root/sbin/ipnat

d none /etc 775 root sys <-------------------------------+

d none /etc/init.d 775 root sys <------------------------|

f none /etc/init.d/ipfboot=root/etc/init.d/ipfboot |

d none /etc/rc2.d 775 root sys |

l none /etc/rc2.d/S65ipfboot=/etc/init.d/ipfboot |

d none /etc/opt 775 root sys |

                                                         |

                                                         |

                                                         |

they are going like this --------------------------------+

best regards

 Fyodor

PS: I also would like to take the time to thank following people for their

responces regarding my syslog post. (I received their replies after I sent

the SUMMARY out, so wasn't able to mention it there).

Shriman Gurung <SG@datcon.co.uk>

Michael Maciolek <mikem@leftbank.com>

Michael Pavlov <misha@cibc.com>

Comments

Got something to say?

You must be logged in to post a comment.