LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chkconfig ?? (https://www.linuxquestions.org/questions/linux-newbie-8/chkconfig-104418/)

jchin 10-15-2003 06:06 PM

chkconfig ??
 
I had a quick question and thought maybe some of you could help. I'm a complete newbie but trying hard at this.

I have installed RH9 and I followed a howto guide and setup SSH to run on a higher port, disallow root login, and also use protocol 2.

However I notice that when I login SSH and su to root user, I cannot use chkconfig command. If I enable root login, I can use the chkconfig. How do I get chkconfig to work if I log in as a user and su to root??

Thanks in advance ;)

dave bean 10-15-2003 06:19 PM

try using su -

jchin 10-15-2003 06:34 PM

Thanks for the quick reply! and it worked. Thanks again ;)

daveo 10-16-2003 01:54 AM

Quote:

Originally posted by dave bean
try using su -
Which is equal to get the environment variables of the user root. A better way to monitor this is using the sudo command. This actually registers any actions which have been made to become root.

Try this:

visudo (used only to edit the sudo access file)
Uncomment the group wheel (with passwd access)
Save it
Make the user a member of wheel, so it will be able to sudo like:

usermod -G users,wheel username

Then if you are login-in as that user, try: sudo su -

Which is the same as su - , but much more reliable and registers every wrong entered passwd in your syslog or message log file.

Hope this helps,

jchin 10-16-2003 01:59 AM

Hey, thanks for the suggestion, I'll definitely look into that


All times are GMT -5. The time now is 02:05 PM.