The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Help - Lost permissions on my own files (Unix)

JohnDoeJohnDoe Registered User regular
I've got 2 computers, A and B. A is an OpenSolaris(Unix) machine with lots of hard drive space that I use to store all my files. B is a Windows 7 machine that I do most of my work on.

Recently, I've been copying files over to the OpenSolaris machine. But I can't open some of them, either with the Windows box or the OpenSolaris box. There doesn't seem to be any reason why.

For example, I've got 2 files in the same folder - One is accessible to both machines, or is accessible by neither. It keeps telling me that I don't have permssions to open. But the permission settings on the files are exactly the same.

I've tried chmod 777 to give everyone permissions to do everything. It sets the wrxwrxwrx flag on the file correctly, but I still can't access it - tells me I need permissions to read it. I've tried accessing it via windows, through a shared directory, and settings the permissions through the Windows properties window - same deal. I know its not a corrupt file because a bunch of them have this issue and it only seems to affect files I've copied over after a certain date. If I use 'su' to copy the files, I can then access the copied file, but I don't want to do this because theres like 100s of files.

How can I regain permissions on these files? I'm the owner of both boxes, so I have superuser/administrator access for anything that needs to be done.

JohnDoe on

Posts

  • lowlylowlycooklowlylowlycook Registered User regular
    edited May 2010
    Hmmm, it's been a long time but I seem to remember that you have to pay close attention to the permissions of the directories in a case like this.

    Sorry I can't be more specific.

    lowlylowlycook on
    steam_sig.png
    (Please do not gift. My game bank is already full.)
  • TrentusTrentus Registered User regular
    edited May 2010
    Try taking ownership of one of the files (using chown, with sudo if you must) and then see if you can access it.

    Trentus on
  • JohnDoeJohnDoe Registered User regular
    edited May 2010
    I figured it out. Apparently, theres multiple sets of permissions. The Unix ones were fine (read/write/execute), and the basic Windows ones (Full control/Modify/Execute/Read/Write) were also fine. But theres also 'special' Windows permissions that aren't visible on the basic Security tab that I overlooked.

    For some reason, even though I had full permissions set in that tab, under advanced there were additional 'deny' permissions that was preventing me from reading the files. Not sure how they got set.

    Turning off those allowed me to read the files normally.

    JohnDoe on
  • GothicLargoGothicLargo Registered User regular
    edited May 2010
    Trentus wrote: »
    Try taking ownership of one of the files (using chown, with sudo if you must) and then see if you can access it.

    I have to do it.

    sandwich.png

    GothicLargo on
    atfc.jpg
Sign In or Register to comment.