You are not logged in.

#1 2007-10-16 17:58:33

caolan
Member
Registered: 2007-10-16
Posts: 12
Website

startx: xf86OpenConsole: Cannot Open /dev/tty0 (Permission Denied)

running startx as normal user gives me the following error:

xf86OpenConsole: Cannot Open /dev/tty0 (Permission Denied)

it seems to run ok as root... but I obviously don't want to be doing that all the time. I guess that means its a permission issue, but what, where, when and how?

I searched the forums and found one article from last year with similar errors after an updated Xorg package, apparently that was fixed and it gave me no insight as to how to manually fix this error.

I'm just starting with Arch and its my first 'advanced' distro (been mostly running ubuntu up until now)... hence, I've never had to set up Xorg etc before.

Offline

#2 2007-10-16 19:00:52

timtux
Member
From: Gävle, Sweden
Registered: 2005-10-04
Posts: 178
Website

Re: startx: xf86OpenConsole: Cannot Open /dev/tty0 (Permission Denied)

Could you please do the following and paste your output here?

tim@timtux ~> groups
log slocate video audio optical storage users
tim@timtux ~> ls -l /dev/tty0 
lrwxrwxrwx 1 root root 4 2007-10-15 15:25 /dev/tty0 -> vc/0

http://timtux.net/ - my personal blog about almost everything

Offline

#3 2007-10-17 09:04:56

caolan
Member
Registered: 2007-10-16
Posts: 12
Website

Re: startx: xf86OpenConsole: Cannot Open /dev/tty0 (Permission Denied)

$ groups

users

$ls -l /dev/tty0

lrwxrwxrwx 1 root root 4 2007-10-17 08:54 /dev/tty0 -> vc/0

I've already tried adding the group 'users' to /dev/tty0 but when I restart it just goes back to 'root'

When I do add the group 'users', it seems to get past the problem with /dev/tty0 and it gives me this error:

xf86OpenConsole: Cannot open virtual console 7 (Permission Denied)

Offline

#4 2007-10-17 11:48:33

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: startx: xf86OpenConsole: Cannot Open /dev/tty0 (Permission Denied)

the /usr/bin/Xorg binary should be set setuid or setgid root, which doesn't seem to be the case on your system. I would suggest to reinstall xorg-server to get the correct permissions set.

Offline

#5 2007-10-17 21:58:34

caolan
Member
Registered: 2007-10-16
Posts: 12
Website

Re: startx: xf86OpenConsole: Cannot Open /dev/tty0 (Permission Denied)

reinstalling xorg-server seems to have worked. perhaps it is important to create a user account before you add this package?? I don't think I did...

many thanks anyway, now its a few hours of tinkering with openbox smile

Last edited by caolan (2007-10-17 21:59:01)

Offline

Board footer

Powered by FluxBB