"Operation not permitted" at end of portupgrade

2008-05-03 Thread Mike Clarke
At the end of a portupgrade run for firefox I get the following

===>   Registering installation for firefox-2.0.0.14,1
===>  Cleaning for firefox-2.0.0.14,1
--->  Cleaning out obsolete shared libraries
[Updating the pkgdb  in /var/db/pkg ... - 626 packages 
found (-0 +1) . done]
Operation not permitted - /usr/local/lib/compat/pkg/libc.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libc_r.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libcrypt.so.2
Operation not permitted - /usr/local/lib/compat/pkg/libpthread.so.1
Operation not permitted - /usr/local/lib/compat/pkg/libthr.so.1

The permissions on all these files are -r--r--r--. Should I change them 
to  -rwxr-xr-x like the rest of the files in that directory or just 
ignore it?

FreeBSD kestrel.lan 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 
19:59:52 UTC 2008 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

-- 
Mike Clarke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: "Operation not permitted" at end of portupgrade

2008-05-03 Thread Per olof Ljungmark

Mike Clarke wrote:

At the end of a portupgrade run for firefox I get the following

===>   Registering installation for firefox-2.0.0.14,1
===>  Cleaning for firefox-2.0.0.14,1
--->  Cleaning out obsolete shared libraries
[Updating the pkgdb  in /var/db/pkg ... - 626 packages 
found (-0 +1) . done]

Operation not permitted - /usr/local/lib/compat/pkg/libc.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libc_r.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libcrypt.so.2
Operation not permitted - /usr/local/lib/compat/pkg/libpthread.so.1
Operation not permitted - /usr/local/lib/compat/pkg/libthr.so.1

The permissions on all these files are -r--r--r--. Should I change them 
to  -rwxr-xr-x like the rest of the files in that directory or just 
ignore it?


Read the archives for an answer.

--per
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: "Operation not permitted" at end of portupgrade

2008-05-03 Thread Matthew Seaman

Mike Clarke wrote:




Operation not permitted - /usr/local/lib/compat/pkg/libc.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libc_r.so.5
Operation not permitted - /usr/local/lib/compat/pkg/libcrypt.so.2
Operation not permitted - /usr/local/lib/compat/pkg/libpthread.so.1
Operation not permitted - /usr/local/lib/compat/pkg/libthr.so.1

The permissions on all these files are -r--r--r--. Should I change them 
to  -rwxr-xr-x like the rest of the files in that directory or just 
ignore it?


That's actually because those are backup copies of system shared libraries
(probably from the compat5x port) which have the system immutable bit
set on them.

Use 'ls -lo' to see what flags are set.

Use 'chflags -0 filename' to unset any flags: note your ability to do
this depends on the kern.securelevel setting.  If 'sysctl kern.securelevel'
returns greater than zero, then you'll need to reboot into single user in
order to modify those files.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature