Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: mount.cifs issue opensuse 11.4

  1. #1
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    77

    Default mount.cifs issue opensuse 11.4

    Hi all,

    I'm not sure this is the right location for this thread but I experience mount problems with my SMB share at home after updating to 11.4 from 11.2.

    Any help is greatly appreciated.

    Issue:
    Code:
    fire@a3800:~> mount ~/Server/fire
    Couldn't chdir to /home/fire/Server/fire: Permission denied
    fstab line:
    Code:
    //192.168.0.20/fire  /home/fire/Server/fire    cifs noauto,user           0 0
    I can do this as user because the "UID" from "mount.cifs" is set:

    Code:
    fire@a3800:/sbin> ls -l
    -rwsr-xr-x 1 root root      36504 19 feb 06:36 mount.cifs
    This has always been working for me in all opensuse versions 10.0 till 11.3. (yes, my desktop is still on 11.3)
    With 11.4 on my laptop I can't mount my share anymore. Also root can't mount the share!
    Code:
    a3800:~ # whoami
    root
    a3800:~ # mount /home/fire/Server/fire
    Password: 
    mount error(13): Permission denied
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    a3800:~ #
    The password is asked but no joy...

    Other commands are tried with the same result:
    Code:
    fire@a3800:/~> whoami
    fire
    fire@a3800:/~> /sbin/mount.cifs //192.168.0.20/fire  /home/fire/Server/fire -o user=fire,domain=home,uid=fire,gid=users                              
    Couldn't chdir to /home/fire/Server/fire: Permission denied
    or:
    Code:
    a3800:~ # whoami
    root
    a3800:~ # mount /home/fire/Server/fire
    Password: 
    mount error(13): Permission denied
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    a3800:~ # mount.cifs //192.168.0.20/fire  /home/fire/Server/fire -o user=fire,domain=home,uid=fire,gid=users
    Password: 
    mount error(13): Permission denied
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    a3800:~ # mount //192.168.0.20/fire  /home/fire/Server/fire -o user=fire,domain=home,uid=fire,gid=users                                            
    Password: 
    mount error(13): Permission denied
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)                                                                                                 
    a3800:~ #
    Info:
    Code:
    a3800:~ # mount.cifs -V
    mount.cifs version: 4.6
    a3800:~ # uname -a
    Linux a3800.home 2.6.37.1-1.2-desktop #1 SMP PREEMPT 2011-02-21 10:34:10 +0100 x86_64 x86_64 x86_64 GNU/Linux
    a3800:~ # cat /etc/SuSE-release
    openSUSE 11.4 (x86_64)
    VERSION = 11.4
    CODENAME = Celadon
    a3800:~ #
    Thanks for reading, Fire
    Fooling around with Linux since Redhat 5.1 / Hooked on SuSE since 9.2

  2. #2
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: mount.cifs issue opensuse 11.4

    Couldn't chdir to /home/fire/Server/fire: Permission denied
    Might be strange permissions somewhere along the dir tree.
    What are the permissions on Server and fire as displayed by this command:
    Code:
    sudo ls -l /home/fire | grep Server; sudo ls -l /home/fire/Server | grep fire
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    77

    Default Re: mount.cifs issue opensuse 11.4

    It might be because I kept my home partition from the previous opensuse...
    Code:
    fire@a3800:~> sudo ls -l /home/fire | grep Server; sudo ls -l /home/fire/Server | grep fire
    root's password:
    drwxr-xr-x 5 fire users 4096 12 mrt 17:39 Server
    drwxr-xr-x 2 fire users 4096 12 mrt 17:38 playonhd
    drwx------ 2 fire users 4096 19 dec  2007 public
    drwx------ 2 fire users 4096  5 feb  2008 fire
    Hopefully you see something wrong here...
    Fooling around with Linux since Redhat 5.1 / Hooked on SuSE since 9.2

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    77

    Default Re: mount.cifs issue opensuse 11.4

    Thanks swerdna,

    Changing the permission did the trick.

    I had to set "read" and "open" for "group" and "other" on the "fire" folder
    Code:
    fire@a3800:~> mount ~/Server/fire
    Password:
    works!

    umount not... umount.cifs does not exist anymore. Should I make a link to mount.cifs? As root it does work!
    Code:
    fire@a3800:~> umount ~/Server/fire
    umount: aankoppeling op /home/fire/Server/fire komt niet overeen met fstab
    fire@a3800:~> sudo umount ~/Server/fire
    fire@a3800:~>
    Fooling around with Linux since Redhat 5.1 / Hooked on SuSE since 9.2

  5. #5
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: mount.cifs issue opensuse 11.4

    Congrats -- be well
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    77

    Default Re: mount.cifs issue opensuse 11.4

    Sorry to say but it ain't solved, As user I can mount the share but only "root" can umount the share. (unmount)

    I see the error message above is in Dutch, here is the translation:
    umount: /home/fire/Server/fire mount disagrees with the fstab
    As superuser I do not get this error and it will unmount, but this is not acceptable for me.
    Something has changed and I am not seeing it. The permission thing is also strange...
    Fooling around with Linux since Redhat 5.1 / Hooked on SuSE since 9.2

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    77

    Default Re: mount.cifs issue opensuse 11.4

    The unmount issue for users can be solved "temporally" by replacing the @mtab symlink by a real mtab file in /etc.
    Temporally because after a reboot the symlink (and the issue) is back again.

    Any help is appreciated.
    Fooling around with Linux since Redhat 5.1 / Hooked on SuSE since 9.2

  8. #8

    Default Re: mount.cifs issue opensuse 11.4

    I'm also having a similar issue after upgrading 11.3 to 11.4, see:
    Mounting network-shared drives fails when upgrading to 11.4

  9. #9
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: mount.cifs issue opensuse 11.4

    @Fire11, there's a bit of a Samba bug regarding the snb daemon, so just check that it's running with this command: "sudo /usr/sbin/rcsmb status"
    (I don't think it's an issue here, but, hmmm, might as well check)
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    77

    Default Re: mount.cifs issue opensuse 11.4

    Well "rcsmb" is not running after boot...and also after mounting my shares... But remember, it should only run the smb-client on this box...
    Code:
    fire@a3800:~> sudo /usr/sbin/rcsmb status
    root's password:
    Checking for Samba SMB daemon                                                               unused
    Fooling around with Linux since Redhat 5.1 / Hooked on SuSE since 9.2

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •