Bug 12636 - OES2 NCP share mounted with pam_mount/ncpfs shows no files
Summary: OES2 NCP share mounted with pam_mount/ncpfs shows no files
Status: CLOSED OBSOLETE
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-06 02:02 UTC by Russell Jones
Modified: 2012-05-30 12:51 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.24-23-server
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Russell Jones 2009-02-06 02:02:31 UTC
Latest working kernel version: unknown: none?
Earliest failing kernel version: earliest known: 2.6.24-23-server / -generic
Distribution: Ubuntu 8.04
Hardware Environment: Dell Optiplex 755
Software Environment: bash
Problem Description: Binary package hint: ncpfs

Description: Ubuntu 8.04.2
Release: 8.04

All available updates installed

/etc/security/pam_mount.conf.xml
<ncpmount>ncpmount -S %(SERVER)/%(VOLUME) -A %(SERVER).example.com -U %(USER).Group.site -V %(VOLUME) %(MNTPT) -o "pass-fd=0,volume=%(VOLUME),uid=%(USERUID),gid=%(USERGID)%(before=\",\" OPTIONS)"</ncpmount>

<ncpumount>umount -l %(MNTPT)</ncpumount>

   <volume fstype="ncpfs" server="server" path="Vol1"
        mountpoint="~/Vol1"/>
   <volume fstype="ncpfs" server="server" path="Vol2"
        mountpoint="~/Vol2"/>
   <volume fstype="ncpfs" server="server" path="Vol3"
        mountpoint="~/Vol3"/>

This worked until I installed the latest updates, and XP SP3 with the Novell Client works OK.

The only thing that seems not to work is directory listings, which show only directories. This does not seem to be the same as the partial listing problem described elsewhere, as directories are always shown, and files never are. "find . -t file" returns nothing. Traffic from the server to the workstation seems uninhibited by the intervening firewall (tested using tcpdump on firewall and client and comparing the traffic: it was identical).

The server is OES2 with the latest updates (though not SP2) and the following ncp-related package versions:
ncpfs 2.2.6-24.10
novell-libncputil 1.0-13
novell-libncputil-32bit 1.0-13
novell-ncpenc 5.1.3-0.2.2
novell-ncpns 5.1-4.5
novell-ncpserv 2.0.1-4
novell-ncpserv-nrm 2.0.1-3
novell-ncpserv-tools 2.0.1-4
novell-shadowfs 1.0-18
yast2-novell-ncpserver 2.13.3-36


$ uname -a
Linux host 2.6.24-23-server #1 SMP Mon Jan 26 01:36:05 UTC 2009 x86_64 GNU/Linux

I run the server kernel because I use the workstation for development and run various services. However, I've tried the generic kernel too, and it behaves in the same way.

$apt-cache policy libncp
libncp:
  Installed: 2.2.6-4ubuntu3
  Candidate: 2.2.6-4ubuntu3
  Version table:
 *** 2.2.6-4ubuntu3 0
        500 http://mirror.ox.ac.uk hardy/universe Packages
        100 /var/lib/dpkg/status

Steps to reproduce:
Actual output:
Files are accessible if requested directly, and new files can be created, though they disappear.
e.g.
user@workstation:~/Vol1/path$ touch test
user@workstation:~/Vol1/path$ ls
user@workstation:~/Vol1/path$ cat test
user@workstation:~/Vol1/path$ cat > test
test
user@workstation:~/Vol1/path$ cat test
test
user@workstation:~/Vol1/path$ ls
user@workstation:~/Vol1/path$
user@workstation:~/Vol1/path$ ls -la
total 1
drwxr-xr-x 1 user user 512 2008-08-26 10:54 .
dr-xr-xr-x 1 user user 512 2009-01-06 14:49 ..
user@workstation:~/Vol1/path$

Expected output:
A directory listing containing the file "test"

Slightly modified cross post from https://bugs.launchpad.net/ubuntu/+source/ncpfs/+bug/325226
Comment 1 Alan 2012-05-30 12:51:21 UTC
Closing as obsolete

Note You need to log in before you can comment on or make changes to this bug.