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.
I created a new user which i want to add in sudoers file.
Please see the part of sudoers file below:
Code:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Allows members of the users group to mount and unmount the
## cdrom as root
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom
## Allows members of the users group to shutdown this system
# %users localhost=/sbin/shutdown -h now
Shall I add a line below the above blue italisized line
which is the same as the blue line except the name,ie in place
of root, I w'd use the user newly added.
If the new user has all things similar to that of "line in blue".. why dont you uncomment the line i quoted above and add the new user to group Wheel. There is no need to enter an extra line to the sudoers for the same thing that is already there.
If the new user has all things similar to that of "line in blue".. why dont you uncomment the line i quoted above and add the new user to group Wheel. There is no need to enter an extra line to the sudoers for the same thing that is already there.
Oh Really great!!!!!!!!!!
Thank you very much for giving such a great method.
By adding the new user to the group wheel, it w'd be easy to manage and very clear. Likewise whenever I need any new person to give sudo permission , I only need to add him in the group without touching sudoers file.
Great!!!!!!!!
Thanks a lot!!!
Marking this thread solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.