Announcement

Collapse
No announcement yet.

(SOLVED) root permissions...

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

    (SOLVED) root permissions...

    Hi all....

    I'm not understanding when I type in a terminal, "gksudo konsole," (and get another konsole window with root access,) why I cannot change directories! I just get an error message that says, "No such file or directory." the "cd" command works fine in a regular window. Could someone explain to me how this works?

    Regards...
    Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
    How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
    PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

    #2
    Re: root permissions...

    Originally posted by ardvark71
    I'm not understanding when I type in a terminal, "gksudo konsole," (and get another konsole window with root access,) why I cannot change directories! I just get an error message that says, "No such file or directory." the "cd" command works fine in a regular window. Could someone explain to me how this works?
    Could this be caused simply by the fact that the terminal starts in root's home directory (/root) instead of user's (/home/user)?

    Other (unrelated) notes:
    - you can use 'sudo -i' to get a root terminal in konsole, you don't need to start another konsole window for that.
    - gksudo is so gnome, kdesudo is the kde way

    Comment


      #3
      Re: root permissions...

      Originally posted by kubicle
      Could this be caused simply by the fact that the terminal starts in root's home directory (/root) instead of user's (/home/user)?
      Most likely, yes but what do I type in to navigate to "Documents?"

      Originally posted by kubicle
      - gksudo is so gnome, kdesudo is the kde way
      Ah, a hold over from my Ubuntu 5.10 days.

      Regards...
      Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
      How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
      PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

      Comment


        #4
        Re: root permissions...

        Originally posted by ardvark71
        Most likely, yes but what do I type in to navigate to "Documents?"
        Provided that "Documents" is in your user's home directory, you can navigate to it with (for example):
        Code:
        cd /home/username/Documents
        (obviously replace "username" with your actual username)

        Comment


          #5
          Re: root permissions...

          Is it possible you're using cd.. when this occurs?

          The "proper" command is cd .. (note the space after cd). The reason cd.. works as a regular user and not as root user is that cd.. is an alias in your ~/.bash_aliases but it's not in the root users.

          Please Read Me

          Comment


            #6
            Re: root permissions...

            Originally posted by oshunluvr
            The "proper" command is cd .. (note the space after cd). The reason cd.. works as a regular user and not as root user is that cd.. is an alias in your ~/.bash_aliases but it's not in the root users.
            I don't think *buntus create ~/.bash_aliases by default for users...are you sure you didn't create one yourself?

            Comment


              #7
              Re: root permissions...

              Originally posted by oshunluvr
              Is it possible you're using cd.. when this occurs?
              Yes, I am. What should I use in root to replace "cd?"

              EDIT: ok, I think I see what you mean. I was just using "cd," not any periods at all. So, I should be entering something like: "cd ..Documents"

              Regards...
              Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
              How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
              PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

              Comment


                #8
                Re: root permissions...

                Originally posted by ardvark71
                EDIT: ok, I think I see what you mean. I was just using "cd," not any periods at all. So, I should be entering something like: "cd ..Documents"
                See my earlier post:
                Originally posted by kubicle
                Provided that "Documents" is in your user's home directory, you can navigate to it with (for example):
                Code:
                cd /home/username/Documents
                (obviously replace "username" with your actual username)
                Of course you can also use a relative path 'cd ../home/username/Documents', but in this case the absolute path is shorter.

                Comment


                  #9
                  Re: root permissions...

                  Hi Kubicle...

                  Thank you, I'll give it a shot and let you guys know.

                  Regards...
                  Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
                  How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
                  PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

                  Comment


                    #10
                    Re: root permissions...

                    Hi all...

                    Thank you, guys, I was able to navigate to where I needed to go.

                    Regards...
                    Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
                    How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
                    PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

                    Comment

                    Working...
                    X