On Wed, Feb 28, 2007 at 11:08:42PM +0100, yanek wrote:
> Hello guys,
>
> Sorry if this has been answered before, I searched the archives but the
> only related thread I could find does not help me much
> ( http://list.linux-vserver.org/archive/vserver/msg09907.html ).
>
> Trying to remove a directory (as root) on a vserver gives me an
> "operation not permitted" warning:
>
> web:/usr/share/squirrelmail/plugins# rm -fr change_sqlpass/
> rm: cannot remove `change_sqlpass//README': Operation not permitted
> rm: cannot remove `change_sqlpass//COPYING': Operation not permitted
> rm: cannot remove `change_sqlpass//generate.php': Operation not
> permitted
> rm: cannot remove `change_sqlpass//md5crypt.php': Operation not
> permitted
> rm: cannot remove `change_sqlpass//config.php': Operation not permitted
> rm: cannot remove `change_sqlpass//setup.php': Operation not permitted
> rm: cannot remove `change_sqlpass//change_sqlpass.pot': Operation not
> permitted
> rm: cannot remove `change_sqlpass//functions.php': Operation not
> permitted
> rm: cannot remove `change_sqlpass//index.php': Operation not permitted
> rm: cannot remove `change_sqlpass//config.php.sample': Operation not
> permitted
> rm: cannot remove `change_sqlpass//version': Operation not permitted
> rm: cannot remove `change_sqlpass//INSTALL': Operation not permitted
> rm: cannot remove `change_sqlpass//getpot': Operation not permitted
> rm: cannot remove `change_sqlpass//make_release.sh': Operation not
> permitted
> rm: cannot remove `change_sqlpass//options.php': Operation not permitted
first, what filesystem?
second, what are the attributes of the directory
tree above those files? check with the following
tools:
showattr -d <dir/file>
lsxid -d <dir/file>
> Same thing if I try to remove it from the host / root-server.
interesting ...
> Here's the perms for this directory and its content:
>
> drwxr-xr-x 2 root root 4096 2007-02-27 18:06 ./
> drwxr-xr-x 21 root root 4096 2007-02-28 22:17 ../
> -rw-r--r-- 2 root root 2856 2005-11-12 08:06 change_sqlpass.pot
> -rw-r----- 2 root root 10705 2007-02-26 16:46 config.php
> -rw-r--r-- 2 root root 10462 2005-11-12 07:04 config.php.sample
> -rw-r--r-- 2 root root 15228 2005-11-12 05:17 COPYING
> -rw-r--r-- 2 root root 24712 2005-11-12 07:48 functions.php
> -rw-r--r-- 2 root root 555 2004-11-28 09:30 generate.php
> -rwxr--r-- 2 root root 390 2005-11-12 06:29 getpot*
> -rw-r--r-- 2 root root 469 2004-11-28 09:30 index.php
> -rw-r--r-- 2 root root 1484 2005-11-12 05:12 INSTALL
> -rwx------ 2 root root 5324 2005-11-12 03:36 make_release.sh*
> -rw-r--r-- 2 root root 2787 2004-11-28 09:30 md5crypt.php
> -rw-r--r-- 2 root root 1149 2005-11-12 01:59 options.php
> -rw-r--r-- 2 root root 7270 2005-11-12 07:06 README
> -rw-r--r-- 2 root root 2234 2005-11-12 08:06 setup.php
> -rw-r--r-- 2 root root 28 2005-11-12 08:06 version
>
> No xattr is set on the files:
>
> ------------------ change_sqlpass/README
> ------------------ change_sqlpass/COPYING
> ------------------ change_sqlpass/generate.php
> ------------------ change_sqlpass/md5crypt.php
> ------------------ change_sqlpass/config.php
> ------------------ change_sqlpass/setup.php
> ------------------ change_sqlpass/change_sqlpass.pot
> ------------------ change_sqlpass/functions.php
> ------------------ change_sqlpass/index.php
> ------------------ change_sqlpass/config.php.sample
> ------------------ change_sqlpass/version
> ------------------ change_sqlpass/INSTALL
> ------------------ change_sqlpass/getpot
> ------------------ change_sqlpass/make_release.sh
> ------------------ change_sqlpass/options.php
>
> Nor on the directory:
>
> ------------------ change_sqlpass
the attributes of the directory containing change_sqlpass
are the interesting ones ...
check with the commands given above besides the
normal lsattr -d
> For some reason, lsxid does not seem to work on the host:
>
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/README
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/COPYING
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/generate.php
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/md5crypt.php
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/config.php
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/setup.php
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/change_sqlpass.pot
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/functions.php
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/index.php
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/config.php.sample
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/version
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/INSTALL
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/getpot
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/make_release.sh
> !!
> ERR!! /var/lib/vservers/web/usr/share/squirrelmail/plugins/change_sqlpass/options.php
well, that just means that tagxid is disabled for
this filesystem ...
> Distro is Debian Etch, with kernel 2.6.18-4-vserver-686.
might be worth a try with a mainline kernel, but
I don't think it is debian related ...
HTH,
Herbert
> Am I doing something wrong?
>
> Any help would be much appreciated :D
>
> Thanks!
>
>
>
>
>
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Mar 1 18:45:42 2007