Find the answer to your Linux question:
Results 1 to 8 of 8
Everywhere it says to put your executables inside "usr/local/src" but it says access denied in there and the whole HD. Any help please? I just installed Linux and am reading ...
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    24

    Cannot put files in "media:/hda1"

    Everywhere it says to put your executables inside "usr/local/src" but it says access denied in there and the whole HD.

    Any help please? I just installed Linux and am reading one of the guides here.

    Kenny

  2. #2
    Just Joined!
    Join Date
    Mar 2008
    Posts
    5
    does that user that you are logged in as have rwx permissions on that file system?

    first see who the file system belongs to? usually root, which means you have to be logged in as root to write to the file system unless the permissons state otherwise for the owner, group, and public.

    you can log in as root by typing su - and then enter the password for root.

    once you've accomplished that then you can chmod the file system to give you the user access but not public so chmod 770 would give you and root user complete access.

    if your not familar with chmod then you can type
    man chmod press enter
    this will pull up the command usage

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You need to be root in order to access that directory. Executables are not supposed to go into /usr/local/src. That area is for packages that are in source form. I personally don't use that directory. I build packages and store tarballs in my home directory.

  4. #4
    Just Joined!
    Join Date
    Mar 2008
    Posts
    24
    Thanks guys but it doesn't work, what I am going to do is install the new ubuntu over it. Do you know any good guides that tells you how to go onto the Root account in ubuntu, or is it easier. I am installing the newest stable one.

    Thanks

    Edit: WIll the same thing happen in Ubuntu?

  5. #5
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    I think you will find by default the root account is disabled. There are good reasons for this, but if you wish to you can over-ride the default - I think you can do this during the install. Login as root is not recommended but its up to you.

    Not sure what distro you are using from your post (maybe I just did not spot it) but there is usually a way of doing what you need.

  6. #6
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Local "usable by all" executables go in /usr/local/bin. The "usable only by you" ones should go in the bin in your home directory. You'll always need root permission to write to /usr/local/bin (unless you change its ownership and that's not A Good Idea).

  7. #7
    Just Joined!
    Join Date
    Mar 2008
    Posts
    24
    Quote Originally Posted by scm View Post
    Local "usable by all" executables go in /usr/local/bin. The "usable only by you" ones should go in the bin in your home directory. You'll always need root permission to write to /usr/local/bin (unless you change its ownership and that's not A Good Idea).
    How do I get this Root permission to put things in the usr folder?

    also I cant get any distro I like so I am installing debian etch 4.0 What i installed at first was this debian 3.5 from the debian kde team, and didnt understand it.

  8. #8
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Quote Originally Posted by velocity8 View Post
    How do I get this Root permission to put things in the usr folder?
    "su - root" (although root is assumed if you don't supply a user name, so "su -" is good enough) using the password you supplied when you installed the distribution.

Posting Permissions

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