Announcement

Collapse
No announcement yet.

Big problem... No sudo-rights...

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

    Big problem... No sudo-rights...

    Okay, I done it. My Kubuntu is 'broke'. I hope that I can repear it.

    I'm not a newbie anymore in Linux. But I'm not an expert too, somewhere between those two 'status''

    Okay, my home is 1 big wireless network. 8) You can see this topic where I ask for help to work with the wireless networkcard.

    My laptop is an old one... A Pentium 2 300 MGz, 64 mb sd ram (tjee, that's not very much. )
    Before I had an Linux Ubuntu 5.10 running on it. Worked great, but it was very very very slow.
    Since I installed Kubuntu 6.06, it's speedy. 8) Amazing, Kubuntu works much better with slow hardware then Ubuntu does... Then again, I haven't tried Ubuntu 6.06 (and sorry, but not planning too, I prefer KDE.)

    So what is the problem? My wireless networkcard (it's a 'bus'-card, in that special slot in the laptop, it's the kind of slot that you don't find in desktop-pc's (if someone knows how this 'slot' been called, I will greatly appreciate if you told me)
    The SMC networkcard was found by the installatation. It has been found everywhere. Wireless etc... Even "wireless Assistant" (you can find it in KDE-menu --> Internet --> Wireless Assistant) found my card. It didn't gaved me an error. But he didn't found any nearby wireless networks, but the laptop is just right nexto the router.

    Because I know a few command now, I thought that I could to do this. I didn't need the help of ndiswrapper or so...
    Well, let me say... that I wasn't smart enough to solve this problem. I don't want to make 1000 topics overhere, so I try to do as much as I can on my own.
    But now I done something terrible... The pc-name is gone. Hmm, if you don't understand me, let me explain. If I open an terminal, I get this:

    jenthe@(none) :~$

    Okay, normally it is something like:

    jenthe@kubuntu :~$

    Or

    jenthe@LVGVH :~$

    Because this as change, I don't have any sudo-rights anymore. Big problems I guess. :-X
    And the worst... I don't know how I did this. And I can't say: "he did it, not me" because I'm the only one that use the laptop (because it's so old, the others use the faster pc's, like the AMD 2800 etc...)

    And I'm affraid that I should start an topic asking for help for that SMC networkcard... Stupid me, If I done that in the first place, I didn't had this problem. But soon I've 1000 topics or so on my name.

    Thanks for the people who wants to help me.
    I use Firefox because it's better and safer, I use Linux because it's the best of the best. Together they are like magic. USE THE FORCE, CHOOSE FREE AS IN FREEDOM!

    #2
    Re: Big problem... No sudo-rights...

    I'm like you, between a newbie and expert.  I guess we're power users. 

    I wish I knew of a fix besides reinstalling, but that's all I can offer.  Keep in mind Kubuntu 6.06.1 just came out, which may help with some of the PCMCIA card configuration problems you were having.

    Comment


      #3
      Re: Big problem... No sudo-rights...

      Do you think that the update of Kubuntu (the 6.06.1) shall help me with the PCMCIA-card ?
      Hmm, I don't know. Maybe, it's possible. And otherwise I'll try it with Knetworkmanager or so... It isn't that simple, I'm affraid.

      And I guess you're right... A reïnstall will be the only solution. I will wait a bit longer, just for other opinions.

      Thanks for your reply.

      Oow, just for sure:

      This topics is about the laptop, not the desktop-pc. Both pc's are having Kubuntu on it.
      Don't mistake this pc with the pc in this topic.
      I use Firefox because it's better and safer, I use Linux because it's the best of the best. Together they are like magic. USE THE FORCE, CHOOSE FREE AS IN FREEDOM!

      Comment


        #4
        Re: Big problem... No sudo-rights...

        try in a konsole
        sudo passwd root
        enter your password

        enter the same password
        re-enter the password

        restart X ...

        Comment


          #5
          Re: Big problem... No sudo-rights...

          Originally posted by SJ
          But now I done something terrible... The pc-name is gone. Hmm, if you don't understand me, let me explain. If I open an terminal, I get this:

          jenthe@(none) :~$

          Okay, normally it is something like:

          jenthe@kubuntu :~$

          Or

          jenthe@LVGVH :~$

          Because this as change, I don't have any sudo-rights anymore. Big problems I guess.  :-X
          If the hostname is not set, sudo will not work.
          Check /etc/hostname and /etc/host
          1. /etc/hostname should contain (only) the hostname of the machine
          and
          2. /etc/hosts should have a line similar to:
          127.0.0.1 localhost.localdomain localhost <HOSTNAME>

          You can edit these files (if you can't use sudo) with the recovery mode or a liveCD.

          Comment


            #6
            Re: Big problem... No sudo-rights...

            I have the "alternate" Kubuntu-cd, because the laptop has not enough memory to handle the "desktop" Kubuntu-cd.

            And with the alternate cd I can "rescue a broken system"

            I will try this right now. Thanks for the replies.

            enter the same password
            re-enter the password
            And luckly I still know what the password is, otherwise I just can't login anymore in my Kubuntu.

            If the hostname is not set, sudo will not work.
            Apparantly not. I just asks myself how I did this. Kubuntu doesn't do this from itself.
            I use Firefox because it&#39;s better and safer, I use Linux because it&#39;s the best of the best. Together they are like magic. USE THE FORCE, CHOOSE FREE AS IN FREEDOM!

            Comment


              #7
              Re: Big problem... No sudo-rights...

              The file "hostname" in /etc/ is empty. The file "host.conf" in /etc/ :

              "Multi off"

              That's all. They aren't telling me anything new. I will use the live-cd now, and hopes that it will restore the root...
              I use Firefox because it&#39;s better and safer, I use Linux because it&#39;s the best of the best. Together they are like magic. USE THE FORCE, CHOOSE FREE AS IN FREEDOM!

              Comment


                #8
                Re: Big problem... No sudo-rights...

                Originally posted by SJ
                The file "hostname" in /etc/ is empty. The file "host.conf" in /etc/ :

                "Multi off"
                Then you you should add the hostname to /etc/hostname file

                And sorry, there's a typo on my earlier post (I mention /etc/host), the other file you should check is /etc/hosts (not host.conf)

                2. /etc/hosts should have a line similar to:
                127.0.0.1 localhost.localdomain localhost <HOSTNAME>

                Originally posted by SJ
                That's all. They aren't telling me anything new. I will use the live-cd now, and hopes that it will restore the root...
                When you add your hostname to both of the files (/etc/hostname and /etc/hosts) it should fix sudo

                Comment


                  #9
                  Re: Big problem... No sudo-rights...

                  2 new problems:

                  Problem 1: the "resore a broke system" - function of the alternate cd is something weird, I don't know how to use it. The first steps are like you reïnstall everything, but then there is the step (I guess the last one) that ask you something as "work in shell" or so... Something with a shell... It still saying that sudo doesn't work, but in one of the first steps it asks me for an hostname... Hmm, so I don't know how to use this function...

                  Problem 2: the live-cd. 64 mb ram isn't enough. I can't use an live-cd. I tried with an "Damed Small Linux"-distro (I used it a couple of weeks ago) and it booted... But I couldn't see a thing. It was all too light. So this wasn't so succesfull either.

                  I guess the easiest way is (for me) to reïnstall Kubuntu. Because I didn't had internet on it, there aren't important files on it. So I can easily reïnstall Kubuntu and then asks for help for that wireless device (it's been found, but the network isn't.)
                  I use Firefox because it&#39;s better and safer, I use Linux because it&#39;s the best of the best. Together they are like magic. USE THE FORCE, CHOOSE FREE AS IN FREEDOM!

                  Comment


                    #10
                    Re: Big problem... No sudo-rights...

                    Then you you should add the hostname to /etc/hostname file
                    Because I had it very busy, I forgot to work on my laptop. The result: Kubuntu is still on it. I haven't reïnstall it yet.
                    I found an Knoppix-cd and it is still bootable

                    I costs me a lot of my time, because the laptop has only 64 mb ram-memory, but here I am:

                    'sudo kate'
                    And I have the file '/etc/hostname' open... The only thing I want to know now, is what I need to add exactly.
                    Just the hostname?
                    "Kettler" ?
                    A whole file for just one little word?

                    Can someone who is very friendly post his /etc/hostname - file here? Then I can see what I need to add, (accept of the hostname offcourse)

                    Thanks!
                    I use Firefox because it&#39;s better and safer, I use Linux because it&#39;s the best of the best. Together they are like magic. USE THE FORCE, CHOOSE FREE AS IN FREEDOM!

                    Comment


                      #11
                      Re: Big problem... No sudo-rights...

                      Yes, there is "just one little word" in /etc/hostname: your hostname.
                      Write the name and you will see it again when you open the terminal.
                      Good luck

                      Comment


                        #12
                        Re: Big problem... No sudo-rights...

                        Oeps, it wasn't very simple... I had, like I sayd, an old Knoppix-cd, but euh... When I open a terminal in there, type "sudo kate"... Then it works... But when I try to edit that file, "acces denied" ... Weird.
                        The Kubuntu Live-cd I can't use, because it needs at least 192 mb ram to work.

                        Bwah, the easiest way is just a quick reïnstall, I have nothing to lose because there weren't any files on it just yet, because of the internet-issue.


                        Thanks,
                        SJ.
                        I use Firefox because it&#39;s better and safer, I use Linux because it&#39;s the best of the best. Together they are like magic. USE THE FORCE, CHOOSE FREE AS IN FREEDOM!

                        Comment


                          #13
                          Re: Big problem... No sudo-rights...

                          Originally posted by SJ
                          Oeps, it wasn't very simple... I had, like I sayd, an old Knoppix-cd, but euh... When I open a terminal in there, type "sudo kate"... Then it works... But when I try to edit that file, "acces denied" ... Weird.
                          Was the hard drive mounted as read-write or read-only when you tried to edit?
                          And you did try to edit the hostname file on your harddisk (as opposed to the one on the CD)

                          The Kubuntu Live-cd I can't use, because it needs at least 192 mb ram to work.
                          You could also get into recovery mode by booting your computer (don't use a liveCD) and choosing recovery mode from the grub menu (If you don't see the menu while booting up...hitting ESC during the boot should open the menu (you should get a prompt to press ESC after 'Grub Loading Stage 1.5' message...the default timeout for the keypress is only 3 seconds, though, so you'll have to be rather quick)

                          Bwah, the easiest way is just a quick reïnstall, I have nothing to lose because there weren't any files on it just yet, because of the internet-issue.
                          That's certainly an option...but for future needs it might be a worthy lesson to learn how to get into the recovery mode

                          Comment


                            #14
                            Re: Big problem... No sudo-rights...

                            So there is an recovery mode

                            If I had know this before... Tow.

                            EDIT: problem solved.
                            I use Firefox because it&#39;s better and safer, I use Linux because it&#39;s the best of the best. Together they are like magic. USE THE FORCE, CHOOSE FREE AS IN FREEDOM!

                            Comment

                            Working...
                            X