Sponsored Content
Operating Systems Solaris pkgadd changes permissions of /etc Post 302366609 by funwithdolphin on Friday 30th of October 2009 02:25:14 AM
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 07:23 AM.. Reason: code tags, please...
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

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

8. 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

9. 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

10. 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
INSTALL-XPI(1)						     mozilla-devscripts suite						    INSTALL-XPI(1)

NAME
install-xpi - installs a xpi file into a Debian package SYNOPSIS
install-xpi [options] xpi-file DESCRIPTION
install-xpi is a helper tool for packaging XUL extensions. It installs the given xpi file into the correct directory and creates the required links based on the data in the install.rdf file. It corrects the file permissions unless --preserve-permissions is specified. install-xpi will create a configuration file in /etc if the XUL extension provides one or more preferences files in defaults/preferences. The configuration file contains only a description where to find the overridable preferences. debian/package.js is used as configuration file instead if it exists. The placeholder @INSTALLDIR@ is replaces by the actual installation directory. You can disable the creation of a system configuration file with --disable-system-prefs. OPTIONS
--disable-system-prefs Do not create a system preference file in /etc. -x file, --exclude=file The specified file from the xpi file will not be installed. You can use this parameter several times. -h, --help Display a brief help message. -i directory, --install-dir=directory The xpi file will be installed in the specified directory. directory must be an absolute path. Use this parameter with care. -l directory, --link=directory An additional link from the directory to the installation directory of the extension will be created. You can use this parameter several times. -p package, --package=package The xpi file will be installed in the specified binary package. If this parameter is not provided, the first binary package listed in debian/control will be used. --preserve-permissions The permissions of the files in the xpi file will not be modified. If this parameter is not provided, install-xpi will try to cor- rect the permissions of the files to 644 (files that starts with a shebang will be corrected to 755). -r, --remove-license-files Files with names like copying, licence, or license will not be installed. -v, --verbose Print more information. AUTHOR
Benjamin Drung <bdrung@debian.org> install-xpi January 2010 INSTALL-XPI(1)
All times are GMT -4. The time now is 03:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy