You are not logged in.
Pages: 1
Hello, I added a new user using useradd. How do I make this user have the same initial setup as the user made during the installation?
Thanks!
Last edited by D314 (2015-11-08 22:31:52)
Offline
Offline
`adduser` is probably easier to use than `useradd`
Have a read of the manpages to see your options, and how to add a user with defaults.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Why do you want to do this?
I like the initial setup
What do you mean by "initial setup"?
This is what I mean when I say initial setup (this user was made during installation):
This user I added manually:
Have a read of the manpages to see your options, and how to add a user with defaults.
I did, but I don't think that's the problem. The user is fine, I just want all the defaults that were setup to the first user on the new one.
Thanks!
~~~~~
Mod Edit: Changed oversized images to thumbnail links -- please limit images to 250x250
-HoaS
Last edited by D314 (2015-11-08 22:13:13)
Offline
^ That's why you should use `adduser name`.
If you don't use the right switches, useradd will set up the user configs from `/etc/skel`, which doesn't contain the BL configs.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
^ That's why you should use `adduser name`.
If you don't use the right switches, useradd will set up the user configs from `/etc/skel`, which doesn't contain the BL configs.
Woah! That worked! Thanks.
Where are the defaults used by adduser if it's not too much too ask? I checked /etc/adduser.conf but it says SKEL=/etc/skel.
Anyway, solved!
Last edited by D314 (2015-11-08 22:28:56)
Offline
BL configs are in `/usr/share/bunsen/skel`
If you could add [SOLVED] to the title of your first post, it might help others looking for an answer
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Where are the defaults used by adduser if it's not too much too ask?
The defaults are as damo said, but adduser doesn't access them directly. Any user logging in for the first time via lightdm should trigger the transfer of config files, by a script called from lightdm's config file.
To be honest, I'm not sure why the useradd-created user didn't get set up. Did you login through lightdm that time?
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
To be honest, I'm not sure why the useradd-created user didn't get set up. Did you login through lightdm that time?
Yes I did. Here are the commands I used:
sudo useradd mari
sudo passwd mari
sudo usermod -a -G sudo,audio,dip,video,plugdev,netdev mari
(I copied the groups from the user created during installation)
Then I logged out (right click desktop -> exit -> log out) and logged in with the new user. Finally I solved it doing userdel and adduser.
Offline
^well, it's water under the bridge now, but if you were still with the unconfigured user I would have been interested in some more info about the things in your home directory, login experience etc...
(I'll see if I can reproduce your results on a VM.)
Glad you fixed it anyway.
UPDATE: It seems that if you use 'useradd -m' to create a user home directory then it works OK.
( https://forums.bunsenlabs.org/viewtopic … 7397#p7397 )
adduser is still recommended in most cases though.
Last edited by johnraff (2015-11-10 06:59:45)
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Pages: 1