umount.cifs doesn't exist in maverick - pyNeighborhood isn't able to unmount share

Bug #607702 reported by Linus Hoppe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyneighborhood
Fix Released
Low
Unassigned

Bug Description

 * umount.cifs (and by extension, smbumount) no longer exists upstream,
    because mount.cifs no longer permits non-root users to mount except by
    way of the standard /etc/fstab arguments.
Since cifs-utils 2:4.5-1 (see changelog https://launchpad.net/ubuntu/+source/cifs-utils/2:4.5-1), umount.cifs does no longer exist.

Because of this, pyNeighborhood isn't able to unmount a share.

Solution: When umount.cifs is not available, use /bin/umount.

Changed in pyneighborhood:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → pyNeighborhood (pyneighborhood)
milestone: none → 0.5.1
status: Confirmed → In Progress
Betz Stefan (encbladexp)
Changed in pyneighborhood:
assignee: pyNeighborhood (pyneighborhood) → Betz Stefan (encbladexp)
importance: High → Low
status: In Progress → Fix Committed
Revision history for this message
Linus Hoppe (linus-hoppe-deactivatedaccount) wrote :

Testing revision 437:

linus@virtualbox-maverick:~/Desktop/pyneighborhood$ ./pyNeighborhood
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
Traceback (most recent call last):
  File "./pyNeighborhood", line 23, in <module>
    from pyneighborhood.mainwindow import MainWindow
  File "/home/linus/Desktop/pyneighborhood/pyneighborhood/__init__.py", line 94, in <module>
    config.set('CIFS','utility','/sbin/%s.cifs' ('mount' if utility == 'mount' else 'umount'))
TypeError: 'str' object is not callable

linus@virtualbox-maverick:~/Desktop/pyneighborhood$ ./pyNeighborhood --trace
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
In __init__.py at Line 92:
Checking for /sbin/mount.cifs
In __init__.py at Line 95:
Checking for /sbin/mount.cifs
In __init__.py at Line 92:
Checking for /sbin/umount.cifs
Traceback (most recent call last):
  File "./pyNeighborhood", line 23, in <module>
    from pyneighborhood.mainwindow import MainWindow
  File "/home/linus/Desktop/pyneighborhood/pyneighborhood/__init__.py", line 94, in <module>
    config.set('CIFS','utility','/sbin/%s.cifs' ('mount' if utility == 'mount' else 'umount'))
TypeError: 'str' object is not callable

linus@virtualbox-maverick:~/Desktop/pyneighborhood$ ./pyNeighborhood --debug
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
Debug: Checking for /sbin/mount.cifs
Debug: Checking for /sbin/mount.cifs
Debug: Checking for /sbin/umount.cifs
Traceback (most recent call last):
  File "./pyNeighborhood", line 23, in <module>
    from pyneighborhood.mainwindow import MainWindow
  File "/home/linus/Desktop/pyneighborhood/pyneighborhood/__init__.py", line 94, in <module>
    config.set('CIFS','utility','/sbin/%s.cifs' ('mount' if utility == 'mount' else 'umount'))
TypeError: 'str' object is not callable

Revision history for this message
Linus Hoppe (linus-hoppe-deactivatedaccount) wrote :
Download full text (4.0 KiB)

Testing Revision 438:

linus@virtualbox-maverick:~/Desktop/pyneighborhood$ ./pyNeighborhood --trace
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
In __init__.py at Line 45:
Creating Default Config...
In __init__.py at Line 92:
Checking for /sbin/mount.cifs
In __init__.py at Line 95:
Checking for /sbin/mount.cifs
In __init__.py at Line 92:
Checking for /sbin/umount.cifs
In __init__.py at Line 95:
Checking for /sbin/umount.cifs
In __init__.py at Line 98:
Using /sbin/umount.cifs for future operations.
In browsing.py at Line 43:
Starting Browsing Engine...
In browsing.py at Line 51:
Found Master Browser: 192.168.2.100
In nmblookup.py at Line 51:

 DELL-LAPTOP <20>
In nmblookup.py at Line 51:

 WORKGROUP <1e>
In browsing.py at Line 53:
Master Browser 192.168.2.100 has Workgroup WORKGROUP
In nmblookup.py at Line 120:
Querying Host 10.0.2.15...
In nmblookup.py at Line 132:
...looking up Hostname & IP...
In nmblookup.py at Line 51:

 VIRTUALBOX-MAVE <20>
In nmblookup.py at Line 51:

 WORKGROUP <1e>
In nmblookup.py at Line 142:
... Workgroup = WORKGROUP, Hostname = virtualbox-maverick.local, Name = VIRTUALBOX-MAVE...
In nmblookup.py at Line 146:
...done
In nmblookup.py at Line 120:
Querying Host 192.168.2.100...
In nmblookup.py at Line 132:
...looking up Hostname & IP...
In nmblookup.py at Line 51:

 DELL-LAPTOP <20>
In nmblookup.py at Line 51:

 WORKGROUP <1e>
In nmblookup.py at Line 142:
... Workgroup = WORKGROUP, Hostname = dell_laptop.speedport.ip, Name = DELL-LAPTOP...
In nmblookup.py at Line 146:
...done
In browsing.py at Line 59:
Found workgroup: WORKGROUP
In browsing.py at Line 62:
Scanning host VIRTUALBOX-MAVE for shares...
In smbclient.py at Line 30:
Scanning for Shares: 10.0.2.15
In smbclient.py at Line 40, the command '['/usr/bin/smbclient', '-N', '-L', u'10.0.2.15']' returns:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.4]
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.4]
Anonymous login successful

 Sharename Type Comment
 --------- ---- -------
 print$ Disk Printer Drivers
 IPC$ IPC IPC Service (virtualbox-maverick server (Samba, Ubuntu))
 dokumente Disk
Anonymous login successful

 Server Comment
 --------- -------
 VIRTUALBOX-MAVER virtualbox-maverick server (Samba, Ubuntu)

 Workgroup Master
 --------- -------
 WORKGROUP

In browsing.py at Line 66:
Found share: (1, u'print$', 1, None, None, None, None, u'Printer Drivers', None, 0, 0)
In browsing.py at Line 66:
Found share: (2, u'dokumente', 1, None, None, None, None, u'', None, 0, 0)
In browsing.py at Line 62:
Scanning host DELL-LAPTOP for shares...
In smbclient.py at Line 30:
Scanning for Shares: 192.168.2.100
In smbclient.py at Line 40, the command '['/usr/bin/smbclient', '-N', '-L', u'192.168.2.100']' returns:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.0]
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.0]
Anonymous login successful

 Sharename Type Comment
 ----...

Read more...

Revision history for this message
Linus Hoppe (linus-hoppe-deactivatedaccount) wrote :

Works for me in 439.

Betz Stefan (encbladexp)
Changed in pyneighborhood:
status: Fix Committed → Fix Released
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.