Announcement

Collapse
No announcement yet.

SMB Issue

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SMB Issue

    i have a dedicated Kubuntu machine running SMB, with a few folders shared. i just installed Kubuntu onto my desktop, and already have Kubuntu installed onto my laptop. all are running 12.04 64-bit.

    on the laptop, i am able to get to 7 of the 9 shared folders. 2 i am denied access - the exact error message: only root can mount.

    on the desktop, i am able to get to 0 of the 9 shared folders. the exact error message: only root can mount.

    i made sure to edit the /etc/fstab with sudo, and i had the laptop 'fstab' open while editting on my desktop - just to make sure i had the syntax correct.

    so, i am very confused why the desktop has zero access.

    the usernames and passwords on my laptop and desktop are identical, as i do use them side by side.

    any help would be greatly appreciated.

    #2
    Can you post the fstab and the samba configuration? Blank out passwords first, though you should be storing passwords in a seqerate file only root can read.

    Comment


      #3
      here is the fstab from my laptop.

      //192.168.15.250/music /mnt/Music smbfs username=joel,password=xxx 0 0
      //192.168.15.250/anime /mnt/Anime smbfs username=joel,password=xxx 0 0
      //192.168.15.250/carvideos /mnt/carvideos smbfs username=joel,password=xxx 0 0
      //192.168.15.250/movies /mnt/Movies smbfs username=joel,password=xxx 0 0
      //192.168.15.250/rally /mnt/Rally smbfs username=joel,password=xxx 0 0
      //192.168.15.250/shares /mnt/Shares smbfs username=joel,password=xxx 0 0
      //192.168.15.250/torrents /mnt/Torrents smbfs username=joel,password=xxx 0 0
      //192.168.15.250/tvshows /mnt/tvshows smbfs username=joel,password=xxx 0 0
      //192.168.15.250/upload /mnt/Upload smbfs username=joel,password=xxx 0 0
      //192.168.15.250/stuff /mnt/stuff smbfs username=joel,password=xxx 0 0

      ----

      here is the fstab from my desktop:

      //192.168.15.250/music /mnt/music smbfs username=joel,password=xxx 0 0
      //192.168.15.250/anime /mnt/anime smbfs username=joel,password=xxx 0 0
      //192.168.15.250/carvideos /mnt/carvideos smbfs username=joel,password=xxx 0 0
      //192.168.15.250/movies /mnt/movies smbfs username=joel,password=xxx 0 0
      //192.168.15.250/rally /mnt/rally smbfs username=joel,password=xxx 0 0
      //192.168.15.250/shares /mnt/shares smbfs username=joel,password=xxx 0 0
      //192.168.15.250/torrents /mnt/torrents smbfs username=joel,password=xxx 0 0
      //192.168.15.250/tvshows /mnt/tvshows smbfs username=joel,password=xxx 0 0
      //192.168.15.250/upload /mnt/upload smbfs username=joel,password=xxx 0 0
      //192.168.15.250/stuff /mnt/stuff smbfs username=joel,password=xxx 0 0

      ----

      here is a partial config from my SMB server:

      [global]

      vfs objects = dirsort
      netbios name = gatsu
      security = user
      encrypt passwords = yes
      passdb backend = smbpasswd

      [Music]
      comment = Music
      path = /media/stuff/music
      valid users = joel, sandra
      writeable = yes
      browseable = yes
      create mask = 0777
      gorce group = kubuntu

      [TV Shows]
      comment = TV_Shows
      path = /media/shares_2tb/tvshows
      valid users = joel, sandra
      writeable = yes
      browseable = yes
      create mask = 0777
      force group = kubuntu

      ----

      all of the shares are configured identically.

      the Music share works perfectly on the laptop, but the TV Shows share does not. none of the shares work on the desktop.

      thanks!
      Last edited by not12listen; Jan 24, 2013, 11:11 AM.

      Comment


        #4
        To quote from the Samba chapter 9 Security and Users:
        One of Samba's most complicated tasks lies in reconciling the security models of Unix and Windows systems. Samba must identify users by associating them with valid usernames and groups, authenticate them by checking their passwords, then control their access to resources by comparing their access rights to the permissions on files and directories.
        It sounds like you may have a permission problem with your directories. Check to see that the directories you are trying to share are set to 777. If this fails to help, check to make sure the user credentials your using to access the directories exist on the samba server.

        If none of this helps.. take a look at http://www.samba.org/samba/docs/using_samba/ch09.html for more possible suggestions as to how to troubleshoot this issue. Its really worth a read.

        cheers,
        Bill
        sigpic
        A person who never made a mistake never tried anything new. --Albert Einstein

        Comment


          #5
          i'm reading on the linked page currently.

          here is my question. with fresh installs of Kubuntu 12.04 64bit (same cd in fact), and identically configured clients - why would i be having this issue?

          again, all usernames/passwords are identical - and verified as such.

          Comment


            #6
            What is the output of 'mount'?

            Comment


              #7
              this is from my laptop:
              /dev/sda6 on / type ext4 (rw,errors=remount-ro)
              proc on /proc type proc (rw,noexec,nosuid,nodev)
              sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
              none on /sys/fs/fuse/connections type fusectl (rw)
              none on /sys/kernel/debug type debugfs (rw)
              none on /sys/kernel/security type securityfs (rw)
              udev on /dev type devtmpfs (rw,mode=0755)
              devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
              tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
              none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
              none on /run/shm type tmpfs (rw,nosuid,nodev)
              //192.168.15.250/rally on /mnt/Rally type cifs (rw)
              //192.168.15.250/music on /mnt/Music type cifs (rw)
              //192.168.15.250/upload on /mnt/Upload type cifs (rw)
              //192.168.15.250/torrents on /mnt/Torrents type cifs (rw)
              //192.168.15.250/anime on /mnt/Anime type cifs (rw)
              //192.168.15.250/movies on /mnt/Movies type cifs (rw)
              //192.168.15.250/shares on /mnt/Shares type cifs (rw)
              //192.168.15.250/stuff on /mnt/stuff type cifs (rw)

              ----

              this is from my desktop:
              /dev/sda1 on / type ext4 (rw,errors=remount-ro)
              proc on /proc type proc (rw,noexec,nosuid,nodev)
              sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
              none on /sys/fs/fuse/connections type fusectl (rw)
              none on /sys/kernel/debug type debugfs (rw)
              none on /sys/kernel/security type securityfs (rw)
              udev on /dev type devtmpfs (rw,mode=0755)
              devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
              tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
              none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
              none on /run/shm type tmpfs (rw,nosuid,nodev)

              Comment


                #8
                So it looks like they are not being mounted. What does 'mount -a' say?

                Comment


                  #9
                  I'm with James... It appears all of your shares are not being mounted. If I read it right, your missing 'carvideos' and 'tvshows' on the laptop and then all of the shares on the desktop. I think, as James said, you should get some additional information by trying a 'mount -a' from the a konsole.

                  cheers,
                  Bill
                  Last edited by bweinel; Jan 26, 2013, 09:31 PM.
                  sigpic
                  A person who never made a mistake never tried anything new. --Albert Einstein

                  Comment


                    #10
                    sorry that i've not replied in a while. been far too busy with work, etc.

                    i've had to wipe my desktop and reinstall windows - needed it for work.

                    the laptop is still Kubuntu 12.04 and i'll post the output in just a bit.

                    Comment


                      #11
                      joel@joel-kubuntu-lt:~$ sudo mount -a
                      [sudo] password for joel:
                      Retrying with upper case share name
                      mount error(6): No such device or address
                      Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
                      Retrying with upper case share name
                      mount error(6): No such device or address
                      Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
                      joel@joel-kubuntu-lt:~$

                      Comment


                        #12
                        Looks like the address is wrong, I would double check them, note that the case does matter.

                        Comment

                        Working...
                        X