LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-04-2006, 08:51 AM   #1
moinpasha
LQ Newbie
 
Registered: Sep 2006
Posts: 14

Rep: Reputation: 0
startx access for new user


hello.i want to give startx access for a user.i tried it by using 'chmod' but its not working.i get 'permission denied'.
i did the same for telnet,ftp,finger,rlogin etc and i was able to give permission using 'chmod'.but this is not happening for 'startx'.after i use 'chmod' it does say my user has access but when i hit 'startx' and press enter it gives permission denied.

what do i do???
 
Old 10-05-2006, 02:13 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
On my (default) slackware boxes every user can run startx, run ftp or telnet etc. Same on my older RH7.3 and RH8.0 boxes. So we're missing something here like:
which distro
how did you configure it
how do you add users (which group(s) do they belong to); what are the original permissions on the programs (and who owns them (user and group).

Not sure that I can be of further help.
 
Old 10-05-2006, 06:09 AM   #3
grezly
Member
 
Registered: May 2006
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
Are you trying to chmod with root, or with a 'normal' user.
Wat are the parameters of the chmod commando?
The exact error?
 
Old 10-05-2006, 11:54 PM   #4
moinpasha
LQ Newbie
 
Registered: Sep 2006
Posts: 14

Original Poster
Rep: Reputation: 0
I am using Fedora core release 3

kernel 2.6.9-1.667 on an i686

yes i tried to chmod with root.

i did the same for ftp,telnet etc and they worked.

the command i used was like this:

chgrp group1 /usr/X11R6/bin/startx
chmod 710 /usr/X11R6/bin/startx

i initially added two users to this group(group1).
after i execute the commands,it does say 'root' and 'group1' have access to startx.

but when i login as one of the user and type startx,i get permission denied.

i donot get any error.
so what could be the problem?
 
Old 10-06-2006, 12:17 AM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Wild guess. Try chmod 750. Unlike ftp & telnet, startx is a script. It may be that it can't be executed without read access.
 
Old 10-06-2006, 12:45 AM   #6
pasupuleti
LQ Newbie
 
Registered: Sep 2006
Posts: 24

Rep: Reputation: 15
oh yes its working now sir.thanx for ur help
 
  


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
RHEL AS 4; Can't startx as user rh_bomani Linux - General 3 05-24-2006 08:12 AM
User can't startx sr_25 Linux - Newbie 3 01-08-2006 03:38 PM
Why can I startx with user. whutxuan Linux - Software 0 11-16-2004 03:41 AM
startx doesn't startx for user vdemuth Mandriva 10 11-08-2004 07:41 PM
user can't startx synaptical Slackware 7 07-12-2003 02:45 PM

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

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