I miss smbfs: cifs doesn't work as expected

Mikkel L. Ellertson mikkel at infinity-ltd.com
Fri Nov 30 15:30:31 UTC 2007

Nico Sabbi wrote:
> Hi,
> with another distribution I could mount an SMB share as my user
> (passing different credentials to mount.smbfs)
> in such a manner that on my pc the mounted files appeared
> to belong to my user.
> The /etc/fstab entry was:
> //server/dir /home/nico/dir smbfs 
> noauto,users,rw,noexec,username=MYUSERNAME,password=MYPWD 0 0 0 0
> In FC8, instead, using cifs I can't obtain the same result: mounting 
> always fails. The problem seems to be related to mount.cifs:
> $ smb4k_mount -t cifs -n //server/dir  ./a -o  
> username=MYUSERNAME,password=MYPWD
> mount error 1 = Operation not permitted
> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
> How can I make this configuration work? I can neither change
> the user exporting the share nor change my local user.
> I'd like to use the good old smbfs, but it seems to have been
> completely removed from Fedora kernels (why? ) .
> Thanks,
> 	Nico
I believe this has been covered a few times in different threads.
One difference between smbfs and cifs is the way cifs handles
looking up server names. You are probably going to have to specify
the server name, and possible the IP address.

mount -t cifs //mikkel/Backup /mnt/temp/ -o

Now, I can do a DNS lookup on mikkel so all I need is:

mount -t cifs //mikkel/Backup /mnt/temp/ -o


  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071130/9f427fe3/attachment-0001.sig>

More information about the fedora-list mailing list