LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-15-2003, 07:06 PM   #1
jchin
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
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
 
Old 10-15-2003, 07:19 PM   #2
dave bean
Member
 
Registered: Jun 2003
Location: UK
Distribution: Slackware 9.1
Posts: 136

Rep: Reputation: 15
try using su -
 
Old 10-15-2003, 07:34 PM   #3
jchin
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the quick reply! and it worked. Thanks again
 
Old 10-16-2003, 02:54 AM   #4
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
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,
 
Old 10-16-2003, 02:59 AM   #5
jchin
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Hey, thanks for the suggestion, I'll definitely look into that
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 01:31 PM
chkconfig in Debian bahadur Debian 1 11-10-2005 02:24 AM
chkconfig question BajaNick Linux - General 3 07-02-2004 10:10 AM
Help on chkconfig ztopher Linux - Software 0 04-09-2003 04:29 AM
chkconfig has spoiled me? glock19 Linux - General 6 05-03-2002 04:23 AM


All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration