LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   startx access for new user (https://www.linuxquestions.org/questions/linux-security-4/startx-access-for-new-user-489357/)

moinpasha 10-04-2006 08:51 AM

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???

Wim Sturkenboom 10-05-2006 02:13 AM

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.

grezly 10-05-2006 06:09 AM

Are you trying to chmod with root, or with a 'normal' user.
Wat are the parameters of the chmod commando?
The exact error?

moinpasha 10-05-2006 11:54 PM

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?

rickh 10-06-2006 12:17 AM

Wild guess. Try chmod 750. Unlike ftp & telnet, startx is a script. It may be that it can't be executed without read access.

pasupuleti 10-06-2006 12:45 AM

oh yes its working now sir.thanx for ur help


All times are GMT -5. The time now is 01:02 AM.