Last modified: 2014-04-20 20:44:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63397, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61397 - allow `sudo -u vagrant <command>` on labs-vagrant
allow `sudo -u vagrant <command>` on labs-vagrant
Status: RESOLVED FIXED
Product: MediaWiki-Vagrant
Classification: Unclassified
labs-vagrant (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Bryan Davis
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-14 22:17 UTC by spage
Modified: 2014-04-20 20:44 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2014-02-14 22:17:45 UTC
I set up a labs instance with labs-vagrant in November 2013. Everything in /mnt/vagrant on ee-flow-extra.pmtpa.wmflabs is owner:group vagrant:www-data , mode 755 or 644.

This matches MW-vagrant, but since there's no `vagrant ssh` for labs, when I ssh in I don't have the right permissions. In order to do git checkouts or modify /vagrant/settings.d files I have to `sudo su vagrant; bash`. I added this to https://wikitech.wikimedia.org/wiki/Labs-vagrant , but it would be cleaner if I could execute `sudo -u vagrant <some command>` rather than changing users (or executing `sudo <some command>` as root).
Comment 1 Gerrit Notification Bot 2014-04-11 22:41:00 UTC
Change 125523 had a related patch set uploaded by BryanDavis:
labs_vagrant: Allow wikidev group to sudo as vagrant

https://gerrit.wikimedia.org/r/125523
Comment 2 Gerrit Notification Bot 2014-04-20 20:38:49 UTC
Change 125523 merged by Ori.livneh:
labs_vagrant: Allow wikidev group to sudo as vagrant

https://gerrit.wikimedia.org/r/125523
Comment 3 Bryan Davis 2014-04-20 20:44:43 UTC
Tested on wikimania-scholarships.eqiad.wmflabs after forcing a puppet run (`sudo puppetd --test --verbose`):

    $ touch /vagrant/bd808
    touch: cannot touch `/vagrant/bd808': Permission denied
    $ sudo -u vagrant touch /vagrant/bd808
    $ $ ls -l /vagrant/bd808
    -rw-r--r-- 1 vagrant vagrant 0 Apr 20 20:44 /vagrant/bd808

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links