Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6520

Re: Ongoing auto back up errors

$
0
0
by Ken Task.  

The files shown in temp/typtotemp/cs/ are 'normal' ... or I should say, have seen them in more than one Moodle data directory.

However, I see that the owner of those files is what appears to be a customer ID (u66034001) and the group on those files is 'ftpusers' and those look somewhat strange for a directory that is supposed to be owned/accessed by the user under which apache runs (on Ubuntu, typically www-data.  on CentOS/RHEL typically apache).

So your screen clip must mean that the whole temp directory is owned by  u66034001

The -r-x-wxr-t means this:

The first dash character indicates it's a file (otherwise 'd' would be there)

The first group of 3 characters that follow are the owners permissions (in what you show that's u66034001)

so r-x means the owner can read (cannot write - there is no 'w' there) and the owner can execute (the x).

The second group of 3 characters that follow are the group permissions: -wx

So all users who are part of the group ftpusers cannot 'read' (no r there) but can write and execute.

The last set of 3 characters is 'everyone'/anyone: r-t

can read, cannot write (no w there) and t is a special bit setting.

It would help to compare what you've shared with this (same command on a CentOS server whose apache runs under 'apache' user and 'apache' group:

[root@sos ktask]# cd /var/www/moodle26data
[root@sos moodle26data]# cd temp
[root@sos temp]# ls -lR
.:
total 12
drwxrwsrwx 2 apache apache 4096 Sep 21 02:20 backup
drwxrwsrwx 2 root   apache 4096 Sep  8 06:17 googleapi
drwxrwsrwx 3 root   apache 4096 Jan 22  2014 typo3temp

./backup:
total 0
-rw-rw-rw- 1 apache apache 0 Sep 21 02:20 0258084cc05d08bb01eab604638094df.log
-rw-rw-rw- 1 apache apache 0 Sep 21 01:52 55a18feb08f4cfa71848be041e214639.log
-rw-rw-rw- 1 apache apache 0 Sep 21 01:49 931956a3118f42977d19b171b276b78a.log

./googleapi:
total 0

./typo3temp:
total 4
drwxrwsrwx 2 root apache 4096 Sep  8 06:17 cs

./typo3temp/cs:
total 84
-r-x-wxr-t 1 root apache 42042 Sep  8 06:17 csascii_utf-8.tbl
-r-x-wxr-t 1 root apache 40453 Sep  8 06:17 cscase_utf-8.tbl

For futher info: http://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions

is as good as any 'out there'.

Now for simple answer:

***IF*** your apache server is running as 'apache' user:

While in the data fodler for moodle:

chown apache:apache temp -R

chmod ug+rw temp -R

might solve some problems.

'spirit of sharing', Ken


Viewing all articles
Browse latest Browse all 6520

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>