LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-24-2002, 01:55 AM   #1
subhasis_ray
Member
 
Registered: Jul 2001
Location: india
Distribution: RedHat 7.1,7.2,7.3, 8.0,9.0,Fedora,EL2.1,EL3.0
Posts: 103

Rep: Reputation: 16
disabling su to root from telnet


hey can anyone help me to disallow users to su into root from a telnet login.
 
Old 05-24-2002, 09:47 AM   #2
geoffm33
Member
 
Registered: May 2002
Distribution: RH 7.3 - YDL 2.3
Posts: 63

Rep: Reputation: 15
Change the root password and don't tell them what it is!

Is your purpose to stop the root password from traveling in plain-text over the internet?

If so, use ssh.
 
Old 05-24-2002, 10:21 AM   #3
myutopia
LQ Newbie
 
Registered: Aug 2001
Location: Manchester
Distribution: RedHat 9.0, FreeBSD
Posts: 25

Rep: Reputation: 15
Easy.

Disable telnet

Consider SSH

I haven't tried this but it may be possible to change permissions on su and then If you need to su - you could use a utility called sudo ie the permissions only allow root to use the su command but sudo allows a user specified in the sudoers files to execute the command and only that command as root.

or both

for ssh have a look at my fave site
Frankenlinux
 
Old 02-06-2003, 11:55 AM   #4
unixpirate
Member
 
Registered: Oct 2002
Location: Maryland
Distribution: RedHat 7.3
Posts: 44

Rep: Reputation: 15
Don't use telnet
 
Old 02-06-2003, 12:09 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
In most linux distro's you can disable root login thru telnet thru the /etc/securetty file.

But if I was you I would take the suggestions of using ssh instead. Even if your not using root remotely, even as a regular user can expose your system just making it one step less for someone to break in.
 
Old 02-11-2003, 05:24 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
To restrict anyone outside the "wheel" group from using "su" you can edit the /etc/pam.d/su file and add a line (or uncomment):
auth required /lib/security/pam_wheel.so use_uid
 
Old 02-11-2003, 06:04 AM   #7
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
/etc/securetty is best method. for details read man page of login
 
  


Reply



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
Telnet as Root? stath Linux - Networking 4 03-30-2005 02:19 PM
Disabling root login via SSH moger Linux - Security 7 06-20-2004 03:55 PM
disabling telnet anf ftp nelly_boy Solaris / OpenSolaris 4 08-01-2003 07:52 AM
disabling telnet digsby0007 Linux - Software 5 05-09-2003 07:08 AM
disabling telnet ! anoop_chandran Linux - Networking 2 11-13-2001 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:39 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
Open Source Consulting | Domain Registration