difficulties with creating user accounts, which is the best tool
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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)
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
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.