Find the answer to your Linux question:
Results 1 to 8 of 8
Im reading through the Linux How-to forums about installing software from source. It recommends saving source files to the /usr/local/src directory but whenever I try to save to that location ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    7

    "Do have permission"...

    Im reading through the Linux How-to forums about installing software from source.
    It recommends saving source files to the /usr/local/src directory but whenever I try to save to that location it wont download the file. So i have saved the file to my desktop and tried to copy it to that location and it informs me I dont have permission to copy files into the folder.

    your #1 noob,
    J.to.the.ason

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You must have root privileges to access Folders outside of your Home Folder ( /home/user_is ).
    Open Terminal and Execute 'su' command to gain root privileges.
    Code:
    su
    cp ~/Desktop/<file_name> /usr/local/src
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    7
    i tried the su command earlier with no effect.

    you command line after that (not sure what it does... transfer the file?) didnt work it said it couldnt find the directory.

    i tried to edit the permissions for the /usr/local/src folder to allow me to write data into it but it says im not the owner.

    i went into the user management utility and added myself to every group in the list and made my primary group "root" hoping that would make me owner... it did not.

    i love linux and hope to raise above noob status someday... but for now this is frustrating.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Could you post the exact error message here?
    Code:
    su
    cd ~/Desktop
    ls
    cp <file_name> /usr/local/src
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Jul 2007
    Posts
    7
    jason@linux-qohb:~> su
    Password:
    linux-qohb:/home/jason # cd ~/desktop
    bash: cd: /root/desktop: No such file or directory


    is what i keep getting.

  6. #6
    Just Joined!
    Join Date
    Jul 2007
    Posts
    7
    thanks for all the help by the way

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    cd to home folder of Normal User.
    Code:
    su
    cd /home/<user_id>/Desktop
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Quote Originally Posted by J.to.the.ason View Post
    jason@linux-qohb:~> su
    Password:
    linux-qohb:/home/jason # cd ~/desktop
    bash: cd: /root/desktop: No such file or directory


    is what i keep getting.
    You must capitalize desktop ie Desktop Linux is case sensitive unlike windows which is not.

Posting Permissions

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