Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-11-2006, 09:25 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Rep:
|
Disable startkde and gnome-session over ssh
Hai
I would like to know how to disable gnome-session,startkde,twm (window managers) etc over ssh.Only few selected users/group must be able to use these commands.Other users must be allowed to use tools like kate,kwrite etc.
I am using Redhat Enterprise 4 Linux.
Deepak Lukose
|
|
|
|
01-12-2006, 09:04 PM
|
#2
|
|
Member
Registered: Aug 2004
Posts: 133
Rep:
|
Hope this is the "right" way to do it, but why not do
chown root:specialgroup /path/to/program
on all those programs (gnome-sessions etc.) and do appropriate chmod on those programs so that users in the specialgroup group has permission to run the programs and "others" (in the chmod command) don't have the right to run the programs.
Those users who should be able to run the programs should then be a part of the specialgroup group.
Hope it helped
|
|
|
|
01-16-2006, 08:32 PM
|
#3
|
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
I was expecting a more robust method like one using PAM.I believe,the solution by changing file permission can be overriden by getting a copy of startkde/gnome-session etc from another machine with same OS.
|
|
|
|
01-17-2006, 05:51 PM
|
#4
|
|
Member
Registered: Aug 2004
Posts: 133
Rep:
|
Well, maybe try to do it with other programs then, like X or xinit.
|
|
|
|
01-17-2006, 08:43 PM
|
#5
|
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
xinit and X servers are stopped using PAM,but people are bypassing this by using startkde etc in an ssh session.Ssh is needed for them to login and for programming.so there is no question of disabling ssh.the only option that remains is disabling these commands using PAM.BTW thank you,for ur fast replies.
|
|
|
|
01-18-2006, 05:07 PM
|
#6
|
|
Member
Registered: Aug 2004
Posts: 133
Rep:
|
No worries, hope it works out for you =)
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:14 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|