mount -t smbfs works from cmdline

Bug #47685 reported by ipguru99
12
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: smbfs

I have a script that I have been using since warty, for mounting a smb share. After Dapper, the script completely freezes the laptop. I tried it on another laptop, same thing. I copy the script and paste it into a bash.. works fine. Here is the command:
<sudo mount -t smbfs -o username=andrea,password=andrea?,dmask=777,fmask=777 //deb/andrea /home/bkastor/test-mount>

I can remove the dmask and fmask options and the command works (totally messing up permissions.. but I had to start trying something).

The file is marked executable.. blah, blah.. but this worked for over a year until Dapper...

Thanks!

Revision history for this message
Nick Demou (ndemou) wrote :

Imidiately after upgrading from breezy 5.10 to dapper 6.06 I had a very similar situation which I finaly resolved. Details follow:

MY SITUATION
-------------------
I was not able to mount using smbfs either by directly issuing the mount command or by putting entries in the fstab
e.g. commands like this:
#mount //192.168.0.42/foo /media/foo/ -o \
   codepage=cp737,iocharset=8859-7, \
   username=xx,password=yy, \
   dmask=777,fmask=777
where hanging

MY RESOLUTION
----------------------
I've disabled samba Unix Extensions[1] and did a filesystem check for my / filesystem ( fsck -f /dev/hda1 from within a knopix CD) and everything returned to normal. I don't know which of the two solved the problem.

[1] To disable the Unix CIFS Extensions you have two options
a) if you have acces to the Samba server, add the following line to smb.conf:
  unix extensions = no
b) if you don't follow this thread
                http://www.ubuntuforums.org/showthread.php?t=188027

Revision history for this message
Jerad Hurst (jvhurst) wrote :

I believe I can confirm. In Xfce when I set up a launcher for (with "local IP" and "user" being the appropriate ones):

smbmount //local IP/all_shared mount -o username=user

And set it up to launch from terminal, the system freezes after inputting the password. I've also tried the following variant conditions:

1) When guest access is allowed on the server and I do not set it to launch from terminal, it does not freeze and works just fine.
2) Copying and pasting this directly into the terminal makes it work just fine.
3) When entering both username=user and password=pass in the shortcut and with launch from terminal turned off and guest access to the server turned off, it mounts just fine.

So it seems like with "run with terminal" on, once I enter the password it crashes. I'm able to consistently get it to crash this way.

Unfortunately, The Samba server does in fact have unix extensions = no. If it helps, the server also has symlinks on it leading outside of the share, with follow symlinks and wide links as yes.

Revision history for this message
Nick Demou (ndemou) wrote :

OK so my situation is not the same (my system doesn't crash only the mount command freezes)
Anyway, maybe this is a workaround for your problem: try to mount using cifs instead of smbfs (see man mount.cifs for any possible small diferences in options).

Revision history for this message
Steve Langasek (vorlon) wrote :

It's been suggested that using cifs instead of smbfs might be a workaround for this bug. Can anyone reproduce this problem with cifs?

In hardy, mount.smbfs will most likely become a wrapper around mount.cifs since smbfs is deprecated upstream.

Chuck Short (zulcss)
Changed in samba:
assignee: nobody → zulcss
status: New → Incomplete
Revision history for this message
Thierry Carrez (ttx) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in samba:
assignee: zulcss → nobody
status: Incomplete → Invalid
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.