Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Inappropriate ioctl for device

807557May 23 2007 — edited Jun 5 2007
Hello,

I have some zones set up in solaris 10. When i try to scp a file to any of the zones, i get the following error:

"shell-init: error retrieving current directory: getcwd: cannot access parent directories: Inappropriate ioctl for device"



1. /export/home is mounted using lofs in to the zone from the parent.
2. This does not happen when i scp something to the parent
3. This does not happen on an account which is local to the zone, whose default shell is bash
3. This does not happen on an NIS account whose default shell is ksh
4. This does happen on all NIS accounts who have a default shell of bash, even if there is nothing in their home directory (ie, no .bashrc).
5. There is no mention of tty in /etc/profile or /etc/.login
6. I have tried changing the default TERM to vt100 from xterm, it still happens
7. The error does not present itself upon a normal ssh login
8. the error [n]does[n] show up when i do something like `ssh myzone "id"` from another box or zone.


If i don't mount /export/home from the parent in to the zone, i do not get this error. There must be some problem with how i set this up maybe? Here's the zonecfg info:

zonepath: /export/zones/vwsuserz
autoboot: true
pool:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir: /export/home
special: /export/home
raw not specified
type: lofs
options: [rw,nodevices]

net:
address: 10.222.136.162
physical: bge0



I've been googling for a long time and no one seems to have found a resolution. Does anyone have insight in to this problem?

Message was edited by:
keegang

Message was edited by:
keegang
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2007
Added on May 23 2007
1 comment
1,267 views