Visit Our UNIX and Linux User Community


pkgadd changes permissions of /etc


 
Thread Tools Search this Thread
Operating Systems Solaris pkgadd changes permissions of /etc
# 1  
Old 10-30-2009
Question pkgadd changes permissions of /etc

Hi,

when I install a package using pkgadd, it correctly installs the binary files with the user name that I want.

However it also changes the permissions of /etc/rc2.d. I don't want this to happen. I want to retain original owner of /etc/rc2.d as it is.

I could see that before installing, the ownership of the directories is assigned to root:

Code:
bash-2.05# ls -dl /etc
drwxr-xr-x  53  root     sys         3584 Oct  7 17:44 /etc

bash-2.05# ls -dl  /etc/rc2.d
drwxr-xr-x   2 root     sys         1536 Oct  8 16:34  /etc/rc2.d

After installing the package, ownership would be changed and becomes the user which is provided at a time of installation.

Code:
bash-2.05# ls -dl  /etc
drwxr-xr-x  53 cpds42     cpds42         3584 Oct  7 17:44  /etc

bash-2.05# ls -dl /etc/rc2.d
drwxr-xr-x   2 cpds42      cpds42         1536 Oct  8 16:34 /etc/rc2.d

Here is some code snippet of the prototype file:

Code:
# Auto Start/Stop script
  d none /etc 0755 $Owner $Group
  d none /etc/rc2.d 0755 $Owner $Group
  f preserve /etc/rc2.d/S80abc=$SCRIPT_SRC/S80abc 0755 $Owner $Group

I thought the problem is with the above code in prototype file. So I tried changing it to below:
Code:
# Auto Start/Stop script
  d none /etc ? ? ?
  d none /etc/rc2.d ? ? ?
  f preserve /etc/rc2.d/S80abc=$SCRIPT_SRC/S80abc 0755 $Owner $Group

However the problem is still there. It is still changing the existing permissions of /etc and /etc/rc2.d.

Can anyone please give some help pointers?

Last edited by pludi; 10-30-2009 at 08:23 AM.. Reason: code tags, please...
# 2  
Old 10-30-2009
This package is bogus. You'd better ask for it to be fixed by its creator.

Previous Thread | Next Thread
Test Your Knowledge in Computers #259
Difficulty: Easy
Steve Jobs was born in San Francisco, California, and put up for adoption.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Pkgadd with firefox

I am using Solaris 10, and trying to keep a number of old Sun workstations running. Since version 17 of firefox, I have had problems using pkgadd, and had to use tar to un-archive the components of firefox. Is this just a problem with firefox (and probably thunderbird), or is pkgadd broken (1 Reply)
Discussion started by: jkoval
1 Replies

2. Shell Programming and Scripting

pkgadd question

Hi, Please could someone help me, understand how pkgadd works within unix. I have a software file, and I need to package this up and then pkgadd this to another server. Please could some advise me the best way to do this. regards venhart (2 Replies)
Discussion started by: venhart
2 Replies

3. Solaris

pkgadd woes

Morning all, I am attempting to load a package from a Solaris 8 CDROM. This fails with the error : "pkgadd: ERROR: unable to access pkgmap file </cdrom/ .........../SUNWlibC/pkgmap> No changes were made to the system" Any help would be appreciated Andy (6 Replies)
Discussion started by: AndyD
6 Replies

4. Solaris

pkgadd?

Hi all. Is there an option to #pkgadd to test if package bundle you want to install requires a reboot? #pkgadd -d "package bundle" an option like test or a dry run? Suggestions, anyone? :confused: Reloader (2 Replies)
Discussion started by: Reloader
2 Replies

5. Solaris

pkgadd help

I'm trying to install a package and it worked on most of the sun boxes and one of the box is just freezing and not going further. Her is the output. pkgadd -d packagename.dstream Select package(s) you wish to process (or 'all' to process all packages). (default: all) : Processing... (1 Reply)
Discussion started by: mokkan
1 Replies

6. UNIX for Advanced & Expert Users

pkgadd issues

I have a server running solaris 8 with veritas 4.1. I am trying to install a package on the server. The package install fails miserably though. I have installed the very same package on other development servers, but for some reason, the install fails on this, soon to be prod, server. No idea... (3 Replies)
Discussion started by: Sowser
3 Replies

7. UNIX for Dummies Questions & Answers

pkgadd issues

Please inform me on how I can resolve the PaTcH_MsG 8 Version message below I am running solaris 9 9/05 HW on a Sun V445. Thank you. # pkgadd SUNWqlc Processing package instance <SUNWqlc> from </var/spool/pkg> Qlogic ISP 2200/2202 Fibre Channel Device Driver (sparc)... (3 Replies)
Discussion started by: GLJ@USC
3 Replies

8. Solaris

pkgadd

is there an option in pkgadd to accept the default option? I want to use pkgadd in a script and do not want to stop at intercative questions. thx. (6 Replies)
Discussion started by: melanie_pfefer
6 Replies

9. UNIX for Dummies Questions & Answers

pkgadd

I am adding gcc 3.3.2 to my unix box what is the best way to do it???? (4 Replies)
Discussion started by: alsande
4 Replies

10. UNIX for Dummies Questions & Answers

Pkgadd / gnutar

I have sucessfully installed GNUtar using pkgadd but with some questions: When I tried to install with pkgadd -d GNUtar (which is the directory of the package) - I received the error "pkgadd: command not found" Then I tried the same but with pkgadd -d. GNUtar and it installed fine. (found... (4 Replies)
Discussion started by: finster
4 Replies

Featured Tech Videos