I'm trying to change the ownership of a file on Ubuntu 10.04. This is the output from the terminal after typing in the following command:
mossen@mossen-desktop:/opt/openfoam211/platforms/linux64GccDPOpt$ ls
bin lib
mossen@mossen-desktop:/opt/openfoam211/platforms/linux64GccDPOpt$ chown -R -H mossen:mossen '/opt/openfoam211/platforms/linuxGccDPOpt/lib'
chown: cannot access `/opt/openfoam211/platforms/linuxGccDPOpt/lib': No such file or directory 5 2 Answers
Just run:
sudo chown -R mossen:mossen /opt/openfoam211/platforms/linux64GccDPOpt/libEnter the password and it should work.
3You are doing it the windows way or something try:
sudo chown -R mossen:mossen ./libThe -H is for changing symbolic links, the -R is for recursively changing sub folders the ./ means start here se output of your ls command. The quotes are used to fix names with white spaces of which you have none. Try this and remember the KISS rule: Keep It Simple Stupid There is no need to starte every command from the root, you risk affecting library's that was better left alone.
1