LinuxQuestions.org
Visit Jeremy's Blog.
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 05-30-2003, 08:25 PM   #1
_666
LQ Newbie
 
Registered: May 2003
Distribution: slackware 8.1
Posts: 4

Rep: Reputation: 0
installed everything as root.. now what


installed my system as root.. everything works (kde3, sound, eth0 etc.)

i created another user with 'kuser' with a home dir, a shell and all.. if i try a 'startx' when i'm logged in as the user.. then i'm not allowed access because of something to do with Xauthority and not being able to write to my home dir.

what have i done wrong.. seeing as i used 'kuser' and added everything.. i rebooted but that didn't work..

what is THE way to add a user and have everything work short of adding the new user to every single group..

thanks slackers,
andy

ps.
i'm impressed with slackware as it's the only distro i can get to play nicely with the wintel nightmare that is the n1015v evo laptop from compaq/hp
 
Old 05-31-2003, 07:01 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I've never had a problem when I use the "adduser" script. Also, you might look at just changing the permissions on the home directory:
chown -R user.users /home/user
Where user is the username AND users is actually kept as users (being the group your users should belong to). If you wish to add this user to more groups, then open up /etc/group and add the name (comma seperated, no space).

There shouldn't be too many groups you need to add a normal user to.

Cool
 
Old 05-31-2003, 08:32 AM   #3
_666
LQ Newbie
 
Registered: May 2003
Distribution: slackware 8.1
Posts: 4

Original Poster
Rep: Reputation: 0
thanks a lot.. i can successfully login now but if i try to edit a test .txt file i can open vim no problem add my text, but when i :wq it comes up with

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Now i tried a "export DISPLAY=:0.0" but that didn't work.. however the test.txt file has been written and does come up in the list when i do a ls.

strangeness abounds..
andy
 
Old 05-31-2003, 08:43 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
maybe your permissions on /tmp are weird.
i've had to do stuff like that, but i can't remember
what all i had to do, but i remember something usefull
find . -type f -exec chown user {} \;
find . -type d -exec chown user {} \;
 
Old 05-31-2003, 09:03 AM   #5
_666
LQ Newbie
 
Registered: May 2003
Distribution: slackware 8.1
Posts: 4

Original Poster
Rep: Reputation: 0
so everythings sorted

okay.. even though i was getting that wierd msg when logged in as root.. but su'ing to another user.. i fired up kuser and added my user to sys (for the sound), wheel (i assumed correctly was wheel mouse) and voila.. everything just worked when i logged all the way out and then only logged in with my user.

i think that if you are logged in as root it must protect the xserver somehow and not let other xsessions be started. security feature? anyway on slackware 8.1 you need to add ur user to sys if you want full playin-niceness within kde!

thanks slackers,
andy
 
Old 05-31-2003, 09:08 AM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
wheel is the group of people who can use the su command to change user on the fly.
 
  


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
smbmnt must be installed suid root figadiablo Linux - Networking 29 08-09-2007 11:12 PM
libraries installed in root dir? donbellioni Linux - Software 3 09-25-2004 09:48 AM
installed kde as root zeb_666 Linux - Software 4 04-20-2004 09:28 AM
installed as root, running as non-root? daniela Linux - Newbie 4 09-09-2003 04:41 PM
LimeWire installed as root, can't run if not root sulzla Linux - Newbie 1 07-01-2003 07:48 PM

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

All times are GMT -5. The time now is 03:17 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