Xwindows not running for Users

Using applications, configuring, problems
Post Reply
Message
Author
sankarv
Posts: 26
Joined: Thu 09 Mar 2006, 07:05
Contact:

Xwindows not running for Users

#1 Post by sankarv »

I have installed Puppy 2.14 to my hard drive.



I have modified the /etc/inittab by just replacing /usr/bin/autologinroot with /usr/bin/login (i just replaced 'autologinroot' with 'login') so that it asks for login.



Then i created an user "test" with adduser command. I tried to login as test, it is logging in but i cannot run xwindows. When i tried with startx it says permission denied when it tries to access the /etc/X11/* directory, the /tmp/* directory and returns to prompt saying startx failed.



pls help me getting run xwindows with normal user....

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

you need to make a number of changes ... for example, you must run X as root whether you like it or not, so that you have the permissions to access the hardware using the video drivers ... so X (Xvesa or Xorg) must be owned by root and the uid bit must be set

when X starts, it accesses and possibly changes certain files in /etc, /tmp, /root, /var etc etc etc ... you need to set the permissions on those various files

you will need to set the permissions on various devices so that they will work properly with your unprivileged user

various programs like the drive mounter programs will need to be rewritten

and if you make one mistake, you can create security problems that would allow others to access your machine and data ... running as an unprivileged user is not an automatic guarantee that you have a secure system

it is possible to run Puppy as an unprivileged user, but if you really do not want to run as root, it might be better to use another operating system ... GrafPup, for example

Lyle
Posts: 3
Joined: Sat 29 Dec 2012, 21:31

#3 Post by Lyle »

Is this still true? That it's best to always run as root in Puppy LInux?

I just started running 5.4.3 and was surprised that X didn't start automatically for a non-root user.

It's ok. But I've spent years brow-beating my poor sysadmin-self not to work as root all the time.

Thanks....Lyle

Post Reply