User / Group Permissions are Wrong

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,
Who is Participating?
chingmdConnect With a Mentor Commented:
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.

jax79sgConnect With a Mentor Commented:
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.
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.  

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

drumer901Author Commented:
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...
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.

drumer901Author Commented:
I'm hosting on one of my friend's server.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.