OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002208 [facter] regular use major always 2007-04-16 09:43 2011-03-27 11:27
Reporter james View Status public  
Assigned To markp
Priority normal Resolution fixed  
Status closed  
Summary 0002208: 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.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0004531)
glaw (reporter)
2007-04-20 10:48

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

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 (reporter)
2007-05-08 05:23

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 (reporter)
2007-05-13 09:34

in the absence of more information, i\'m closing this.
(0004565)
james (reporter)
2007-05-13 09:43

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 (reporter)
2007-06-10 18:03

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

1.3.7 still has:

1 d none /opt ? ? ?

I recommend removing /opt from the package prototype to avoid these problems.
(0005152)
glaw (reporter)
2008-02-27 08:59

fixed in the latest release
(0006069)
glaw (reporter)
2009-05-03 13:42

fixed in latest release
(0008904)
markp (developer)
2011-03-14 12:21

Fixed.
(0008942)
markp (developer)
2011-03-27 11:27

done


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker