I have started using Linux recently for development of a project and currently facing some issues with file permissions in the directories.
I have some libraries .so
files that I need to access from the folder /usr/local/lib
. When I check the files manually in the folder, the files show that I am not the owner and root
is the owner.
However, in a different directory, where I subsequently tried installing the same libraries at /home/jade/cb/lib/
, if I check the libraries, I do have the permission.
My C++ program has been stuck since it cannot access the libraries from these. I tried changing the permissions using sudo chmod 777 -R *.*
while inside usr/local/lib
but the permissions or anything don't change. How do I get rid of this problem? (Distro: Ubuntu 12.10)
strace
?, if possible post errors/screen shots you are facing.chmod 777
is very high in the top-10 of worst Unix practices ever. Especially in combination with-R
. Your files can loose vital properties (like s-bits) and everybody can change the files and directories. You do not want that.