Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
I m running redhat 9.0. i have three useraccounts- root, test, & test1. i have installed gnome dektop. i have setup my pc only to boot to CLI, when i want i'll type "startx" & goto GUI
what i want to do is
1. restrict test & test1 going to GUI by typing "startx" but root must be able to do so
2. after betwen test & test1 only allow test to go to GUI by typing "startx"
Google's great ain't it. I did some researching for ya and cam up with some stuff.
Quote:
PPS: Does anyone know how to restrict the "su" command to a non-universal user group, like "wheel," the way Gentoo does? It ought to be a simple change, but I'm not as familiar as I should be with how to restrict certain commands to certain groups.
--------------------------------
chgrp wheel /bin/su
chmod o-x /bin/su
should do the trick. This will prevent users other than root and members of the group wheel from running /bin/su.
you can also do similar things with the sudo command.
So I'm guessing doing a chmod on startx should do it, right?
Quote:
The startx command is usually located in the /usr/X11/bin or /usr/X11R6/bin directory. To locate it type the command "whereis startx" and see what the response is.
Since this is the security forum I thought I would bring this up. You really shouldn't run X as root regardless.
You can achieve what you want by manipulating the file permissions of the executables youwant to keep people from executing. Change the everyone bit so it doesn't have execute turned on
chmod 750
chgrp xusers executable
add users to xusers group
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.