CIFS mount in fstab ignores noauto if share name same as mount point

Bug #2008773 reported by TheKorn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eglibc (Ubuntu)
New
Undecided
Unassigned

Bug Description

If a cifs mount is defined in fstab, it will be automatically mounted even if noauto is specified in the options if the share name and the mount directory are the same.

For example, the following line will automount despite it having the noauto flag as the first option:

//172.18.0.50/mythtv /mythtv cifs noauto,credentials=/home/mythfrontend/.smbcredentials,iocharset=utf8,vers=3.0,gid=1000 0 2

However if you change the mount point to a different name, it will not be auto mounted:

//172.18.0.50/mythtv /mithtv cifs noauto,credentials=/home/mythfrontend/.smbcredentials,iocharset=utf8,vers=3.0,gid=1000 0 2

Finally, if noauto is removed, it'll automount as expected:

//172.18.0.50/mythtv /mithtv cifs credentials=/home/mythfrontend/.smbcredentials,iocharset=utf8,vers=3.0,gid=1000 0 2

Observed using ubuntu 22.04.2 LTS

Tags: cifs fstab noauto
Revision history for this message
TheKorn (ubuntu-thekorn) wrote :

(assumes that /mythtv and /mithtv both exist, same permissions, yadda yadda yadda)

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.