CIFS automount with "nounix" option create empty directories

Bug #903602 reported by scido
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-meta (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Hi,

I'm trying to mount two CIFS shares from my Verbatim NAS. Because of permission problem, I need to use the "nounix" option when I mount them. If I do that with the command:

sudo mount.cifs //X.X.X.X/media /mnt/media/ -o credentials=/etc/samba/credentials,iocharset=utf8,uid=1000,gid=100,dir_mode=0775,file_mode=0775,nounix

everything works well.
If I write the same command in my auto.home file:

media -fstype=cifs,credentials=/etc/samba/credentials,iocharset=utf8,uid=1000,gid=100,dir_mode=0775,file_mode=0775,nounix ://192.168.1.253/media

I get a "media" directory empty.

Can you help me?

Ubuntu Maverick 10.10
Linux 2.6.35-31-generic
autofs5 5.0.5-0ubuntu2.1
cifs-utils 2:4.5-2ubuntu0.10.10.1

Dave Walker (davewalker)
Changed in autofs (Ubuntu):
importance: Undecided → Medium
Revision history for this message
scido (domi-mailing-list) wrote :

Hi,
I was too impatient... Mounting with mount command get the same error: empty directory. I think it's something related to "nounix" option. So, it's not related to autofs package, but to CIFS and samba server.
 Please let me know if you need more information.

thank you
Scido

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in autofs (Ubuntu):
status: New → Confirmed
Revision history for this message
Björn Jacke (bjoern-j3e) wrote :

I've CCd kernel package maintainer Stefan Bader also.

I've seen this problem on a customer machine also with current linux-image hwe-18.04 (5.4.0.91) kernels. Directories with nounix mount option are empty.

Previous 5.4.0.89 seems to have issues *with* unix extensions here though, that one wan not able to mount at all if the unix mount option is added.

The current bug with "successful" but empty cifs mounts is worse though.

affects: autofs (Ubuntu) → linux-meta (Ubuntu)
Revision history for this message
Björn Jacke (bjoern-j3e) wrote :

funny, just saw, that the bug is quite exactly 10years old, which is why it looked like from this month. The problem still looks very similar but it isn't a regression from 5.4.0.89 to 5.4.0.91 at all. The kernel seems to get confused though if you mount a share once with and later withouth unix extensions. In such a situation unmounting *all* cifs shares helped to solve it. But it still looks buggy that area.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.