LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-27-2011, 11:57 PM   #1
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Rep: Reputation: 30
startx fail: .serverauth.2571 + fbdev + /dev/tty0


I'm trying to use Slackware 13.37 which I installed a long while ago. I haven't really used it. I tried using it for the first time in ages tonight and I can’t startx as a normal user.

Here are some of the error messages I jotted down with a pencil on a piece of paper:

Code:
daniel@gnull: ~$ startx
xauth: file /home/daniel/.serverauth.2571 does not exist
X Server 1.9.5
Release 2011-3-17
Version 11
Build Operating System: Slackware 13.37

xf86OpenConsole: Cannot open /dev/tty0

[EE]  failed to load module “fbdev” (module does not exist, 0)
When I try startx as root user, it loads. I get a prompt saying,
Code:
 root GUI: Failed to apply network settings org freedesktop.DBus.Error.Spawn.PermissionInvalid: the permission of the setuidhelper is not correct
Here are the contents of my dmesg log: http://pastebin.ca/2096723


Here is my Xorg log file:
Code:
[   448.271]
X.Org X Server 1.9.5
Release Date: 2011-03-17
[   448.275] X Protocol Version 11, Revision 0
[   448.276] Build Operating System: Slackware 13.37 Slackware Linux Project
[   448.277] Current Operating System: Linux gnull 2.6.37.6 #3 SMP Sat Apr 9 22:49:32 CDT 2011 x86_64
[   448.278] Kernel command line: BOOT_IMAGE=/boot/vmlinuz root=/dev/sda2 ro vt.default_utf8=0 vga = 773
[   448.279] Build Date: 17 March 2011  10:50:17PM
[   448.280]  
[   448.282] Current version of pixman: 0.20.2
[   448.283]     Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[   448.285] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   448.288] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 28 00:21:30 2011
[   448.290] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   448.291] (==) No Layout section.  Using the first Screen section.
[   448.291] (==) No screen section available. Using defaults.
[   448.291] (**) |-->Screen "Default Screen Section" (0)
[   448.291] (**) |   |-->Monitor "<default monitor>"
[   448.291] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[   448.291] (==) Automatically adding devices
[   448.291] (==) Automatically enabling devices
[   448.291] (WW) The directory "/usr/share/fonts/local" does not exist.
[   448.291]     Entry deleted from font path.
[   448.291] (WW) The directory "/usr/share/fonts/CID" does not exist.
[   448.291]     Entry deleted from font path.
[   448.291] (==) FontPath set to:
   /usr/share/fonts/TTF,
   /usr/share/fonts/OTF,
   /usr/share/fonts/Type1,
   /usr/share/fonts/misc,
   /usr/share/fonts/75dpi/:unscaled,
   /usr/share/fonts/100dpi/:unscaled,
   /usr/share/fonts/75dpi,
   /usr/share/fonts/100dpi,
   /usr/share/fonts/cyrillic
[   448.291] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   448.291] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[   448.291] (II) Loader magic: 0x7d2500
[   448.291] (II) Module ABI versions:
[   448.291]     X.Org ANSI C Emulation: 0.4
[   448.291]     X.Org Video Driver: 8.0
[   448.291]     X.Org XInput driver : 11.0
[   448.291]     X.Org Server Extension : 4.0
[   448.292] (--) PCI:*(0:1:0:0) 10de:1200:3842:1568 rev 161, Mem @ 0xda000000/33554432, 0xc0000000/134217728, 0xcc000000/67108864, I/O @ 0x0000ef00/128, BIOS @ 0x????????/524288
[   448.292] (II) Open ACPI successful (/var/run/acpid.socket)
[   448.292] (II) LoadModule: "extmod"
[   448.292] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[   448.292] (II) Module extmod: vendor="X.Org Foundation"
[   448.292]     compiled for 1.9.5, module version = 1.0.0
[   448.292]     Module class: X.Org Server Extension
[   448.292]     ABI class: X.Org Server Extension, version 4.0
[   448.292] (II) Loading extension MIT-SCREEN-SAVER
[   448.292] (II) Loading extension XFree86-VidModeExtension
[   448.292] (II) Loading extension XFree86-DGA
[   448.292] (II) Loading extension DPMS
[   448.292] (II) Loading extension XVideo
[   448.292] (II) Loading extension XVideo-MotionCompensation
[   448.292] (II) Loading extension X-Resource
[   448.292] (II) LoadModule: "dbe"
[   448.292] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[   448.293] (II) Module dbe: vendor="X.Org Foundation"
[   448.293]     compiled for 1.9.5, module version = 1.0.0
[   448.293]     Module class: X.Org Server Extension
[   448.293]     ABI class: X.Org Server Extension, version 4.0
[   448.293] (II) Loading extension DOUBLE-BUFFER
[   448.293] (II) LoadModule: "glx"
[   448.293] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   448.293] (II) Module glx: vendor="X.Org Foundation"
[   448.293]     compiled for 1.9.5, module version = 1.0.0
[   448.293]     ABI class: X.Org Server Extension, version 4.0
[   448.293] (==) AIGLX enabled
[   448.293] (II) Loading extension GLX
[   448.293] (II) LoadModule: "record"
[   448.293] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
[   448.293] (II) Module record: vendor="X.Org Foundation"
[   448.293]     compiled for 1.9.5, module version = 1.13.0
[   448.293]     Module class: X.Org Server Extension
[   448.293]     ABI class: X.Org Server Extension, version 4.0
[   448.293] (II) Loading extension RECORD
[   448.293] (II) LoadModule: "dri"
[   448.293] (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
[   448.293] (II) Module dri: vendor="X.Org Foundation"
[   448.293]     compiled for 1.9.5, module version = 1.0.0
[   448.293]     ABI class: X.Org Server Extension, version 4.0
[   448.293] (II) Loading extension XFree86-DRI
[   448.293] (II) LoadModule: "dri2"
[   448.294] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
[   448.294] (II) Module dri2: vendor="X.Org Foundation"
[   448.294]     compiled for 1.9.5, module version = 1.2.0
[   448.294]     ABI class: X.Org Server Extension, version 4.0
[   448.294] (II) Loading extension DRI2
[   448.294] (==) Matched nouveau as autoconfigured driver 0
[   448.294] (==) Matched nv as autoconfigured driver 1
[   448.294] (==) Matched vesa as autoconfigured driver 2
[   448.294] (==) Matched fbdev as autoconfigured driver 3
[   448.294] (==) Assigned the driver to the xf86ConfigLayout
[   448.294] (II) LoadModule: "nouveau"
[   448.294] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
[   448.294] (II) Module nouveau: vendor="X.Org Foundation"
[   448.294]     compiled for 1.9.2, module version = 0.0.16
[   448.294]     Module class: X.Org Video Driver
[   448.294]     ABI class: X.Org Video Driver, version 8.0
[   448.294] (II) LoadModule: "nv"
[   448.294] (II) Loading /usr/lib64/xorg/modules/drivers/nv_drv.so
[   448.294] (II) Module nv: vendor="X.Org Foundation"
[   448.294]     compiled for 1.9.2, module version = 2.1.18
[   448.294]     Module class: X.Org Video Driver
[   448.294]     ABI class: X.Org Video Driver, version 8.0
[   448.294] (II) LoadModule: "vesa"
[   448.295] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[   448.295] (II) Module vesa: vendor="X.Org Foundation"
[   448.295]     compiled for 1.9.2, module version = 2.3.0
[   448.295]     Module class: X.Org Video Driver
[   448.295]     ABI class: X.Org Video Driver, version 8.0
[   448.295] (II) LoadModule: "fbdev"
[   448.296] (WW) Warning, couldn't open module fbdev
[   448.296] (II) UnloadModule: "fbdev"
[   448.296] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   448.297] (II) NOUVEAU driver Date:   Tue Nov 30 15:27:36 2010 +1000
[   448.297] (II) NOUVEAU driver for NVIDIA chipset families :
[   448.297]     RIVA TNT    (NV04)
[   448.297]     RIVA TNT2   (NV05)
[   448.297]     GeForce 256 (NV10)
[   448.297]     GeForce 2   (NV11, NV15)
[   448.297]     GeForce 4MX (NV17, NV18)
[   448.297]     GeForce 3   (NV20)
[   448.297]     GeForce 4Ti (NV25, NV28)
[   448.297]     GeForce FX  (NV3x)
[   448.297]     GeForce 6   (NV4x)
[   448.297]     GeForce 7   (G7x)
[   448.297]     GeForce 8   (G8x)
[   448.297] (II) NOUVEAU driver Date:   Tue Nov 30 15:27:36 2010 +1000
[   448.297] (II) NOUVEAU driver for NVIDIA chipset families :
[   448.297]     RIVA TNT    (NV04)
[   448.297]     RIVA TNT2   (NV05)
[   448.297]     GeForce 256 (NV10)
[   448.297]     GeForce 2   (NV11, NV15)
[   448.297]     GeForce 4MX (NV17, NV18)
[   448.297]     GeForce 3   (NV20)
[   448.297]     GeForce 4Ti (NV25, NV28)
[   448.297]     GeForce FX  (NV3x)
[   448.297]     GeForce 6   (NV4x)
[   448.297]     GeForce 7   (G7x)
[   448.297]     GeForce 8   (G8x)
[   448.297] (II) VESA: driver for VESA chipsets: vesa
[   448.297]
Fatal server error:
[   448.299] xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
[   448.300]
[   448.302]
Please consult the The X.Org Foundation support
    at http://wiki.x.org
for help.
[   448.306] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   448.307]
What is going on here? How do I get x to start?

Last edited by Drone4four; 12-27-2011 at 11:58 PM.
 
Old 12-28-2011, 12:44 AM   #2
Uzuki
LQ Newbie
 
Registered: Jun 2010
Location: Indonesia
Distribution: Slackware, RedHat
Posts: 27

Rep: Reputation: 4
for the 1st error "xauth: file /home/daniel/.serverauth.2571 does not exist" , you just need to create the file : touch $HOME/.serverauth.2571

for the 2nd error fbdev : edit your xorg.conf go to Section "Module" and delete the Load fbdev or you can adjust the path for xorg modules

The last one "Cannot open /dev/tty0", i have no clue about this one, tty0? which virtual terminal did you use to logged in?
 
1 members found this post helpful.
Old 12-28-2011, 01:28 AM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,130

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
When you created the user with adduser, I think you missed the part of the "Additional UNIX groups": the console gui suggests to press the up arrow for a default set
Code:
Initial group [ users ]: 
Additional UNIX groups:

Users can belong to additional UNIX groups on the system.
For local users using graphical desktop login managers such
as XDM/KDM, users may need to be members of additional groups
to access the full functionality of removable media devices.

* Security implications *
Please be aware that by adding users to additional groups may
potentially give access to the removable media of other users.

If you are creating a new user for remote shell access only,
users do not need to belong to any additional groups as standard,
so you may press ENTER at the next prompt.

Press ENTER to continue without adding any additional groups
Or press the UP arrow key to add/select/edit additional groups
:  audio cdrom floppy plugdev video power netdev
if you have to add your user to these groups after creation, you can use gpasswd
Code:
gpasswd -a daniel audio
so if you llok at /etc/group you should have something like
Code:
grep daniel /etc/group
floppy:x:11:daniel
audio:x:17:daniel
video:x:18:daniel
cdrom:x:19:daniel
plugdev:x:83:daniel
power:x:84:daniel
netdev:x:86:daniel
also check /home/daniel permissions: the owner must be daniel and he needs read, write and execute permissions in his home

Last edited by ponce; 12-28-2011 at 01:31 AM.
 
1 members found this post helpful.
Old 12-28-2011, 03:18 PM   #4
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Uzuki View Post
for the 1st error "xauth: file /home/daniel/.serverauth.2571 does not exist" , you just need to create the file : touch $HOME/.serverauth.2571
I touched that file, as you suggested, Uzuki. Then when I went to startx, a similar error appeared saying, “xauth: file /home/daniel/.serverauth.10803 does not exist”. So I touch that file, like I did the last one, and upon startx, it says, .serverauth.10827 does not exist. And then again for 10849. I stopped touching files at this point.

Quote:
for the 2nd error fbdev : edit your xorg.conf go to Section "Module" and delete the Load fbdev or you can adjust the path for xorg modules
I checked my xorg.conf and it was empty. So I ran xorgsetup. I searched my new xorg.conf and there was no instance of fbdev. Here is my new xorg.conf:
Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib64/xorg/modules"
	FontPath     "/usr/share/fonts/local"
	FontPath     "/usr/share/fonts/TTF"
	FontPath     "/usr/share/fonts/OTF"
	FontPath     "/usr/share/fonts/Type1"
	FontPath     "/usr/share/fonts/misc"
	FontPath     "/usr/share/fonts/CID"
	FontPath     "/usr/share/fonts/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/75dpi"
	FontPath     "/usr/share/fonts/100dpi"
	FontPath     "/usr/share/fonts/cyrillic"
EndSection

Section "Module"
	Load  "glx"
	Load  "extmod"
	Load  "dbe"
	Load  "dri"
	Load  "dri2"
	Load  "record"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option       "XkbOptions"  "terminate:ctrl_alt_bksp"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"           	# [<bool>]
        #Option     "HWcursor"           	# [<bool>]
        #Option     "NoAccel"            	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "WrappedFB"          	# [<bool>]
        #Option     "GLXVBlank"          	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
	Identifier  "Card0"
	Driver      "nouveau"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 24
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
Quote:
The last one "Cannot open /dev/tty0", i have no clue about this one, tty0? which virtual terminal did you use to logged in?
I used the first vt. I demonstrated for myself that I was in fact using the first vt by doing Ctrl + Alt + F2, Ctrl + Alt + F3. All the commands I entered were in Ctrl + Alt + F1.

Quote:
Originally Posted by ponce View Post
so if you look at /etc/group you should have something like

Code:
grep daniel /etc/group

floppy:x:11:daniel

audio:x:17:daniel

video:x:18:daniel

cdrom:x:19:daniel

plugdev:x:83:daniel

power:x:84:daniel

netdev:x:86:daniel
From within Lisa you can see what groups the users are associated with on my Slackware partition:
Code:
gnull@lisa:~$ cd /mnt/slack/etc/
gnull@lisa:/mnt/slack/etc$ grep daniel group
audio:x:17:daniel,dummie
video:x:18:daniel,dummie
plugdev:x:83:daniel,dummie
power:x:84:daniel,dummie
netdev:x:86:daniel,dummie
gnull@lisa:/mnt/slack/etc$
As you can see above, there is another account called, dummie. You said:

Quote:
When you created the user with adduser, I think you missed the part of the "Additional UNIX groups": the console gui suggests to press the up arrow for a default set
I created an account with adduser exactly as you suggested and yet startx in the dummie account still failed.

Quote:
also check /home/daniel permissions: the owner must be daniel and he needs read, write and execute permissions in his home
As root user I entered, chmod -R 0777 /home/*. startx still failed.


btw, how to you change the password of a normal user? I tried using "chpasswd daniel" as root, but it just hanged there. It wouldn't let me change passwords.

Also, it's interesting to note that I can't log in as root as a normal user by using su -. To log in as root from a normal user, I exited and then at the login prompt, typed ‘root’ and then entered my pw.

Last edited by Drone4four; 12-29-2011 at 10:23 AM.
 
Old 12-29-2011, 04:46 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,130

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
To change passwords use the "passwd" command.
To see the tty name you're logged in you can use "w".

BTW, you said you never used this installation.
Could it be you got something wrong during the original setup? In this case maybe starting from scratch can make you waste less time.
 
1 members found this post helpful.
Old 12-29-2011, 09:09 AM   #6
kevmccor
Member
 
Registered: Aug 2004
Location: Texas
Distribution: slackware
Posts: 158

Rep: Reputation: 44
You may have upgraded and saved your home directory, but the ownership is not consistent with the new upgraded system user information. If $ls -l /home/daniel shows numeric owner:group then your id is inconsistent.
If you get your root account straightened out, then, as root do # chown -R daniel:users /home/daniel.

Before starting x, after initial login, try a search for ~/.ICEauthority like ~$ ls .IC*
Delete that file if present. Also delete .Xauthority

Change your permissions back to normal if you can.
Use the program xwmconfig to select your preferred window manager
Then try $ startx

I believe the .Xauthority and (if present) .ICEauthority files are automatically generated each time X starts, but old ones can mess everything up. There are also KDE specific files in your .kde/ directory, like ~/.ked/socket-host ~/.kde/cache-host

More possibly useful information:
http://www.linuxquestions.org/questi...ssword-394236/
 
1 members found this post helpful.
Old 12-31-2011, 03:16 PM   #7
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ponce View Post
BTW, you said you never used this installation.
Could it be you got something wrong during the original setup? In this case maybe starting from scratch can make you waste less time.
I did not actually say I “never used this installation”. Here is exactly what I said:
Quote:
Originally Posted by Drone4four View Post
I'm trying to use Slackware 13.37 which I installed a long while ago. I haven't really used it. I tried using it for the first time in ages tonight and I can’t startx as a normal user.
I should have been more clear. After installing it earlier this year, I tinkered with it for a few days. I chased all the dependencies on SlackBuilds.org to get Chromium running. After that point I neglected Slackware as I moved on to other distros. Regardless, this proves that X was usable in Slackware at some point. I really don’t want to start from scratch b/c with Linux there should always be a way to fix things. Reformatting is something you have to do with Micro$hit Winblows.

Quote:
Originally Posted by kevmccor View Post
You may have upgraded and saved your home directory, but the ownership is not consistent with the new upgraded system user information. If $ls -l /home/daniel shows numeric owner:group then your id is inconsistent.
If you get your root account straightened out, then, as root do # chown -R daniel:users /home/daniel.
Like I said in an earlier post, I used chown -R 0777 /home/*. That makes all folders read and writable by normal users. So I didn’t have to enter, # chown -R daniel:users /home/daniel. But I entered that command you suggested as root anyways. Still, x wound’t start.

Quote:
Originally Posted by kevmccor View Post
Before starting x, after initial login, try a search for ~/.ICEauthority like ~$ ls .IC*
Delete that file if present. Also delete .Xauthority



I believe the .Xauthority and (if present) .ICEauthority files are automatically generated each time X starts, but old ones can mess everything up.
Instead of deleting .ICEauthority, I moved it to .ICEauthority.bax. I did the same for .Xauthority. x still wouldn’t start.

Quote:
Originally Posted by kevmccor View Post
There are also KDE specific files in your .kde/ directory, like ~/.ked/socket-host ~/.kde/cache-host
I am uninsterested in KDE so that isn’t relevant to me. Cheers all the same.

Quote:
Originally Posted by kevmccor View Post
How is that thread relevant to mine?
 
Old 01-09-2012, 07:44 PM   #8
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Original Poster
Rep: Reputation: 30
bump
 
Old 01-10-2012, 02:14 PM   #9
Fred-1.2.13
Member
 
Registered: Jan 2006
Location: Midwest USA
Distribution: Started with Slackware - 3.0 1995 Kernel 1.2.13 - Now Slackware Current. Also some FreeBSD.
Posts: 124

Rep: Reputation: 59
Ignore this post if way off...

So X works as root, correct?

Have you tried adding a new non root user (besides daniel) and checking to see if X loads as that user?

This may be way off so use at your own risk... but what if you renamed your daniel home folder to daniel_old, then delete the daniel user and then re-add user daniel... maybe that will clean things up.

That's what I would try, failing that I would grab my Chromium build and anything else I wanted and reload the system clean (not the answer you want but may be the simplest way).

Last edited by Fred-1.2.13; 01-10-2012 at 02:18 PM.
 
1 members found this post helpful.
Old 01-10-2012, 06:49 PM   #10
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Fred-1.2.13 View Post

So X works as root, correct?

Have you tried adding a new non root user (besides daniel) and checking to see if X loads as that user?
Yes, I tried this and I talked about it in a earlier post in my response to ponce's suggestion:

Quote:
Originally Posted by Drone4four View Post
From within Lisa you can see what groups the users are associated with on my Slackware partition:
Code:
gnull@lisa:~$ cd /mnt/slack/etc/
gnull@lisa:/mnt/slack/etc$ grep daniel group
audio:x:17:daniel,dummie
video:x:18:daniel,dummie
plugdev:x:83:daniel,dummie
power:x:84:daniel,dummie
netdev:x:86:daniel,dummie
gnull@lisa:/mnt/slack/etc$
As you can see above, there is another account called, dummie. You said:

Quote:
Originally Posted by ponce View Post
When you created the user with adduser, I think you missed the part of the "Additional UNIX groups": the console gui suggests to press the up arrow for a default set
Code:
Initial group [ users ]:
Additional UNIX groups:

Users can belong to additional UNIX groups on the system.
For local users using graphical desktop login managers such
as XDM/KDM, users may need to be members of additional groups
to access the full functionality of removable media devices.

...

Press ENTER to continue without adding any additional groups
Or press the UP arrow key to add/select/edit additional groups
:  audio cdrom floppy plugdev video power netdev
I created an account with adduser exactly as you suggested and yet startx in the dummie account still failed.



Quote:
Originally Posted by Fred-1.2.13 View Post
This may be way off so use at your own risk... but what if you renamed your daniel home folder to daniel_old, then delete the daniel user and then re-add user daniel... maybe that will clean things up.
Since creating a new user wouldn’t startx, I anticipate that renaming daniel to daniel_old would not fix things.

Quote:
Originally Posted by Fred-1.2.13 View Post
That's what I would try, failing that I would grab my Chromium build and anything else I wanted and reload the system clean (not the answer you want but may be the simplest way).
Like I said,

Quote:
Originally Posted by Drone4four View Post
I really don’t want to start from scratch b/c with Linux there should always be a way to fix things. Reformatting is something you have to do with Micro$hit Winblows.
 
Old 01-11-2012, 12:11 AM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,130

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
maybe this is not the case, but I assure you that there isn't always a way to fix things cleanly, it depends on what you do as root.
as a quick example (don't try it at home!)
Code:
rm -fR /usr /var /etc
obviously, under normal conditions, this is not fixable.

I see in the grep above on /etc/group that it seems to miss floppy and cdrom groups, it's a voluntary omission or that's maybe a customized slackware (not a full install)?
are you sure you run adduser to create the daniel/dummie account?

Quote:
Also, it's interesting to note that I can't log in as root as a normal user by using su -. To log in as root from a normal user, I exited and then at the login prompt, typed ‘root’ and then entered my pw.
that's no good.
does "su -" spits any errors?

can you check /dev/tty0 when you're logged in as daniel (in console)?
Code:
ls -la /dev/tty0
what does the command "w" tells you about who's logged in?

EDIT: just came to mind: if your /home is on a separate partition, which kind of filesystem are you using?

Last edited by ponce; 01-11-2012 at 04:07 AM. Reason: more guesses
 
1 members found this post helpful.
Old 01-11-2012, 08:25 AM   #12
Fred-1.2.13
Member
 
Registered: Jan 2006
Location: Midwest USA
Distribution: Started with Slackware - 3.0 1995 Kernel 1.2.13 - Now Slackware Current. Also some FreeBSD.
Posts: 124

Rep: Reputation: 59
Quote:
maybe this is not the case, but I assure you that there isn't always a way to fix things cleanly, it depends on what you do as root.
Not what you want to hear Drone, but in my 16 years Linux experience sometimes what ponce said above is in fact the case. I admire your persistence in figuring this out. Good luck to you! Please post the solution if you do get it worked out!
 
1 members found this post helpful.
Old 01-15-2012, 01:17 PM   #13
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ponce View Post
maybe this is not the case, but I assure you that there isn't always a way to fix things cleanly, it depends on what you do as root.
as a quick example (don't try it at home!)
Code:
rm -fR /usr /var /etc
obviously, under normal conditions, this is not fixable.
Yes that is true.

Quote:
I see in the grep above on /etc/group that it seems to miss floppy and cdrom groups, it's a voluntary omission or that's maybe a customized slackware (not a full install)?

are you sure you run adduser to create the daniel/dummie account?
Yes I am sure I used adduser to create both those accounts. I deliberately did not add the users to floppy and cdrom groups b/c they are obsolete.
Quote:
that's no good.
does "su -" spits any errors?
Here is the su - output after entering my pw:

Code:
setgid: Operation not permitted
Ponce recommends:
Quote:
can you check /dev/tty0 when you're logged in as daniel (in console)?
Code:
ls -la /dev/tty0
Oddly, it says:
Code:
crw-rw-rw- 1 root tty5 Jan 15 13:58
Looking at that I thought it was saying that the 5 virtual terminal was in use. So I navigated to it using Ctrl + Alt + F5, but to my surprise it was asking me to log in just as all the other available virtual terminals.

Then ponce says:
Quote:
what does the command "w" tells you about who's logged in?
w's output is the following:

Code:
daniel tty1 - 13:58
Finally, ponce comments:

Quote:
EDIT: just came to mind: if your /home is on a separate partition, which kind of filesystem are you using?
/home is on the same partition as the O/S (ext4)
 
Old 01-15-2012, 02:46 PM   #14
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,130

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
the permission for the /dev/tty* are wrong, have you changed them manually?
Code:
$ ls -la /dev/tty[0-9]
crw--w---- 1 myuser users 4, 0 Jan 13 22:35 /dev/tty0
crw--w---- 1 myuser tty   4, 1 Jan 15 21:28 /dev/tty1
crw--w---- 1 myuser users 4, 2 Jan 13 22:35 /dev/tty2
crw--w---- 1 root   tty   4, 3 Jan 13 22:35 /dev/tty3
crw--w---- 1 root   tty   4, 4 Jan 13 22:35 /dev/tty4
crw--w---- 1 root   tty   4, 5 Jan 13 22:35 /dev/tty5
crw------- 1 root   root  4, 6 Jan 13 21:36 /dev/tty6
crw--w---- 1 root   tty   4, 7 Jan 13 22:35 /dev/tty7
crw--w---- 1 root   tty   4, 8 Jan 13 22:35 /dev/tty8
crw--w---- 1 root   tty   4, 9 Jan 13 22:35 /dev/tty9
if w says you're logged in /dev/tty1, you should check /dev/tty1 with ls -la (btw, oddly, the output you pasted don't seem to come from "ls -la").

while you're there, check also /bin/su permissions, should be
Code:
$ ls -la /bin/su
-rws--x--x 1 root root 67131 Apr 11  2011 /bin/su

Last edited by ponce; 01-15-2012 at 02:49 PM.
 
1 members found this post helpful.
Old 01-15-2012, 06:46 PM   #15
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Original Poster
Rep: Reputation: 30
ponce, you said:

Quote:
Originally Posted by ponce View Post
the permission for the /dev/tty* are wrong, have you changed them manually?
I have, as you suggested in an earlier post:
Quote:
Originally Posted by Drone4four View Post
Quote:
Originally Posted by ponce View Post
also check /home/daniel permissions: the owner must be daniel and he needs read, write and execute permissions in his home
As root user I entered, chmod -R 0777 /home/*. startx still fails.
Quote:
Originally Posted by ponce View Post
Code:
$ ls -la /dev/tty[0-9]
crw--w---- 1 myuser users 4, 0 Jan 13 22:35 /dev/tty0
crw--w---- 1 myuser tty   4, 1 Jan 15 21:28 /dev/tty1
crw--w---- 1 myuser users 4, 2 Jan 13 22:35 /dev/tty2
crw--w---- 1 root   tty   4, 3 Jan 13 22:35 /dev/tty3
crw--w---- 1 root   tty   4, 4 Jan 13 22:35 /dev/tty4
crw--w---- 1 root   tty   4, 5 Jan 13 22:35 /dev/tty5
crw------- 1 root   root  4, 6 Jan 13 21:36 /dev/tty6
crw--w---- 1 root   tty   4, 7 Jan 13 22:35 /dev/tty7
crw--w---- 1 root   tty   4, 8 Jan 13 22:35 /dev/tty8
crw--w---- 1 root   tty   4, 9 Jan 13 22:35 /dev/tty9
Mine looks like that except instead of Jan 13 it says, Jan 15 and for tty2-tty5, the permissions are set to crw-------. There is no second w.

Quote:
Originally Posted by ponce View Post
if w says you're logged in /dev/tty1, you should check /dev/tty1 with ls -la (btw, oddly, the output you pasted don't seem to come from "ls -la").
I double checked and here is the input and output:
Code:
# ls -la /dev/tty1
crw--w---- 1 root tty 4,1 Jan 15 19:06
#
Quote:
Originally Posted by ponce View Post
while you're there, check also /bin/su permissions, should be
Code:
$ ls -la /bin/su
-rws--x--x 1 root root 67131 Apr 11  2011 /bin/su
Yes, I can verify that ls -la /bin/su prints exactly that.

Last edited by Drone4four; 01-15-2012 at 08:49 PM. Reason: grammar fix
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Startx error: cannot open /dev/tty0 fortea Linux - General 3 09-01-2011 04:27 AM
[SOLVED] Clone standard output to /dev/tty0 truboy Linux - Newbie 2 01-10-2011 07:04 AM
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory) souhakubunn Linux - Software 1 10-04-2007 07:11 AM
Startx Permission problems on /dev/null and /dev/mem on freshly compiled 2.6.22.1 Eric_Cartman Linux - Kernel 2 09-09-2007 01:42 AM
/dev/tty0, /dev/tty1, /dev/tty10...and so on...which should be used for a device ??? b0nd Slackware 2 04-02-2006 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration