Dominique Frise
2001-Dec-20 10:24 UTC
OpenSSH-sparc-3.0.2p1.pkg: /usr/local conflicting file
Hi, Trying to install the Solaris package I made after configure/compilation under Solaris 8. My configure settings --------------------- OpenSSH has been configured with the following options: User binaries: /usr/local/bin System binaries: /usr/local/sbin Configuration files: /usr/local/etc Askpass program: /usr/local/libexec/ssh-askpass Manual pages: /usr/local/man/manX PID file: /var/run sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin Random number collection: Builtin (timeout 200) Manpage format: man PAM support: yes KerberosIV support: no Smartcard support: no AFS support: no S/KEY support: no TCP Wrappers support: yes MD5 password support: no IP address in $DISPLAY hack: no Use IPv4 by default hack: no Translate v4 in v6 hack: no Host: sparc-sun-solaris2.8 Compiler: cc Compiler flags: -g Preprocessor flags: -I/usr/local/ssl/include -I/usr/local/include -DPAM_TTY_KLUDGE Linker flags: -R/usr/local/ssl/lib -L/usr/local/ssl/lib -L/usr/local/lib -R/usr/local/lib Libraries: -lpam -ldl -lwrap -lz -lsocket -lnsl -lcrypto PAM is enabled. You may need to install a PAM control file for sshd, otherwise password authentication may fail. Example PAM control files can be found in the contrib/ subdirectory WARNING: you are using the builtin random number collection service. Please read WARNING.RNG and request that your OS vendor includes /dev/random in future versions of their OS. Here below the log of my Solaris package installation: Log of the package installation ------------------------------- # pkgadd -d OpenSSH-sparc-3.0.2p1.pkg The following packages are available: 1 OpenSSH OpenSSH Portable for Solaris (sparc) 3.0.2p1 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: Processing package instance <OpenSSH> from </local/soft/pub/openssh-3.0.2p1/contrib/solaris/OpenSSH-sparc-3.0.2p1.pkg> OpenSSH Portable for Solaris (sparc) 3.0.2p1 OpenSSH Portable Team - http://www.openssh.com/portable.html ## Processing package information. ## Processing system information. 13 package pathnames are already properly installed. ## 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: * /usr/local * - conflict with a file which does not belong to any package. Do you want to install these conflicting files [y,n,?,q] y ## Checking for setuid/setgid programs. The following files are being installed with setuid and/or setgid permissions: /usr/local/bin/ssh <setuid root> Do you want to install these as setuid/setgid files [y,n,?,q] y Installing OpenSSH Portable for Solaris as <OpenSSH> ## Installing part 1 of 1. /etc/init.d/opensshd /etc/rc0.d/K30opensshd <symbolic link> /etc/rc1.d/K30opensshd <symbolic link> /etc/rc2.d/S98opensshd <symbolic link> /etc/rcS.d/K30opensshd <symbolic link> /usr/local/bin/scp /usr/local/bin/sftp /usr/local/bin/slogin <symbolic link> /usr/local/bin/ssh /usr/local/bin/ssh-add /usr/local/bin/ssh-agent /usr/local/bin/ssh-keygen /usr/local/bin/ssh-keyscan /usr/local/etc/moduli /usr/local/etc/ssh_config /usr/local/etc/ssh_prng_cmds /usr/local/etc/sshd_config /usr/local/libexec/sftp-server /usr/local/man/man1/scp.1 /usr/local/man/man1/sftp.1 /usr/local/man/man1/slogin.1 <symbolic link> /usr/local/man/man1/ssh-add.1 /usr/local/man/man1/ssh-agent.1 /usr/local/man/man1/ssh-keygen.1 /usr/local/man/man1/ssh-keyscan.1 /usr/local/man/man1/ssh.1 /usr/local/man/man8/sftp-server.8 /usr/local/man/man8/sshd.8 /usr/local/sbin/sshd /usr/local/share/Ssh.bin [ verifying class <none> ] Installation of <OpenSSH> was successful. Now the problem I got --------------------- Before pkg install. /usr/local was a soft link to /local (ln -s /local /usr/local). After installation the link is gone and a new /usr/local directory is created containing only openssh stuff :-( Thanks for help, Dominique ____________________UNIL - University of Lausanne____________________ Dominique Frise E-mail: Dominique.Frise at ci.unil.ch UNIL, Centre Informatique Phone: +41 21 692 22 21 Rte de Chavannes 33 Fax: +41 21 692 22 05 CH-1007 Lausanne, Switzerland URL: http://www.unil.ch/ci
Nicolas Williams
2001-Dec-20 16:54 UTC
OpenSSH-sparc-3.0.2p1.pkg: /usr/local conflicting file
On Thu, Dec 20, 2001 at 11:24:13AM +0100, Dominique Frise wrote:> Hi, > > Trying to install the Solaris package I made after configure/compilation > under Solaris 8.[...]> Log of the package installation > ------------------------------- > # pkgadd -d OpenSSH-sparc-3.0.2p1.pkg > > The following packages are available: > 1 OpenSSH OpenSSH Portable for Solaris > (sparc) 3.0.2p1 > > Select package(s) you wish to process (or 'all' to process > all packages). (default: all) [?,??,q]: > > Processing package instance <OpenSSH> from > </local/soft/pub/openssh-3.0.2p1/contrib/solaris/OpenSSH-sparc-3.0.2p1.pkg>[...]> The following files are already installed on the system and are being > used by another package: > * /usr/local > > * - conflict with a file which does not belong to any package. > > Do you want to install these conflicting files [y,n,?,q] yHere's the problem. Whether a package should include an entry for BASEDIR, I'm not sure(*), but certainly you didn't have to install "conflicting" files, particularly when the only conflict was /usr/local/ and it already existed. [...]> Installation of <OpenSSH> was successful. > > Now the problem I got > --------------------- > Before pkg install. /usr/local was a soft link to /local (ln -s /local > /usr/local). > After installation the link is gone and a new /usr/local directory is > created containing only openssh stuff :-(See above.> Thanks for help, > > Dominique > ____________________UNIL - University of Lausanne____________________ > Dominique Frise E-mail: Dominique.Frise at ci.unil.ch > UNIL, Centre Informatique Phone: +41 21 692 22 21 > Rte de Chavannes 33 Fax: +41 21 692 22 05 > CH-1007 Lausanne, Switzerland URL: http://www.unil.ch/ci(*) Actually, packages should not include pkgmap entries for BASEDIR and other relocatable directories - those should either be created by the preinstall script if they did not exist or should be in pkgmap but conditional on particular classes enabled by a checkinstall script. Cheers, Nico -- -DISCLAIMER: an automatically appended disclaimer may follow. By posting- -to a public e-mail mailing list I hereby grant permission to distribute- -and copy this message.- Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.
Since I neglected to CC the list, here's what I sent to Dominique-- -----Original Message----- From: Loomis, Rip Sent: Thursday, 20 December, 2001 10:09 To: 'Dominique Frise' Subject: RE: OpenSSH-sparc-3.0.2p1.pkg: /usr/local conflicting file Dominique-- Unfortunately, this is one of those: "Hey Doc, it hurts when I do this..." "Well, don't do that anymore..." situations. You have a non-standard installation method. The Solaris pkgadd doesn't do a perfect job of handling such things, and the only way that the OpenSSH package could handle all such possible cases would be to have an ugly preinstall script that checked for things. Ben's new-and-improved packaging routines are cleaner than my old-and-ugly ones in the older OpenSSH portable versions, and work better for most cases--and I don't think it's likely that scripts to work around situations like this will be added. The correct answer, for future reference, is to answer "No" to the question about installing "conflicting files". pkgadd will then ask you if you want to continue--say yes, and the package should install properly. If it *doesn't* at that point, then let the list know. Hope this helps-- -- Rip Loomis Senior Systems Security Engineer SAIC Center for Information Security Technology> -----Original Message----- > From: Dominique Frise [mailto:Dominique.Frise at ci.unil.ch] > Sent: Thursday, 20 December, 2001 05:24[[SNIP]]> The following files are already installed on the system and are being > used by another package: > * /usr/local > > * - conflict with a file which does not belong to any package. > > Do you want to install these conflicting files [y,n,?,q] y[[SNIP]]> Now the problem I got > --------------------- > Before pkg install. /usr/local was a soft link to /local (ln -s /local > /usr/local). > After installation the link is gone and a new /usr/local directory is > created containing only openssh stuff :-([[SNIP]]
Dost, Alexander
2001-Dec-21 08:38 UTC
OpenSSH-sparc-3.0.2p1.pkg: /usr/local conflicting file
That won't really help you. The second field in the pkgmap file points to the type of the file to install. If it tells pkgadd that /usr/local is a directory it will install a directory and kill your link. You would have to change it to a symbolic link if this should work. There is no way to tell pkgadd not to overwrite a link with a directory... The best way (as someone stated before) is not to install conflicting files and continue without creating /usr/local anyway. Alex> -----Original Message----- > From: Tim McGarry [SMTP:tim at mcgarry.ch] > Sent: Thursday, December 20, 2001 19:19 > To: Nicolas Williams; Dominique Frise; openssh-unix-dev at mindrot.org > Subject: Re: OpenSSH-sparc-3.0.2p1.pkg: /usr/local conflicting file > > These types of errors can usually be fixed by replacing the fields in the > package map that set the owner group permissions to be > ? ? ?, that way the Solaris packaging system sees no conflict. > > > Tim > ----- Original Message ----- > From: "Nicolas Williams" <Nicolas.Williams at ubsw.com> > To: "Dominique Frise" <Dominique.Frise at ci.unil.ch>; > <openssh-unix-dev at mindrot.org> > Sent: Thursday, December 20, 2001 5:54 PM > Subject: Re: OpenSSH-sparc-3.0.2p1.pkg: /usr/local conflicting file > > > > On Thu, Dec 20, 2001 at 11:24:13AM +0100, Dominique Frise wrote: > > > Hi, > > > > > > Trying to install the Solaris package I made after > configure/compilation > > > under Solaris 8. > > > > [...] > > > > > Log of the package installation > > > ------------------------------- > > > # pkgadd -d OpenSSH-sparc-3.0.2p1.pkg > > > > > > The following packages are available: > > > 1 OpenSSH OpenSSH Portable for Solaris > > > (sparc) 3.0.2p1 > > > > > > Select package(s) you wish to process (or 'all' to process > > > all packages). (default: all) [?,??,q]: > > > > > > Processing package instance <OpenSSH> from > > > > </local/soft/pub/openssh-3.0.2p1/contrib/solaris/OpenSSH-sparc-3.0.2p1.pkg > > > > > > [...] > > > > > The following files are already installed on the system and are being > > > used by another package: > > > * /usr/local > > > > > > * - conflict with a file which does not belong to any package. > > > > > > Do you want to install these conflicting files [y,n,?,q] y > > > > Here's the problem. Whether a package should include an entry for > > BASEDIR, I'm not sure(*), but certainly you didn't have to install > > "conflicting" files, particularly when the only conflict was > > /usr/local/ and it already existed. > > > > [...] > > > > > Installation of <OpenSSH> was successful. > > > > > > Now the problem I got > > > --------------------- > > > Before pkg install. /usr/local was a soft link to /local (ln -s /local > > > /usr/local). > > > After installation the link is gone and a new /usr/local directory is > > > created containing only openssh stuff :-( > > > > See above. > > > > > Thanks for help, > > > > > > Dominique > > > ____________________UNIL - University of Lausanne____________________ > > > Dominique Frise E-mail: Dominique.Frise at ci.unil.ch > > > UNIL, Centre Informatique Phone: +41 21 692 22 21 > > > Rte de Chavannes 33 Fax: +41 21 692 22 05 > > > CH-1007 Lausanne, Switzerland URL: http://www.unil.ch/ci > > > > > > (*) Actually, packages should not include pkgmap entries for BASEDIR and > > other relocatable directories - those should either be created by the > > preinstall script if they did not exist or should be in pkgmap but > > conditional on particular classes enabled by a checkinstall script. > > > > Cheers, > > > > Nico > > -- > > -DISCLAIMER: an automatically appended disclaimer may follow. By > posting- > > -to a public e-mail mailing list I hereby grant permission to > distribute- > > -and copy this message.- > > > > Visit our website at http://www.ubswarburg.com > > > > This message contains confidential information and is intended only > > for the individual named. If you are not the named addressee you > > should not disseminate, distribute or copy this e-mail. Please > > notify the sender immediately by e-mail if you have received this > > e-mail by mistake and delete this e-mail from your system. > > > > E-mail transmission cannot be guaranteed to be secure or error-free > > as information could be intercepted, corrupted, lost, destroyed, > > arrive late or incomplete, or contain viruses. The sender therefore > > does not accept liability for any errors or omissions in the contents > > of this message which arise as a result of e-mail transmission. If > > verification is required please request a hard-copy version. This > > message is provided for informational purposes and should not be > > construed as a solicitation or offer to buy or sell any securities or > > related financial instruments. > >