jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] problem with jk_cp


From: Peter Veerman
Subject: Re: [Jailkit-users] problem with jk_cp
Date: Tue, 16 Jan 2007 19:52:27 +0100
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Shoot.......

Yeah I specified the -f flag.. i've forgotten that.

about your question:

address@hidden /usr/local/www/awstats/cgi-bin]# chmod 0600 /data1/chroot/httpd/lib/libc.so.6
chmod: /data1/chroot/httpd/lib/libc.so.6: Operation not permitted

The error above is due to FreeBSD protection system:

http://www.cyberciti.biz/tips/freebsd-how-to-write-protect-important-file-even-root-can-not-modifydelete-it.html

thus only os.chmod(file, 0600)
os.unlink (file) would not have been enough

grtz

Peter







Olivier Sessink schreef:
Peter Veerman wrote:
Hey olivier,

I've posted the file permissions below i've also included the md5 hashes of both files and as you can see there's no need for updating the file in the first place as both permissions and md5 are the same...

but you specified -f (force) and -f will always update the file, no matter what.


address@hidden /usr/local/www/awstats/cgi-bin]# ls -lstrha /data1/chroot/httpd/lib/libc.so.6 912 -r--r--r-- 1 root wheel 881K Jul 3 2006 /data1/chroot/httpd/lib/libc.so.6
address@hidden /usr/local/www/awstats/cgi-bin]# ls -lstrh /lib/libc.so.6
 912 -r--r--r--  1 root  wheel   881K Jul  3  2006 /lib/libc.so.6

if I would change the code to do
os.chmod(file, 0600)
os.unlink(file)

would that be a solution to the problem?

(can you try that manually? `chmod 0600 file && rm file`?)

regards,
    Olivier


_______________________________________________
Jailkit-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/jailkit-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]