LinuxQuestions.org
Visit Jeremy's Blog.
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 11-22-2004, 01:04 AM   #1
mlu
Member
 
Registered: Nov 2004
Location: colombo
Distribution: Fedora
Posts: 74

Rep: Reputation: 15
Exclamation Help pls


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"

Last edited by mlu; 11-22-2004 at 01:07 AM.
 
Old 11-22-2004, 02:08 AM   #2
linuXBOX
Member
 
Registered: Jul 2003
Location: Stuart,FL
Distribution: Fedora Core 3 and Slackware 10.0
Posts: 179

Rep: Reputation: 30
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.
 
Old 11-22-2004, 03:10 PM   #3
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
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
 
Old 11-22-2004, 11:32 PM   #4
mlu
Member
 
Registered: Nov 2004
Location: colombo
Distribution: Fedora
Posts: 74

Original Poster
Rep: Reputation: 15
thanx guys it worked, GOD BLESS YOU
 
  


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
Help! Pls! Yull29m Linux - General 2 02-03-2005 12:57 PM
Can someone pls help me pancake Linux - Newbie 3 04-13-2004 12:22 AM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM
.pls Chazb Linux - Software 1 07-02-2003 07:49 PM
More C help pls The Bag Programming 6 03-11-2002 03:51 PM

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

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