-
Make new user with same configs as current user?
I have set up the knoppix user just as I want it.
I now want to make a new user (SunnyB) with
the same configuration as the knoppix user.
Can I copy the entire /home/knoppix directory to another
directory "SunnyB" under /home/sunnyb.
If this can be done can I then copy the config file
knoppix.sh to sunnyb.sh and get away with it.
What's the easiest way.
-
- Create the new user from kuser, adduser, useradd, whatever...
- If the tool you used to create the new user created a home directory, remove it with 'rm -rf /home/[new_user]'
- Copy the knoppix home folder for the new user 'cp -R /home/knoppix /home/[new_user]'
- change ownership of everything in the new users home with 'chown -R [new_user] /home/[new_user]
That ought to work...
BR
-
Senior Member
registered user
SunnyB, I did the exact same thing, only about two months ago...
I would suggest doing what bamarob suggests...
I would just add one more thing, this is what I am "still" catching "fall-out" from...
Considering that you are copying "everything" from a specific user, and making it another user, take note of any "weird" messages, or errors, in the "new users" login. "Weird" here is defined as, getting messages that "you do not have permission to do 'xxxxxxx'" stuff.
Some of these "copied" configuration files contain file locations for temp folders, etc... (and since you copied them from "another" user, these locations will still point back to the "copied from" users locations. I got nabbed by a audio ripping program, like K3b, which users temp folders, it kept yelling about the TEMP FOLDER not having rights to do anything. After "looking" at the configs for days, I _FINALLY_ noticed the folder was in the /home/knoppix/tmp location - DUH
Its an easy fix, but, can be frustrating if you don't remember that you "cloned" your users settings, when something doesn't work like it did when you ran it just fine as 'knoppix'
Just some "heads up" information,
Cuddles
-
I did as bamarob said then I chown'd the entire directory.
Everything went as expected. I then spent four hours editing every
file in that new directory and changed every reference to /home/knoppix to /home/sunnyb.
The really frustrating part was after I got it all changed and
ready, I could not switch users in order to save the configs for the
new user. Although I had set the permissions on the new user
to root, sudo, sunnyb and every other high permission level, I could not saveconfig the new user. Each sudo got an error, "sunnyb does not have sudoers permission, This will be repported.". WTF was that anyway. I checked and rechecked. Nothing helped.
I eventually logged out in hopes of relogging while the new user
was intact but no joy. It rebooted instead, effectively wiping the
whole days work. What a PITA.
Probably won't be messing with it for a while. Anything that difficult
has to be profitable, otherwise it better be fun. It wasn't.
It's back to my Debian box for a while.
Thanks anyway for the help.
-
Well I finally got this to work. In case anyone is trying to do the same thing.
The main problem is that although I could make a new user and set the
permissions to root, sudo, etc. the Knoppix menu did no recognize any user
not named knoppix. So when I tried to save configs through that menu it just
hung or failed.
1. I logged in as knoppix 2 myconfig. blah blah
This way I started the session through KDM which gave me the option to
logout and log back in without killing the session or rebooting.
2. I copied the entire /home/knoppix dir to /home/sunnyb recursed.
cp -R /home/knoppix /home/sunnyb just as Bamarob said.
3. I chown'd the entire dir to sunnyb
chown -R sunnyb /home/sunnyb
4. I logged out as knoppix and logged back in as sunnyb.
This is where the Knoppix menu did not let me use the save configs.
I had to GKsu the saveconfig command and mkpersistenthome command
to save the configs and a persistent home dir.
5. Now I was able to log in with the knoppix 2 myconfig= blah blah
command and at the root prompt I used KDM which gives me the option
of logging in as knoppix, sunnyb or root.
This may be as close as I can get without remastering / making a live CD
from the session but it works and now my local network recognizes
the machine because I am logged in as sunnyb. Now I just have to change
the paths in all of the shell scrips again and it will be OK.
Thanks all.
Similar Threads
-
By zspecfenix17 in forum The Lounge
Replies: 7
Last Post: 03-10-2005, 05:58 PM
-
By bizarro in forum Customising & Remastering
Replies: 3
Last Post: 10-17-2004, 01:29 PM
-
By bongski55 in forum Hdd Install / Debian / Apt
Replies: 6
Last Post: 09-04-2003, 05:47 AM
-
By bongski55 in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 07-18-2003, 12:22 PM
-
By true1ever in forum Customising & Remastering
Replies: 2
Last Post: 06-23-2003, 03:54 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
TF1230 Commodore Amiga 1200 Accelerator 50 MHz 68030 64 MB A1200 Terrible Fire
$120.00
Impulse Firecracker 24 Rev 2.1 2MB 24bit Graphics card for Amiga 2000 3000 4000
$175.00
Mini External OLED AMIGA Gotek Floppy Drive Emulator For Amiga 500/500+/600/1200
$37.41
Amiga 500 Gotek Custom Mount USB Floppy Emulator - Complete Kit with Gotek
$65.00
Amiga Professional Page VTG Publishing Software w/ VHS
$40.00
SIDKick Pico Commodore 64 and 128 (C64 / C128) - MOS SID 6581 / 8580 Replacement
$19.99
Page Render 3D Mindware Internal 3.5” Floppy Disk Amiga 500 1000 2000 Software
$44.95
Utilities Unlimited Emplant for AMIGA A2000 A3000 A4000
$475.00
TeensyROM Cartridge for Commodore 64/128: MIDI, Fastload, Emulation, and Network
$65.00
Promqueen EPROM Programmer for Commodore VIC-20 SUPER RARE
$499.00