LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-25-2004, 04:38 AM   #1
paragon17
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 7.2
Posts: 19

Rep: Reputation: 0
difficulties with creating user accounts, which is the best tool


Under Gnome, Mandrake 7.2

I have some problems knowing which of the user management tools
to use. I have three choices - kuser, userdrake, and userconf (?)

When I use userdrake, the account does not seem to allow 'startx'
properly - although I can copy across a valid .Xauthority file and then
it works

With kuser, the user is added to the grp '0' which makes it root-ish
but there seems to be no problem with startx

with userconf, this seems the best, but it is confusing as to what the
initial config will be.

I just want to know which tool is best for quickly creating a user that
will be able to startx without any config.

Also, how do I make a single user auto - startx on login?

Paragon
 
Old 02-25-2004, 07:12 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
The best real way to add users is to just use the command, useradd.

man useradd for more options, details, etc.

And if your wanting a user to login to X automatically after logging in and don't want to change your runlevel to 5, just edit their .bash_login file and have it so it starts X from there, simply startx will work for the command.
 
Old 02-25-2004, 07:25 AM   #3
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Does your machine boot to a prompt or to a graphical logon screen? If already a graphical, you need to add the user with the gdm configurator. If no graphical startup and you want one, you need a desktop manager like xdm, gdm, or kdm. Since you are using Gnome, I'd suggest gdm. It'll allow your user to login graphically. (from a login prompt, you could always make an .Xsession file and put the command for starting Gnome, then startx will work - - or add to the users .xinitrc file)
 
Old 02-26-2004, 08:48 AM   #4
paragon17
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 7.2
Posts: 19

Original Poster
Rep: Reputation: 0
I have tried the suggestions.

useradd and groupadd handle my user admin tasks well.

So far I have been unable to automatically start X when a user logs in.

(Have tried putting startx in .bash_login, .xinit, .xinitrc, .Xsession, .login
- none of which works)

Are there any other files that get run only when the initial login occurs, or
is there anyway to enable execution of .bash_login
I do not want to have a conditional statement in my .bashrc

Paragon
 
Old 02-28-2004, 03:49 PM   #5
paragon17
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 7.2
Posts: 19

Original Poster
Rep: Reputation: 0
Aside from some minor troubles with $ useradd -D -g polski
and having to still specify $ useradd -g polski paragon2
I can now create and get rid of users at will.

My problem now is that I would really like to roll out a duplicate desktop
environment to my user "paragon1" for all of my new users. Changes I
have made include configuring the "footprint start menu", lowering the
number of workspaces, deleting drakconf from background, deleting
gnome control centre from panel.
What is the easiest way to duplicate one users "gnome" environment for
another user?

Paragon
 
Old 02-29-2004, 04:50 AM   #6
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
If you copy all the relevant directories and files to /etc/skel and use the -m flag when doing your useradd it'll copy all the settings to the new users home directory, as for which specific files/diretories you need I'm not 100% sure, ls -a in the user you have now home dir and see what looks related i.e gnome gnome2 gconf desktop etc.

Trial and error I guess until someone points out the exact files.
 
Old 02-29-2004, 12:43 PM   #7
paragon17
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 7.2
Posts: 19

Original Poster
Rep: Reputation: 0
Ok, I will give that a whirl. Will tar what is already there first though.
(As I do not want to lose the defaults for some old users.)

Will post the list of files if I discover which combination works.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Multiple user accounts from a formatted file collern2 Programming 2 03-09-2005 09:15 PM
trouble creating user accounts krsnachaitanya Linux - Networking 2 02-12-2005 10:01 AM
Creating User Accounts Winux Linux - Newbie 6 04-01-2003 05:35 AM
Creating user accounts Ricardo Linux - Newbie 3 05-19-2002 03:24 AM
some accounts don't have sound?? / creating desktop for user Cor_Tauri Linux - Newbie 1 07-06-2001 12:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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