Security with regards to wheel group, and sudo users.
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
That depends how you see a "vulnerability". Yes it will make your system less secure, by definition, because you are allowing more people (i.e. you) to do privileged stuff that they previously weren't allowed to. But providing you keep your password secure (since it is now effectively equivalent to the root password) it shouldn't be too much to worry about; this is more or less how Ubuntu is shipped by default.
The use of sudo is definitely the way to make your account priviledged, but if you're worried about security, using the wheel group may be overkill. The most secure way to use sudo is to allow priviledges to specific commands. For example, if you only want root priviledges to shut down, grant sudo access to the shutdown command only. That way if your account were to get compromised, the attacker would only have root access to the shutdown command instead of all commands.
Thank you very much. I appreciate all of your input!! I'll have to agree with both of you that the wheel group is probably a bit much, I'll look into allowing only certain commands. Also I'll have to look into what I did, because by adding my personal account to the wheel group, and un-commenting that line in 'visudo' I was still not able to execute many root type commands. I tried looking at fdisk -l and ifconfig, and got a bash error on both attempts. Any thoughts on something I may be missing? I did log out, and close the ssh connection, and log back in to try again to no avail. I sincerely appreciate your support! Thank you again!
If you post the bash errors, we can be a lot more helpful. But off the top of my head, check your PATH environment variable. Some common directories for admin functions (like /sbin) might not be there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.