[2.0 rc1] Following fresh install maas command fails - PermissionError: [Errno 13] Permission denied: '/home/ubuntu/.maascli.db'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Gavin Panella | ||
2.0 |
Fix Released
|
High
|
Mike Pontillo |
Bug Description
After a fresh install, permissions on .maascli.db are not set for user ubuntu, so commands fail.
ubuntu@
Traceback (most recent call last):
File "/usr/bin/maas", line 12, in <module>
sys.
File "/usr/lib/
parser = prepare_
File "/usr/lib/
api.
File "/usr/lib/
with ProfileConfig.
File "/usr/lib/
return next(self.gen)
File "/usr/lib/
os.
PermissionError: [Errno 13] Permission denied: '/home/
ubuntu@
-rw------- 1 root root 3072 Jul 4 20:20 /home/ubuntu/
After doing sudo chown ubuntu:ubuntu /home/ubuntu/
Related branches
- LaMont Jones (community): Needs Fixing
- Mike Pontillo (community): Needs Fixing
-
Diff: 241 lines (+146/-6)4 files modifiedsrc/maascli/config.py (+7/-3)
src/maascli/tests/test_config.py (+23/-2)
src/maascli/tests/test_utils.py (+76/-1)
src/maascli/utils.py (+40/-0)
- Andres Rodriguez (community): Approve
-
Diff: 288 lines (+185/-7)4 files modifiedsrc/maascli/config.py (+19/-4)
src/maascli/tests/test_config.py (+50/-2)
src/maascli/tests/test_utils.py (+76/-1)
src/maascli/utils.py (+40/-0)
- Mike Pontillo (community): Approve
-
Diff: 288 lines (+185/-7)4 files modifiedsrc/maascli/config.py (+19/-4)
src/maascli/tests/test_config.py (+50/-2)
src/maascli/tests/test_utils.py (+76/-1)
src/maascli/utils.py (+40/-0)
Changed in maas: | |
assignee: | nobody → Gavin Panella (allenap) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
summary: |
- [2.0 RC1 ] Following fresh install maas command fails - - PermissionError: [Errno 13] Permission denied: - '/home/ubuntu/.maascli.db' + [2.0 rc1] Following fresh install maas command fails - PermissionError: + [Errno 13] Permission denied: '/home/ubuntu/.maascli.db' |
Changed in maas: | |
status: | Fix Committed → Fix Released |
milestone: | 2.0.1 → none |
Someone or something has run `maas` as root where HOME=/home/ubuntu, e.g. `sudo maas ...` when logged in as ubuntu. I can't find anything in MAAS that would do that. Can you check your shell history and whatever scripts you used when deploying this machine?