Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Can't seem to change the permissions of files.

Got problems with Bubba? Then this forum is for you.
Locked
Paul Peters
Posts: 7
Joined: 11 Apr 2008, 01:40

Can't seem to change the permissions of files.

Post 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?
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

can you give a listing of the files
or screenshot of what you mean?
cheers
Eek
Paul Peters
Posts: 7
Joined: 11 Apr 2008, 01:40

Post 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.
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post 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
Paul Peters
Posts: 7
Joined: 11 Apr 2008, 01:40

Post 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.
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

You're welcome
but first we need to know what you want :D
build your own php site
or get a good guestbook
or ?
cheers
Eek
Locked