SlackwareThis Forum is for the discussion of Slackware Linux.
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.
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root ALL=(ALL) ALL
alex ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
Wait if i have to sudo every 15 minutes is there a cron tab or something i can setup to sudo for the user alex only? if so where would the file be that i need to stick it in and what text would i need to insert.
nvm unless someone can create a script or something that allows me to reboot shutdown install packages and run swaret without being root and without putting in an extra command... I want to just have it where i just type swaret --upgrade as a regular user but i have a file lets say /etc/perms that controls which users can do what...
You mean i have to put the directory to it? screw that then ill just use su.. its alot less i just wanted something where i never have to type su or sudo command i just wanted to type command and it worked...
Well in the way you go, you may end with a computer less secure than one running windows 98 lol
If I were you I would remove the %users localhost=(ALL) ALL NOPASSWD: ALL line in /etc/sudoers
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.