Page 1 of 1
Can't seem to change the permissions of files.
Posted: 24 Apr 2008, 07:21
by Paul Peters
Hello dear Bubba friends,
This is probably a new-bee question, but I'll give it a go.
I was trying to run a simple PHP based guestbook on my bubba webserver, it seems to find the right files and tries tot write into them, it a flat-file based PHP-script, but I can't seem tot set the correct chmod properties for the files, I tried via a FTP program and the Bubba interface, but it looks like they change back to the former settings ...
any ideas?
Posted: 24 Apr 2008, 12:26
by Eek
can you give a listing of the files
or screenshot of what you mean?
cheers
Eek
Posted: 24 Apr 2008, 13:56
by Paul Peters
these are the files that should make up a simple guestbook
http://85.223.49.167/book/read.php
http://85.223.49.167/book/add.php
http://85.223.49.167/book/book.txt
somehow if I change the permissions in the bubba interface via filemanager they keep switching back to the old permissions.
and sometimes it claims that the permission change has failed.
Posted: 24 Apr 2008, 15:10
by Eek
hi
your code probably wants to change the book.txt file.
i don''t know how you change it, but it is run under the user under which the apache server is running.
This will probably be www-data
if the file is owned by this user, the user you use for the filemanager cannot change the permissions.
If you want better controle, or see more, use ssh to login.
You can then also become root to change permissions the way you want.
cheers
Eek
Posted: 26 Apr 2008, 05:22
by Paul Peters
thank you Eek,
I just did a SSH SU login with this Putty program, it seems to work.
Now I'd better read up on how to proceed.
If anyone got a nice site (tip) where I can find more information on this material it would be welcome.
Posted: 26 Apr 2008, 14:27
by Eek
You're welcome
but first we need to know what you want
build your own php site
or get a good guestbook
or ?
cheers
Eek