User / Group Permissions are Wrong

Posted on 2007-10-06
Last Modified: 2013-11-19
Hey there,

For some reason (and I really don't know what happened), user and group permissions of a specific directory on one of my sites isn't right. All my other directories, the user and group is serenade / serenade. But on this one directory, it's 99 / 99. This making it impossible to change, remove anything. I really don't know what to do.

Any and all comments are appreciated,
Question by:drumer901
    LVL 7

    Assisted Solution

    Do you have an administrator account to that folder?
    If yes, take ownership of that folder through the following.
    RIght click it , select properties
    Select the Security tab
    Click Advanced
    Click the Owner tab
    Select the new owner that you have access to,
    Now reset the permissions for the folder (Eg: Remove 99/99 and add serenade/serenade.)

    Now you should be able to do whatever you want.
    LVL 9

    Expert Comment

    Somehow /somewhere the permissions got changed to UID 99 and GID 99.

    So if you want to see your own UID/GID  use the command id.  You can also run ls -ln to see what it looks like in a dir listing.  I've typically seen this when the UID/GID no longer exsist.

    If you are the admin of the machine, then check the /etc/group and /etc/passwd file to find out if there really is a uid of 99/gid of 99.    Then using the root account, change the permissions to the correct set.

    chown serenade serenade <dir>

    For the the directory and all files and dirs below it.  

    chmod -R serenade serenade <dir>

    If this is a hosted machine, then you will need to contact the admins of that box who have root to make the change.     AS well as have them find out what's up with the unknown UID.  

    LVL 1

    Author Comment

    Wow I think you really got something there, but I'm quite new to this. If you could give me detailed instructions, it could help me alot. And I have cpanel if that helps in any way...
    LVL 9

    Expert Comment

    You are saying that you have cpanel.   I'm guess that this is a a hosted machine.

    I would put in a ticket with your provider to find out what the directory is.  It may be a special directory that you are supposed to leave alone.
    Is this directory available to people via the web interface?

    At this point, I would want to know if this is a hosted environment, the OS, and if you have shell access to this machine.

    LVL 1

    Author Comment

    I'm hosting on one of my friend's server.
    LVL 9

    Accepted Solution

    If the data is yours, then you should contact your friend to runt he chown -R on the dir to you.  Or find out what it is so you can safely ignore it.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now