Re: I miss smbfs: cifs doesn't work as expected



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
servern=MIKKEL,MYUSERNAME,password=MYPWD,ip=192.168.1.9

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

mount -t cifs //mikkel/Backup /mnt/temp/ -o
servern=MIKKEL,MYUSERNAME,password=MYPWD

Mikkel
--

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

Attachment: signature.asc
Description: OpenPGP digital signature

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: smbfs automount authentication?
    ... Being one of the former maintainers of smbmount and smbfs for the Samba ... OK, I'll bite, What is the magic incantation to get the CIFS module to mount ... I can use CIFS for a w2k3 ntfs partition but I have never ...
    (Fedora)
  • Re: [opensuse] Permission problem while accessing a folder mounted with CIFS
    ... alternative method that I found I needed to use to mount cifs volumes from my ... Samba server on my laptop to have them mounted at boot time with appropriate ... CIFS tries to use LOCAL management ... of permissions, that is, the machine doing the mount attempts to tell the ...
    (SuSE)
  • Re: 2.6.24-rc2 XFS nfsd hang / smbd too
    ... to mount a CIFS share from the very same server (and the same client). ...
    (Linux-Kernel)
  • Re: tar + split + dd + EOF + st0
    ... You mount the filesystem with -o lfs with smbfs to enable reading and ... Or you mount with -t cifs instead. ... if the real filesystem on the disks on the other end is FAT32 ...
    (comp.os.linux.misc)
  • Re: [opensuse] samba vs cifs ... whats the diff?
    ... MOUNT a share published by a samab server or a windows ... So the appropriate comparison is NOT samba vs cifs, but rather smbfs ... Both are client protocols/virtual file system ...
    (SuSE)