Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 have a new account set up on my system (RedHat 6 Cluster and Windows Server Domain Controller), and when I try to sudo from it, it tells me access is denied. I am the admin of this server. I imagine it's fairly simple to correct, I'm just not sure where to start. Thanks!
Contact the admin of the server is the correct "start".
Hi there, thanks for your time. I am the admin, so it's on me to correct this. I am trying to minimize having to log in as root, since it's a secure system.
Hi there, thanks for your time. I am the admin, so it's on me to correct this. I am trying to minimize having to log in as root, since it's a secure system.
have you configured the user account to be part of the wheel group or edited the /etc/sudoers file to include that user account?
also this is Redhat so you do have the required support contract
use it
the first step is the "knowledge base "
login to the redhat site with the credintials you set up when you bought the license
and search ( you will need to be loged in to read MOST of the web site )
Ubuntu and its derivatives are the only distros that grant the first user on the system unlimited sudo privileges and lock out the root account. Other distros don't do that, for good reason.
Use the root account to administer a RH system, you can switch to it with "su -". You can set up sudo to allow unprivileged users access to run specific commands with elevated privileges, as sudo is intended to be used, but I highly recommend against following the Ubuntu approach of granting regular accounts unlimited sudo access.
Thanks you all for the info! I will check it all out. So just to clarify, I inherited this system, and was not here when it was being built. Also, my security guy that audited this system before I was hired (after the original sysadmin left) simply does a "sudo -i" to complete certain tasks.
" su " and "su - " are two very different commands
"su" is become root BUT!!! with your NORMAL users $PATH
( you stay in the same folder you were in and you DO NOT have /sbin in the path and a few other restrictions )
"su - " is a shortcut for "su -l root "
log in AS root ( that is a lower case L and not a i )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.