arkose changes ownership of user's home directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
arkose (Ubuntu) |
Fix Released
|
High
|
Stéphane Graber | ||
Precise |
Fix Released
|
High
|
Stéphane Graber |
Bug Description
On a test system there are 2 users 'j-lallement' and 'ubuntu' with the following membership
$ id j-lallement
uid=1001(
$ id ubuntu
uid=1000(ubuntu) gid=1000(ubuntu) groups=
Note that ubuntu was the first account created on that box.
TEST CASE:
1. login as j-lallement
2 Start arkose with the following command
$ sudo arkose -n -h -c "cd $PWD; $SHELL"
RESULT:
The ownership of /home/j-lallement changed to ubuntu:ubuntu
# ls -l
total 16
drwx------ 173 ubuntu ubuntu 12288 Nov 14 11:47 j-lallement
drwxr-xr-x 31 ubuntu ubuntu 4096 Oct 30 03:23 ubuntu
While it should be
drwx------ 173 j-lallement j-lallement 12288 Nov 14 11:47 j-lallement
drwxr-xr-x 31 ubuntu ubuntu 4096 Oct 30 03:23 ubuntu
Expected result
The ownership shouldn't change
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: arkose 1.4-0ubuntu1
ProcVersionSign
Uname: Linux 3.1.0-2-generic x86_64
ApportVersion: 1.26-0ubuntu1
Architecture: amd64
Date: Mon Nov 14 14:35:53 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: arkose
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in arkose (Ubuntu Precise): | |
status: | New → Fix Committed |
Does the following diff fix it for you?
=== modified file 'arkose/ __init_ _.py'
os. mkdir(os. path.dirname( new_target) )
open(new_ target, 'w').close()
self. __mount( "/%s" % mount, new_target, "none", "bind") new_target, 0o700) new_target, 1000, 1000)
--- arkose/__init__.py 2011-10-29 16:41:22 +0000
+++ arkose/__init__.py 2011-11-14 21:06:28 +0000
@@ -264,9 +264,6 @@
- if os.path.isdir("/%s" % mount):
- os.chmod(
- os.chown(
# Setup other restricted mounts
for mount in self.restrict: