maas-test leaves root-owned files in user's home dir

Bug #1267056 reported by Julian Edwards
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas-test
Fix Committed
High
Jeroen T. Vermeulen

Bug Description

ubuntu@maas:~$ ls -l /home/ubuntu/.config
drwx------ 3 root root 4096 Jan 8 20:02 maas-test

Related branches

Changed in maas-test:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Not sure we can do much about this if we're expecting to run maas-test as root, and yet sudo keeps using the original user's home directory.

Changed in maas-test:
assignee: nobody → Jeroen T. Vermeulen (jtv)
status: Triaged → In Progress
Revision history for this message
Julian Edwards (julian-edwards) wrote :

I should add, this is a further problem:
$ ssh -i /home/ubuntu/.config/maas-test/vm_ssh_id_rsa ubuntu@192.168.122.199
Warning: Identity file /home/ubuntu/.config/maas-test/vm_ssh_id_rsa not accessible: Permission denied.
Permission denied (publickey).

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

How come that's not being run as root, if everything else is!?

Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: [Bug 1267056] Re: maas-test leaves root-owned files in user's home dir

On 08/01/14 20:54, Jeroen T. Vermeulen wrote:
> Not sure we can do much about this if we're expecting to run maas-test
> as root, and yet sudo keeps using the original user's home directory.

We can and should do something - chown it all, or drop privs when writing.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

On 08/01/14 21:25, Jeroen T. Vermeulen wrote:
> How come that's not being run as root, if everything else is!?

That's what it tells you to run when connecting manually for debug purposes.

Changed in maas-test:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.