LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-13-2011, 05:59 AM   #1
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
disabling grafical login to root on Suse server sle 10.2 sp2


Hi,,

here i am trying to do something like preventing any user to login as root graphically on my server .

I am using SuSe Server SLE 10.2 sp2 .

I have seen in fedora selinux does tha same by gdm and gdm-password file entries but in Suse linux there is no selinux but apparmor that too i dont know to configure apparmor for this purpose.

so anyone tell me to do so , a full process ...will be a great help..

thanks in advance...
 
Old 12-13-2011, 12:33 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I see some problems here:
- Why are you running a GUI on a server?
- Why have your users the root password?
- If you block root logins in graphical mode, but allow them in text mode, any user logged in as root to a text console can easily edit the configuration files for allowing graphical login again.

So the obvious solution would be: Don't give your users the root password.
 
Old 12-13-2011, 11:53 PM   #3
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
I see some problems here:
- Why are you running a GUI on a server?
- Why have your users the root password?
- If you block root logins in graphical mode, but allow them in text mode, any user logged in as root to a text console can easily edit the configuration files for allowing graphical login again.

So the obvious solution would be: Don't give your users the root password.
Dear,

There are more than 1 admin for the server.
Only 1 is a root admin.
Others are for database and other stuff.
Sudoers are not previlaged to edit files.

The only thing is that graphical login thru root is to be disabled.

as i worked on redhat with selinux and gdm permissions but i have no idea on Suse server regarding that and for that i need help.
can you or anyone further discuss in what way i can desable graphical login to root.

Last edited by SAbhi; 12-14-2011 at 04:13 AM.
 
Old 12-14-2011, 06:36 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
There is a document at the Novell site.

In short: add a second line to /etc/pam.d/gdm reading:
Code:
auth    required    pam_securetty.so
 
Old 12-19-2011, 01:37 AM   #5
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Reuti View Post
There is a document at the Novell site.

In short: add a second line to /etc/pam.d/gdm reading:
Code:
auth    required    pam_securetty.so
Sorry this doesnt worked out..
any other file to make changes as Suse didnt had gdm-password file under /etc/pam.d/
 
Old 12-19-2011, 03:53 AM   #6
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
It’s a typo, but it’s correct in the document I posted: the file in question is called xdm.
 
Old 12-19-2011, 05:16 AM   #7
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Reuti View Post
It’s a typo, but it’s correct in the document I posted: the file in question is called xdm.
Thank you Reuti but its incomplete...rather i tried on my own and get it worked..

In the same file .../etc/pam.d/gdm
adding this line solves my problem ...now GUI thru root is disabled...

Quote:
auth required pam_succeed_if.so user != root quiet
courtesy to fedora 11 actually...thru its gdm file i got this line...worked successfully on suse..

Last edited by SAbhi; 12-19-2011 at 05:18 AM.
 
Old 12-19-2011, 05:32 AM   #8
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
This is strange, as the document describes SLES 9 and it’s even working on openSUSE 11.4. What do you mean by it’s incomplete?
 
Old 12-23-2011, 03:34 AM   #9
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Reuti View Post
This is strange, as the document describes SLES 9 and it’s even working on openSUSE 11.4. What do you mean by it’s incomplete?
i dont know actually but for me the above lines doesnt worked out...
 
  


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
Which updates do I apply to suse 10 sp2 host server tekygirl SUSE / openSUSE 0 06-16-2009 01:55 PM
disabling root login in GUI shivanrathore Linux - Newbie 3 05-16-2008 02:31 PM
Root login disabling in GUI shivanrathore Red Hat 2 05-12-2008 05:23 PM
Disabling root login and using another username for administration mrdesai Fedora 3 08-15-2006 12:08 PM
Disabling root login via SSH moger Linux - Security 7 06-20-2004 03:55 PM

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

All times are GMT -5. The time now is 02:40 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