Bug 12636

Summary: OES2 NCP share mounted with pam_mount/ncpfs shows no files
Product: File System Reporter: Russell Jones (russell.jones)
Component: OtherAssignee: fs_other
Status: CLOSED OBSOLETE    
Severity: normal CC: alan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.24-23-server Subsystem:
Regression: No Bisected commit-id:

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