Results 1 to 4 of 4

Thread: Chmod 660 - Can't access drive

  1. #1
    Join Date
    Oct 2012
    Beans
    3

    Chmod 660 - Can't access drive

    I'm a bit new to Ubuntu, so sorry for the noob moment...

    Long story short, I used chmod 660 on one of my hard drives and for the life of me I can't figure out how to reverse this. The drive is an ext4 and while I can see that it's mounted, I can't access it. Any help would be greatly appreciated and let me know if you need further info

  2. #2
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,430
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Chmod 660 - Can't access drive

    what was the exact command?

    either way permissions for accessible directories have to be odd, because cd-ing into directory, calling ls in it and what not require executable bit that has value of 1 (read and write being 4 and 2).

    to add that executable bit to all directories in a subtree you can try something like this
    Code:
    find /some/dir/ -type d -exec chmod 770 '{}' \;
    Last edited by Vaphell; October 29th, 2012 at 11:34 PM.
    if your question is answered, mark the thread as [SOLVED]. Thx.
    To post code or command output, use [code] tags.
    Check your bash script here // BashFAQ // BashPitfalls

  3. #3
    Join Date
    Oct 2012
    Beans
    3

    Re: Chmod 660 - Can't access drive

    Thanks for the quick reply. I used:

    sudo chmod 660 /media/Media

    If I try to run a different chmod it comes back and says "cannot access `media/Media': No such file or directory"

    The disk is no longer visible and when I pull it up through disk utility it's showing, but not able to be accessed.

    I tried the command you listed, but I'm still having the same issue.

  4. #4
    Join Date
    Oct 2012
    Beans
    3

    Re: Chmod 660 - Can't access drive

    Well...

    I took the easy way out (I'm sure I'll get crap for this). I logged in as root and changed the permission and we're back to normal.

    Thanks again for your quick response.

Bookmarks

Posting Permissions

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