Quick Review: Boxee Box
December 27, 2011 – 12:22 am | 3 Comments

Some of the technical issues with Boxee Box could have been fixed if the dev team was paying more attention to addressing the bugs rather than adding “features” of dubious value. In the final analysis, for the price and ease of use, Boxee Box is the best in its class and price range. You just need to be mindful of its limitations and buy it in hope of future improvements to its usability.

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Filesystems

Mountpoint permission problem in Solaris

Submitted by on May 4, 2006 – 6:45 pmNo Comment
Mountpoint permission problem in Solaris

The following condition was originally discovered in OpenSolaris 11 (Bug ID: 4697677). This problem occurs when you do mkdir -m 700 on a mountpoint before mounting it. This superceeds whatever permissions you might give to the mountpoint after it’s mounted.

This condition has been known to occur following a Live Upgrade process from Solaris 8 to Solaris 9. Apparently something in the Live Upgrade script sets restrictive permissions on the mountpoint before mounting it. Naturally, the Live Upgrade process is done under root account, so the SysAdmin would never notice the problem.

The symptoms of this issue include problems with the man command for non-root users, which uses nroff, which writes to temporary space in /usr/tmp which is a soft link to ../var/tmp. Also, in the affected filesystem (like /usr) a non-root user can do ls -als and will see something like this:

 2 drwxr-xr-x  47 root     sys         1024 May  4 12:36 .
 2 drwxr-xr-x   2 root     bin         1024 Feb 10 09:36 4lib
 2 lrwxrwxrwx   1 root     other          5 Feb 10 09:23 5bin -> ./bin
 2 lrwxrwxrwx   1 root     root          10 Feb 10 01:03 adm -> ../var/adm

As you may notice, the “..” metalink is missing. Also, you will not be able to access any soft links leading to ../whatever. This may be a big problem for some users and applications.

The easy way of fixing this is, of course, to unmount the filesystem and change the permissions for the underlying mountpoint. However, there is a way of addressing this issue without unmounting anything. The following is a script that would fix the problem using a local NFS mount. It uses /usr/ and /opt as examples.

#!/bin/ksh
cd /
mkdir /fix
mkidr -p /fix/mnt
for i in usr opt
do
        chmod 700 /fix
        share -F nfs -o rw=localhost,root=localhost /
        mount -o vers=3 127.0.0.1:/ /fix/mnt
        chmod 755  /fix/mnt/${i}
        umount  /fix/mnt
        unshare /
done

Popularity: 2% [?]

Related posts:

  1. Create and mount ISO image under Solaris
  2. NFS-mount “Permission denied” error
  3. Resetting Root Password under Solaris
  4. Solaris performance monitoring
  5. Solaris One-Liners
  6. Monitoring Veritas VM problems on Solaris
  7. Working with ISO images on Solaris
  8. Solaris boot disk copy using dd
  9. Using pkg-get on Solaris
  10. Apache MySQL PHP Solaris 8 Installation

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.