[Bug 3740] New: repo on a root-owned directory (many permission failures)

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Thu Dec 20 13:33:12 CST 2012


http://bz.selenic.com/show_bug.cgi?id=3740

          Priority: normal
            Bug ID: 3740
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: repo on a root-owned directory (many permission
                    failures)
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: brauningbar at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.4.1
         Component: Mercurial
           Product: Mercurial

* I use knoppix live usb and it mounts my pendrive as
a root:root owned directory.

When i try to create a new repository
$ ls . -ld
drwxrwxrwx 2 root root 8192 dic 20 16:10 .
$ hg init
abort: Operation not permitted: /mnt-system/x/.hg/requires


* And when using a another repository in the usb (root:root):
$ hg st
abort: Operation not permitted:
/mnt-system/ultimosproy/bomber.hgrepo/lila/.hg/.dirstate-fOU3Ix

* But... i have all rights inside the current directory as you can see
in the listing of directories below:

$ hg st --debug --trace
Traceback (most recent call last):
  File "/home/knoppix/bin/mercurial-2.4/mercurial/dispatch.py", line 88, in
_runcatch
    return _dispatch(req)
  File "/home/knoppix/bin/mercurial-2.4/mercurial/dispatch.py", line 741, in
_dispatch
    cmdpats, cmdoptions)
  File "/home/knoppix/bin/mercurial-2.4/mercurial/dispatch.py", line 514, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/home/knoppix/bin/mercurial-2.4/mercurial/extensions.py", line 189, in
wrap
    return wrapper(origfn, *args, **kwargs)
  File "/home/knoppix/bin/mercurial-2.4/hgext/pager.py", line 130, in pagecmd
    return orig(ui, options, cmd, cmdfunc)
  File "/home/knoppix/bin/mercurial-2.4/mercurial/dispatch.py", line 831, in
_runcommand
    return checkargs()
  File "/home/knoppix/bin/mercurial-2.4/mercurial/dispatch.py", line 802, in
checkargs
    return cmdfunc()
  File "/home/knoppix/bin/mercurial-2.4/mercurial/dispatch.py", line 738, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/home/knoppix/bin/mercurial-2.4/mercurial/util.py", line 472, in check
    return func(*args, **kwargs)
  File "/home/knoppix/bin/mercurial-2.4/mercurial/commands.py", line 5422, in
status
    opts.get('subrepos'))
  File "/home/knoppix/bin/mercurial-2.4/mercurial/localrepo.py", line 1600, in
status
    wlock.release()
  File "/home/knoppix/bin/mercurial-2.4/mercurial/lock.py", line 137, in
release
    self.releasefn()
  File "/home/knoppix/bin/mercurial-2.4/mercurial/localrepo.py", line 1136, in
unlock
    self.dirstate.write()
  File "/home/knoppix/bin/mercurial-2.4/mercurial/dirstate.py", line 494, in
write
    st = self._opener("dirstate", "w", atomictemp=True)
  File "/home/knoppix/bin/mercurial-2.4/mercurial/scmutil.py", line 289, in
__call__
    return util.atomictempfile(f, mode, self.createmode)
  File "/home/knoppix/bin/mercurial-2.4/mercurial/util.py", line 814, in
__init__
    createmode=createmode)
  File "/home/knoppix/bin/mercurial-2.4/mercurial/util.py", line 779, in
mktempcopy
    copymode(name, temp, createmode)
  File "/home/knoppix/bin/mercurial-2.4/mercurial/posix.py", line 110, in
copymode
    os.chmod(dst, st_mode)
OSError: [Errno 1] Operation not permitted:
'/mnt-system/ultimosproy/bomber.hgrepo/lila/.hg/.dirstate-s38j2u'
abort: Operation not permitted:
/mnt-system/ultimosproy/bomber.hgrepo/lila/.hg/.dirstate-s38j2u
$ ls . -ld
drwxrwxrwx 7 root root 8192 dic 20 16:05 .
$ find -type d -ls
   217    8 drwxrwxrwx   7 root     root         8192 dic 20 16:05 .
   279    8 drwxrwxrwx   2 root     root         8192 dic 20 15:51 ./GUIA
   280    8 drwxrwxrwx   2 root     root         8192 dic 20 15:51 ./rc
   281    8 drwxrwxrwx   2 root     root         8192 dic 20 15:51 ./serverside
   282    8 drwxrwxrwx   5 root     root         8192 dic 20 16:05 ./.hg
   285    8 drwxrwxrwx   3 root     root         8192 dic 20 15:52 ./.hg/store
   303    8 drwxrwxrwx   5 root     root         8192 dic 20 15:51
./.hg/store/data
   307    8 drwxrwxrwx   2 root     root         8192 dic 20 15:51
./.hg/store/data/_g_u_i_a
   333    8 drwxrwxrwx   2 root     root         8192 dic 20 15:51
./.hg/store/data/rc
   335    8 drwxrwxrwx   2 root     root         8192 dic 20 15:51
./.hg/store/data/serverside
   411    8 drwxrwxrwx   2 root     root         8192 dic 20 15:51 ./.hg/cache
   416    8 drwxrwxrwx   2 root     root         8192 dic 20 15:51
./.hg/strip-backup
   283    8 drwxrwxrwx   2 root     root         8192 dic 20 15:51 ./logs

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list