[bug-notifications] [facter 0002208]: permissions of /opt changed

Mantis Bug Tracker noreply at opencsw.org
Sun May 3 13:42:08 CEST 2009


The following issue has been CLOSED 
====================================================================== 
http://www.opencsw.org/bugtrack/view.php?id=2208 
====================================================================== 
Reported By:                james
Assigned To:                glaw
====================================================================== 
Project:                    facter
Issue ID:                   2208
Category:                   regular use
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2007-04-16 09:43 CEST
Last Modified:              2009-05-03 13:42 CEST
====================================================================== 
Summary:                    permissions of /opt changed
Description: 
facter change the permissions of /opt, before install:

# ls -ld /opt
drwxr-xr-x   7 root     sys          512 Mar 22 17:12 /opt

after install:
# ls -ld /opt
drwxrwxr-x   7 root     sys          512 Mar 22 17:12 /opt

Some programs (sendmail) can\'t run if there is group write on elements of
the path.  It is best to just not list the system directories in a CSW
package.  Also best to leave out files/directories in CSWcommon and add a
depend for CSWcommon.

====================================================================== 

---------------------------------------------------------------------- 
 (0004531) glaw (manager) - 2007-04-20 10:48
 http://www.opencsw.org/bugtrack/view.php?id=2208#c4531 
---------------------------------------------------------------------- 
Hi

There is nothing in the pkg that should touch the permissions of /opt. It
is set 
d none /opt ? ? ?
in the prototype file

Also I cannot reproduce this. I\'ve taken an entirely clean Solaris x86
machine:

# exec bash
                      
bash-3.00# PATH=$PATH:/opt/csw/bin/:/opt/csw/sbin/
bash-3.00# pkginfo CSWfacter
ERROR: information for \"CSWfacter\" was not found
bash-3.00# ls -ld /opt/
drwxr-xr-x  10 root     sys          512 Apr 19 23:29 /opt/
bash-3.00# yes | pkg-get install facter 2&>1 > /dev/null
bash-3.00# !ls
ls -ld /opt/
drwxr-xr-x  10 root     sys          512 Apr 19 23:29 /opt/
bash-3.00# !pkginfo
pkginfo CSWfacter
application CSWfacter facter - a system fact gatherer

Could you please describe exactly why you think the facter package is the
cause of this?

Thanks 

---------------------------------------------------------------------- 
 (0004532) james (reporter) - 2007-04-20 11:15
 http://www.opencsw.org/bugtrack/view.php?id=2208#c4532 
---------------------------------------------------------------------- 
gyor:/home/james$ ls -ld /opt
drwxr-xr-x  22 root     sys          512 Apr 20 12:44 /opt
gyor:/home/james$ sudo pkg-get -s http://csw/unstable -U -u facter
Getting catalog...
--16:10:19--  http://csw/unstable/sparc/5.8/catalog
           => `catalog\'
Resolving csw... 192.168.1.8
Connecting to csw|192.168.1.8|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 143,741 (140K) [text/plain]

100%[=============================================>] 143,741      
--.--K/s             

16:10:19 (44.23 MB/s) - `catalog\' saved [143741/143741]

Updating catalog file
/var/pkg-get/catalog-csw updated

--16:10:19--  http://csw/unstable/sparc/5.8/descriptions
           => `descriptions\'
Resolving csw... 192.168.1.8
Connecting to csw|192.168.1.8|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 88,987 (87K) [text/plain]

100%[=============================================>] 88,987       
--.--K/s             

16:10:19 (41.52 MB/s) - `descriptions\' saved [88987/88987]

Updated description file
No existing install of CSWfacter found. Installing...
Note: Use of md5 disabled in config
md5 utility temporarily non-functional
assuming local file facter-1.3.6-SunOS5.8-all-CSW.pkg.gz valid to use
Analysing special files...

Processing package instance <CSWfacter> from
</tmp/pkg-get/facter-1.3.6-SunOS5.8-all-CSW.pkg.gz.tmp>

facter - a system fact gatherer
(i386) 1.3.6
		  GNU LESSER GENERAL PUBLIC LICENSE

<snip>

That\'s all there is to it!


## Executing checkinstall script.
## Processing package information.
## Processing system information.
   6 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
  /opt <attribute change only>

Do you want to install these conflicting files [y,n,?,q] y
## Checking for setuid/setgid programs.

Installing facter - a system fact gatherer as <CSWfacter>

## Installing part 1 of 1.
/opt/csw/bin/facter
/opt/csw/lib/ruby/site_ruby/1.8/facter.rb
/opt/csw/lib/ruby/site_ruby/1.8/facter/memory.rb
/opt/csw/lib/ruby/site_ruby/1.8/facter/processor.rb
[ verifying class <none> ]

Installation of <CSWfacter> was successful.
gyor:/home/james$ ls -ld /opt
drwxrwxr-x  22 root     sys          512 Apr 20 12:44 /opt 

---------------------------------------------------------------------- 
 (0004556) glaw (manager) - 2007-05-08 05:23
 http://www.opencsw.org/bugtrack/view.php?id=2208#c4556 
---------------------------------------------------------------------- 
This is strange. Do you have all the dependencies of facter installed
already? Are you sure it isn\'t one of these that is causing the change?

Assuming that another package is not responsible, could you give me
details of your exact OS version and platform (uname -a) so I can try and
reproduce this.

Thanks 

---------------------------------------------------------------------- 
 (0004564) glaw (manager) - 2007-05-13 09:34
 http://www.opencsw.org/bugtrack/view.php?id=2208#c4564 
---------------------------------------------------------------------- 
in the absence of more information, i\'m closing this. 

---------------------------------------------------------------------- 
 (0004565) james (reporter) - 2007-05-13 09:43
 http://www.opencsw.org/bugtrack/view.php?id=2208#c4565 
---------------------------------------------------------------------- 
I\'m as sure as above.  I\'m not sure why.

$ uname -a
SunOS gyor 5.8 Generic_117350-38 sun4u sparc SUNW,Ultra-60 

---------------------------------------------------------------------- 
 (0004618) glaw (manager) - 2007-06-10 18:03
 http://www.opencsw.org/bugtrack/view.php?id=2208#c4618 
---------------------------------------------------------------------- 
James

I\'ve no access to a sparc or a sol 8 machine at this time (at least, not
as root). So reproducing this is difficult. There is a new version of
facter available in newpkgs which may or may not exhibit the same behaviour
as the one you\'ve already tried. I\'d be grateful if you could attempt to
reproduce the permissions change issue with this new package.

Thanks

Gary 

---------------------------------------------------------------------- 
 (0004752) james (reporter) - 2007-09-19 20:54
 http://www.opencsw.org/bugtrack/view.php?id=2208#c4752 
---------------------------------------------------------------------- 
1.3.7 still has:

1 d none /opt ? ? ?

I recommend removing /opt from the package prototype to avoid these
problems. 

---------------------------------------------------------------------- 
 (0005152) glaw (manager) - 2008-02-27 08:59
 http://www.opencsw.org/bugtrack/view.php?id=2208#c5152 
---------------------------------------------------------------------- 
fixed in the latest release 

---------------------------------------------------------------------- 
 (0006069) glaw (manager) - 2009-05-03 13:42
 http://www.opencsw.org/bugtrack/view.php?id=2208#c6069 
---------------------------------------------------------------------- 
fixed in latest release 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-03 13:42 glaw           Note Added: 0006069                          
2009-05-03 13:42 glaw           Status                   resolved => closed  
======================================================================




More information about the bug-notifications mailing list