Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Updating/upgrading on hosted webspace
permissions peculiarity
Avatar
w_m0zart #1
Member since Dec 2006 · 2 posts · Location: Netherlands
Group memberships: Members
Show profile · Link to this post
Subject: Updating/upgrading on hosted webspace
I experience a peculiarity with file permissions on hosted webspace, only accessible through ftp.

After upgrading to the DokuWiki version 2006-11-06, restored files/directories in the /pages directory expect permission 646/757, otherwise pages/namespaces can't be changed/deleted.

The strange thing is that the 646/757 permissions seems to be only necessary for pages which have been transferred with ftp. Pages which I write afterwards get permissions 644/755, as expected due to (default) fmode/dmode setting, CAN be changed/deleted.

.---------------------.--------------------.-------------------------.-------------------------.
|                     | Writing pages from | Files restored from ftp | Files restored from ftp |
|                     | within DokuWiki    |                         |                         |
.---------------------.--------------------+-------------------------+-------------------------.
| Permissions         | 644/755            | 644/755                 | 646/757                 |
| (files/directories) |                    |                         |                         |
.---------------------+--------------------+-------------------------+-------------------------'
| Editing/deleting    | Yes                | No                      | Yes                     |
| pages possible?     |                    |                         |                         |
'---------------------'--------------------'-------------------------'-------------------------'

On this page S.Hennig wrote that proper rights are different between FTP-user and web-user. Probably referring to chgrp. Is it possible that this explenation applies to this situation as well?

As an FTP-user, I don't see the difference between 644/755 pages generated with DokuWiki and transferred through ftp.

Anybody knows the difference?
This post was edited 4 times, last on 2006-12-29, 14:17 by w_m0zart.
Avatar
purplepaisley #2
Member since May 2006 · 142 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
I'm not knowledgeable enough to answer your questions, but it does sound like ownership issues. I use hosted space too and found this quite handy. http://wiki.splitbrain.org/wiki:tips:fixperms.php

HTH
Avatar
andi (Administrator) #3
User title: splitbrain
Member since May 2006 · 3500 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #1
Quote by w_m0zart on 2006-12-26, 08:37:
The strange thing is that the 646/757 permissions seems to be only necessary for pages which have been transferred with ftp. Pages which I write afterwards get permissions 644/755, as expected due to (default) fmode/dmode setting, CAN be changed/deleted.

This is because your webserver runs under a different user than the FTP user. Pages created by DokuWiki are owned by the webserver user (eg. www-data) thus the 6 (read,write) for the owner is enough. Files uploaded via FTP are owned by the FTP user (eg. w_m0zart). To let the webserver user www-data access those files you need to open up permissions eg. giving the read-write perms to others.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
w_m0zart #4
Member since Dec 2006 · 2 posts · Location: Netherlands
Group memberships: Members
Show profile · Link to this post
And for changing the ownership of a file/directory, it should be necessary to use the CHOWN command, which is not available in ftp, but only per ssh.
This post was edited on 2006-12-29, 14:20 by w_m0zart.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-11-20, 01:14:00 (UTC +01:00)