Announcement

Collapse
No announcement yet.

smb4k error after kde upgrade

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

    smb4k error after kde upgrade

    been trying to get a new install up and running. i've been unable to get smb4k
    to mount my samba homeserver unless i run smb4k as an admin in su mode.
    is that normal?

    then i ran into another snag. i just upgraded from the default 4.6.2 kde to 4.6.4.
    after doing so, i'm getting an error trying to run smb4k from sudo:

    babag@lenovo:~$ sudo smb4k
    [sudo] password for babag:
    Error: "/var/tmp/kdecache-babag" is owned by uid 1000 instead of uid 0.
    Error: "/tmp/kde-babag" is owned by uid 1000 instead of uid 0.


    not wanting to spend the time immediately digging into that one, i thought i'd
    try running smb4k by bypassing sudo and just using su to get to my admin
    account. however:

    babag@lenovo:~$ su
    Password:
    su: Authentication failure


    can anyone offer a fix for this?

    thanks,
    BabaG

    #2
    Re: smb4k error after kde upgrade

    I'm not sure what question you're looking for an answer too (both I guess ).

    su is disabled by default in Ubuntu and variants. sudo, sudo -i and other methods are preferred.

    If you feel the need to allow full su access you must create a password for root:

    sudo passwd root

    Please Read Me

    Comment


      #3
      Re: smb4k error after kde upgrade

      Originally posted by babag

      babag@lenovo:~$ sudo smb4k
      You don't want to do that! Don't try to "sudo" any KDE package from a terminal. If you need to run a graphical package, such as smb4k (or kate or dolphin, etc.), in root mode, use Alt-F2 "kdesudo smb4k". If you run it with "sudo", you may well find yourself locked out of your KDE login, due to root ownership of X-related hidden files in your /home/user directory.

      As far as smb4k, I haven't used it much, but AFAIK it is a user-space package -- not intended or needed for root to use. So I would be cautious in doing that.

      Comment


        #4
        Re: smb4k error after kde upgrade

        thanks for the tips.

        oshunluvr:

        successfully used sudo passwd root but after doing that i tried again to sudo smb4k
        and got the same error.

        dibl:

        didn't know about the alt-f2 thing. that got me into smb4k which successfully mounted
        my external samba share. thanks for that.


        the remaining question is:

        what's broken in sudo and how do i fix it? kdesudo seems ok but cli sudo seems broken.
        that's something i need to reconcile. maybe i should move this question to a non-network
        forum? which one?

        i guess there is another question, one network related:

        if smb4k shouldn't require su mode, how can i reconcile that since running as ordinary user
        produces an error, something about not being in /etc/fstab?

        thanks again,
        BabaG

        i'm beginning to feel like you guys are following me.

        Comment


          #5
          Re: smb4k error after kde upgrade

          Originally posted by babag

          the remaining question is:

          what's broken in sudo and how do i fix it? kdesudo seems ok but cli sudo seems broken.
          that's something i need to reconcile. maybe i should move this question to a non-network
          forum? which one?
          It would be unusual to find "sudo" broken -- let's test it. Open a terminal window, and issue:

          Code:
          sudo apt-get update
          What do you see? It should (a) ask for your super-user password, and (b) query your active package repositories.

          On smb4k, again, I'm not much of a user of it. But, I know of no reason why it should be referencing /etc/fstab. Have you set a Windows share to be mounted in /etc/fstab? I suppose that might trigger it. For my limited use of samba, it is sufficient that the Linux system from which I need to access a Windows share be a member of the same workgroup as the Windows machine. Then you have some kubuki-dancing with the /etc/samba/smb.conf file, which oshunluvr knows far more about than I do. The CIFS protocol that samba uses doesn't require manual mounting of a share, it is happy to go find it via your dolphin browser (or smb4k).

          Comment


            #6
            Re: smb4k error after kde upgrade

            just tried 'sudo apt-get update' which produced a long query list after requesting my password. so,
            that seemed to work right.

            as for smb4k, being a new install, i haven't done anything with /etc/fstab yet. using smb4k to scan
            the network finds nothing. i know the info to use for a manual mount so, i just do that. only works
            as su, though. in either mode, scan finds nothing. in normal mode, manual mount produces the
            error. in su mode, manual mount mounts correctly.

            thanks again,
            BabaG

            Comment


              #7
              Re: smb4k error after kde upgrade

              Take a look at oshunluvr's smb.conf file here: http://kubuntuforums.net/forums/inde...opic=3114850.0

              I would advise you to (a) safely backup your original /etc/samba/smb.conf file, and then try oshunluvr's version, with edits as needed to adapt it to your environment. Don't forget to restart the samba services after making any changes to the smb.conf file:

              Code:
              sudo service samba restart
              Also don't forget (duh ...) to confirm that the samba package is installed on your system.

              Hope this helps.

              Comment

              Working...
              X