Re: [Suspected Spam] Re: I miss smbfs: cifs doesn't work as expected



Il Friday 30 November 2007 16:33:46 Tom Horsley ha scritto:
In FC8, instead, using cifs I can't obtain the same result:
mounting always fails. The problem seems to be related to
mount.cifs:

I hadn't tried cifs in Fedora 8 till I read this, so I gave the
script I was using in fedora 7 a try, and it wouldn't work anymore,
but I didn't get permission problems, I got an error telling me the
UNC name (which DID start with //) didn't start with // and needed
to start with either // or \\. To see if it would make it happy, I
tried changing all the forward slashes in my windows path names to
pairs of backslashes (to get them through shell processing), and
then the mounts worked again.

I'll attach the silly script I run (as root) to do the mounting.

Thanks to the users that replied.
The problem is totally unrelated to DSN lookups.
To make it work I had to suid root /sbin/mount.cifs and add
-o user=workgroup/username%password,uid=500,gid=500
It's a disappointment and a big security concern :(
but at least it works (although I'm a bit surprised that
on a system where your can't eradicate selinux you have to
resort to the sledgehammer/suid to make user-mounts work).

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



Relevant Pages

  • Re: how to mount a samba share on Fedora 5
    ... Can anyone point to explicit directions for mounting a remote samba ... I don't have Fedora, so these may vary a little. ... See the man pages for smbmount and smbmnt. ...
    (comp.os.linux.setup)
  • Re: F9: USB memory stick wont mount [SOLVED???]
    ... file system used on most memory sticks, it is easy to do in Windows, but it is a bit complicated to do in Linux. ... If I mount it from the shell, as root, it shows up as "8.1 GB Media", no ... there are two separate GNOME icons after mounting). ... drive back and forth between a Windows and a Fedora box. ...
    (Fedora)
  • Re: debugfs in the namespace
    ... Fedora does not ship it yet, ... I'm against the doubles to prevent issues with the mounting ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)