[CentOS] Error running startx as non-root user

Fri Sep 30 18:42:48 UTC 2005
Mark Elam <melam at mobilygen.com>

On Thu, 2005-09-29 at 11:46 -0500, Todd Reed wrote:
> I’ve been looking online for resources that may help me, but I haven’t
> found anything that worked.  I’m trying to run x as a non-root user.
> Any suggestions?  
> 
>  
> 
> I get the messages:
> 
>  
> 
> Fatal server error:
> 
> PAM authentication failed, cannot start X server.
> 
>         Perhaps you do not have console ownership?
> 
>  
> 
>  
> 
> Please consult the The X.Org Foundation support
> 
>          at http://wiki.X.Org
> 
>  for help.
> 
>  
> 
> Here is what I’ve tried:
> 
> 1)         chmod 777 /dev/console
> 
>  
> 
> 2)         /etc/pam.d/xserver looks like:
> 
> auth       sufficient   pam_rootok.so
> 
> auth       required     pam_console.so
> 
> account    required     pam_permit.so
> 
> auth       required     /lib/security/pam_console.so
> 
> auth       required     /lib/security/pam_permit.so
> 
> account    required     /lib/security/pam_permit.so
> 
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

That happens when you log in as root then "su" to the user you are
trying to startx with. 

Just create a user with useradd. Then give him a password with passwd,
exit the console then log in with that user and run startx.