Link to home
Start Free TrialLog in
Avatar of arut
arut

asked on

Authorizing a new user to connect to X server

I have red hat linux loaded in my PC.

Can someone please let me know the command used to authorize a new user to connect to X server.

Regards & Thanks,
arut
Avatar of bughead1
bughead1

By default, RedHat should allow a new user to run "startx" if you have added that new user with the "adduser" (or "useradd") command (as root) and assigned a password  with the "passwd" command.
I believe startx is a script (or a executable) that falls under normal unix rights, meaning that if u have allowed the user to run it (using chmod), then he or she can run it, else he or she will be denied access to it.

Avatar of arut

ASKER

startx is available but the problem is only root is able to connect
to X SERVER.

hOW DO i authorize a new user added by using the command
"adduser " to connect to X SERVER ?

Kindly help,
arut
Can an ordinary user (a user other than root)  login at all?  Not to be pedantic, but we need to establish what an ordinary user can or cannot do on your computer -- and precisely what you mean by "connect to X server."

If an ordinary user cannot even login, then you must login as root and use adduser to create an account for them.  If you want to create an account for some one named "Tom" and provide them a pass word of "bug$ziP"  you can do it this way:

#   adduser tom
#   passwd tom

When you type "passwd tom"  Linux will prompt you to type the password a couple of times.  That's when you type "bug$ziP"  (or whatever password you choose.  Note that the command is spelled passwd -- not password.  You won't see the password on the screen as you enter it.

After that,  you can logout as root -- attempt to login as "tom" and use the "startx" command to try running X Windows as an ordinary user.

If that isn't the problem, or if you are beyond that already,  can you explain in more depth the problem you are experiencing?
Avatar of arut

ASKER

I am able to login as another user .
But from that login prompt if I type startx it won't connect to X server. iT tries and times out and some message like not
authorized is flashed.

Basically I would like to connect to X Server from the new user's
login prompt.

TOM>Startx

The above should be able to connect TOM with X server so that
he can make use of GUI.

This is currently not happening .

Only root has the privileges currently.


I hope its clear now.

Regards,
arut
ASKER CERTIFIED SOLUTION
Avatar of roberto122399
roberto122399

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial