Settime_bypass problem ?
Tue, 30 Apr 2002 11:41:25 -0700 (PDT)
--- Ben Escoto <firstname.lastname@example.org> wrote:
> >>>>> "EB" == Erminio Baranzini <email@example.com>
> >>>>> wrote the following on Mon, 29 Apr 2002
> 23:43:17 -0700 (PDT)
> EB> Yes, you are right, it works as root without
> EB> --change-source-perms option.
> EB> Still wondering why. Could this be checked
> starting the
> EB> programm?
> I'm not sure why either. The error message said
> operation not
> permitted changing the time of /bin/rcp. I'm not
> sure why you
> wouldn't be able to do that as root. If you like,
> type in 'python'
> and then:
> Python 2.2b2 (#1, Nov 28 2001, 12:53:18)
> [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-101)] on
> Type "help", "copyright", "credits" or "license" for
> more information.
> >>> import os
> >>> os.utime("/bin/rcp", (2,3))
> Note this should mess up the modification and access
> times on
> /bin/rcp, so don't do this if those are important to
> you. Or maybe
> cp -a /bin/rcp /tmp/rcp
> first, and then
> cp -a /tmp/rcp /bin/rcp
> afterwards to set things as they were. Anyway, if
> you get an error
> then we'll know it's something about the way your
> system deals with
> times. I've never tried rdiff-backup on FreeBSD, so
> that is probably
> the issue.
> Ben Escoto
I have tried it (seems without success):
# ls -la /bin/rcp
-r-sr-xr-x 1 root wheel 244872 Feb 17 13:51
Python 2.2 (#1, Mar 20 2002, 13:17:06)
[GCC 2.95.3 20010315 (release) [FreeBSD]] on freebsd4
Type "help", "copyright", "credits" or "license" for
>>> import os
Traceback (most recent call last):
File "<stdin>", line 1, in ?
OSError: [Errno 1] Operation not permitted: '/bin/rcp'
The same as non-root user.
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness