Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.