Change File/folder Permissions in server
I have been trying to change file permissions to 777 in the web server to no success. My main challenge is to locate the exact file, i.e if its called temp inside a folder called penzi, should i use /var/www/penzi/temp?
Please advice as am new to Linux. |
Quote:
#chmod -R 777 directory_name I think, you know this command. To locate files, use: #find /var/www/penzi -iname "*search_directory_name*" -print |
If you want to change the file only,
Code:
chmod 777 filename Code:
chmod 777 /path/to/file Code:
find /var/www -type f -iname 'filename' -print http://linux.die.net/man/1/find |
Thanks guys for the assistance, though is still am unable to locate the file, and i have logged in as root. when i type the path; # find /var/www/penzi -name "temp" -print it returns below
find: /var/www/penzi: No such file or directory and yet i am in the root directory. When i type cd /var/www/penzi/ i get; -bash: cd: /var/www/penzi/: No such file or directory I am just unable to locate to that file. Please advice |
Quote:
Login as root and enter this command, #find /var/www | less |
Thanx guys, it worked, apparently i was accessing the wrong server, so i couldnt get the files i wanted. Thanks for the assistance, i appreciate.
|
All times are GMT -5. The time now is 03:47 AM. |