[wellylug] encryption question

Mark Signal mark at databackup.co.nz
Sun Aug 29 18:21:47 NZST 2004


Hi

thanks to everybody for their help

it turns out that I have a permissions problem that is stopping the
encrypting/renaming working consistently

The data directories are created by a cgi script based rsync backup and all
directories created are owned by www-data
like this:
dr-xr-xr-x  9 www-data www-data    4096 Aug  7 18:43 .
drwxr-xr-x  4 www-data www-data    4096 Aug 29 18:05 ..
-rw-r--r--  1 www-data www-data 1660416 Aug 19 13:20 CDL2000_July_05-Px
List_2004.xls
-rw-r--r--  1 www-data www-data    1176 Aug 27 07:35 Default.rdp
-rw-r--r--  1 www-data www-data    8899 Jul 21 08:03 at command.htm
drwxr-xr-x  2 www-data www-data    4096 Aug 29 18:05 at command_files
-rw-r--r--  1 www-data www-data   69632 Aug  9 09:57 citylinkquote.doc
drwxr-xr-x  2 www-data www-data    4096 Aug 29 18:05 data
-rw-r--r--  1 www-data www-data       0 Aug  7 18:40 desktop.ini
-rw-r--r--  1 www-data www-data   13824 Aug 25 11:17 pc parts.xls
drwxr-xr-x  2 www-data www-data    4096 Aug 29 18:05 presto

Now normally www-data on this box has a shell of /bin/false but to test with
I changed it to /bin/bash

I would have thought that if I su from root to www-data I should be able to
delete the files above with a rm -rf
(Obviously this works if I do it as root) but while most of the files and
directories are deleted I get this:

rm: cannot remove directory `Data1/mark.SCROTE1/Application Data/Microsoft
Games': Permission denied
rm: cannot remove directory `Data1/mark.SCROTE1/Application Data/MySQL':
Permission denied
rm: cannot remove directory `Data1/mark.SCROTE1/Application Data/SSH':
Permission denied
rm: cannot remove directory `Data1/mark.SCROTE1/Application Data/Sun':
Permission denied
rm: cannot remove `Data1/mark.SCROTE1/Application Data/desktop.ini':
Permission denied
rm: cannot remove directory `Data1/mark.SCROTE1/My Documents/at
command_files': Permission denied
rm: cannot remove directory `Data1/mark.SCROTE1/My Documents/data':
Permission denied

leaving about 2 megs out of 300megs

I am confused - how can the owner with all priveleges not delete all files
and direcoties? ( also tried chmod 777 as www-data and everything updated
fine but still couldnt delete the little sods.

cheers

Mark




-----Original Message-----
From: wellylug-admin at lists.wellylug.org.nz
[mailto:wellylug-admin at lists.wellylug.org.nz]On Behalf Of David Antliff
Sent: Sunday, 29 August 2004 12:18 p.m.
To: wellylug at lists.wellylug.org.nz
Subject: RE: [wellylug] encryption question



On Sat, 28 Aug 2004, Mark Signal wrote:
> but it vomits on file and directory names with spaces in them

Is 'find -print0 ...' helpful at all?


--
Wellington Linux Users Group Mailing List: wellylug at lists.wellylug.org.nz
To Leave:  http://lists.wellylug.org.nz/mailman/listinfo/wellylug

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004




More information about the wellylug mailing list