What Are You Doing Right Now
-
@hobbit666 said in What Are You Doing Right Now:
Trying to work out how to use Linux correctly in terms of users
CentOS7
created a "normal" user called helpdesk but now what to install updates and stuff using yum, then install osTickets
BUT! how to I run the stuff? Tried sudo yum update but got an errorSame as Windows. If you want to do admin tasks you need to be an admin.
So you need to give them root perms. Add them to the wheel group, enable wheel in the sudoers file and use sudo.
-
@hobbit666 usermod -aG wheel username
-
@wirestyle22 said in What Are You Doing Right Now:
@hobbit666 usermod -aG wheel username
I always just edit the file
-
@scottalanmiller said in What Are You Doing Right Now:
@wirestyle22 said in What Are You Doing Right Now:
@hobbit666 usermod -aG wheel username
I always just edit the file
what file?
-
@hobbit666 said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
@wirestyle22 said in What Are You Doing Right Now:
@hobbit666 usermod -aG wheel username
I always just edit the file
what file?
sudoers. I think the command is
visudo
or
vi /etc/sudoers
-
@scottalanmiller said in What Are You Doing Right Now:
Add them to the wheel group, enable wheel in the sudoers file and use sudo.
That just sounds rude
-
@wirestyle22 said in What Are You Doing Right Now:
@hobbit666 said in What Are You Doing Right Now:
@scottalanmiller said in What Are You Doing Right Now:
@wirestyle22 said in What Are You Doing Right Now:
@hobbit666 usermod -aG wheel username
I always just edit the file
what file?
sudoers. I think the command is
visudo
or
vi /etc/sudoers
Correct. visudo is the "right" way to do it. So of course I never do.
-
@scottalanmiller Your hard work has paid off Scott. I was right one time
-
guess as root?
-
@hobbit666 said in What Are You Doing Right Now:
guess as root?
Yes. All admin tasks need root perms. Or else normal users could give themselves admin privs whenever they wanted.
-
@scottalanmiller said in What Are You Doing Right Now:
@hobbit666 said in What Are You Doing Right Now:
guess as root?
Yes. All admin tasks need root perms. Or else normal users could give themselves admin privs whenever they wanted.
I was replying, but this
-
ur where the hell do I add my user to that file lol!
-
CentOS is not a sudo by default OS so you have to set it up here. CentOS assumes that you will use root directly or will set up whatever security you plan to use. NTG scripts this to make it fast and easy along with account creation, key deployment, base packages, etc.
-
@hobbit666 said in What Are You Doing Right Now:
ur where the hell do I add my user to that file lol!
usermod -aG sudo username
will add the user to the sudo group -
@hobbit666 said in What Are You Doing Right Now:
ur where the hell do I add my user to that file lol!
You don't. You enable wheel. Scroll down and look. There are two sample lines about wheel. They are commented out. You uncomment one of them, I prefer the one that has "nopassword". Only unfomment one of them.
After that wheel access works.
-
wheel = admin group in Linux
-
@wirestyle22 said in What Are You Doing Right Now:
@coliver said in What Are You Doing Right Now:
@wirestyle22 said in What Are You Doing Right Now:
@RojoLoco said in What Are You Doing Right Now:
@coliver said in What Are You Doing Right Now:
Snowing today!
Lucky! It's 28F here this morning, not a cloud in sight. Just cold.
Not to be a Grinch, but snow is the worst. All it does is complicate my life by making my commute even worse and causing a lot of accidents.
Eh people who can't drive cause accidents. Snow just identifies those people. The only time I like snow is if we have enough to go riding.
I live in NJ. No one can drive here. Ask @scottalanmiller
I live in NY... can't decide who is worse: NJ drivers and Massholes
-
@coliver said in What Are You Doing Right Now:
@wirestyle22 said in What Are You Doing Right Now:
@coliver said in What Are You Doing Right Now:
@wirestyle22 said in What Are You Doing Right Now:
@RojoLoco said in What Are You Doing Right Now:
@coliver said in What Are You Doing Right Now:
Snowing today!
Lucky! It's 28F here this morning, not a cloud in sight. Just cold.
Not to be a Grinch, but snow is the worst. All it does is complicate my life by making my commute even worse and causing a lot of accidents.
Eh people who can't drive cause accidents. Snow just identifies those people. The only time I like snow is if we have enough to go riding.
I live in NJ. No one can drive here. Ask @scottalanmiller
I live in NY... can't decide who is worse: NJ drivers and Massholes
NJ Drivers. I'll save you the processing time
-
@coliver said in What Are You Doing Right Now:
@wirestyle22 said in What Are You Doing Right Now:
@coliver said in What Are You Doing Right Now:
@wirestyle22 said in What Are You Doing Right Now:
@RojoLoco said in What Are You Doing Right Now:
@coliver said in What Are You Doing Right Now:
Snowing today!
Lucky! It's 28F here this morning, not a cloud in sight. Just cold.
Not to be a Grinch, but snow is the worst. All it does is complicate my life by making my commute even worse and causing a lot of accidents.
Eh people who can't drive cause accidents. Snow just identifies those people. The only time I like snow is if we have enough to go riding.
I live in NJ. No one can drive here. Ask @scottalanmiller
I live in NY... can't decide who is worse: NJ drivers and Massholes
Texans. Worst drivers I've ever seen. Rude, erratic, sloppy and SO SLOW.
-
@scottalanmiller said in What Are You Doing Right Now:
@coliver said in What Are You Doing Right Now:
@wirestyle22 said in What Are You Doing Right Now:
@coliver said in What Are You Doing Right Now:
@wirestyle22 said in What Are You Doing Right Now:
@RojoLoco said in What Are You Doing Right Now:
@coliver said in What Are You Doing Right Now:
Snowing today!
Lucky! It's 28F here this morning, not a cloud in sight. Just cold.
Not to be a Grinch, but snow is the worst. All it does is complicate my life by making my commute even worse and causing a lot of accidents.
Eh people who can't drive cause accidents. Snow just identifies those people. The only time I like snow is if we have enough to go riding.
I live in NJ. No one can drive here. Ask @scottalanmiller
I live in NY... can't decide who is worse: NJ drivers and Massholes
Texans. Worst drivers I've ever seen. Rude, erratic, sloppy and SO SLOW.
Haven't had to drive in Texas thankfully.