Re: In Fedora Cloud Base 27 how is the 'fedora' user configured so that it can do password-less sudo?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 08, 2017 at 08:08:18PM -0000, Paul Gier wrote:
> I'm running a Fedora Cloud Base 27 instance in openstack and ssh
> using the 'fedora' user works fine, and I can sudo without a
> password. However, if I add a new user 'foobar' and add this user to
> the wheel group, this user needs a password in order to use sudo.
> This makes sense based on the config in /etc/sudoers which has
> '%wheel ALL=(ALL) ALL'. But I'm wondering how is the 'fedora' user
> configured so that it's in the same wheel group and can sudo without
> a password?

The fedora user is created by cloud init, and that creates
/etc/sudoers.d/90-cloud-init-users, which looks like this:

  # Created by cloud-init v. 0.7.9 on Sun, 10 Dec 2017 20:17:02 +0000
  
  # User rules for fedora
  fedora ALL=(ALL) NOPASSWD:ALL

Look at /etc/cloud/cloud.cfg for where this comes from. You can
override this with your new user information when you provision the
instance.


-- 
Matthew Miller
<mattdm@xxxxxxxxxxxxxxxxx>
Fedora Project Leader
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux