The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Pkgadd error lbreddy SUN Solaris 6 01-29-2009 09:06 AM
pkgadd? Reloader SUN Solaris 2 09-01-2008 06:13 PM
pkgadd help mokkan SUN Solaris 1 04-08-2008 10:08 AM
pkgadd melanie_pfefer SUN Solaris 6 01-09-2007 03:45 AM
pkgadd alsande UNIX for Dummies Questions & Answers 4 03-27-2004 03:25 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 3 Weeks Ago
funwithdolphin funwithdolphin is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 1
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; 3 Weeks Ago at 06:23 AM.. Reason: code tags, please...
  #2 (permalink)  
Old 3 Weeks Ago
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlosuǝdo
  
 

Join Date: Dec 2007
Location: Paris
Posts: 1,383
This package is bogus. You'd better ask for it to be fixed by its creator.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0