??? Clone a user to a different name ???
Ok, I guess this is REALLY a noob question, cause I've had it posted in the newsgroup I thought it should be in, and it hasn't gotten any responses -=- So, I am cross-posting into the HD Install -=- to get an answer...
Included Cross-Posted Networking Newsgroup post:
Pardon my noob issue, but, with Knoppix, I've been thrust into being an account manager now...
I want to duplicate a current user into another name.
Issue #1 - Can I "copy" or duplicate a user I have setup as a template - lets say "knoppix" for an example - Can I copy that account and user as a different name? If so, can they share the same /home or do they need a different home directory??? Will all the access and permissions copy as well?
Issue #2 - Can a directory be created that is shared across all users, write, read, and exec, that DOESN'T exist in someones home directory? Or can this only be done in ones home area?
Please explain resolution in simp terms - I went into this role kicking and scratching...
Thanks for any assistance,
Cuddles
[ps] Knoppix 3.3 v2.4.22-xfs HD Install, non-dualboot, 40gig HD.
Re: ??? Clone a user to a different name ???
Quote:
Originally Posted by Cuddles
Ok, I guess this is REALLY a noob question, cause I've had it posted in the newsgroup I thought it should be in, and it hasn't gotten any responses -=- So, I am cross-posting into the HD Install -=- to get an answer...
Included Cross-Posted Networking Newsgroup post:
Pardon my noob issue, but, with Knoppix, I've been thrust into being an account manager now...
I want to duplicate a current user into another name.
Issue #1 - Can I "copy" or duplicate a user I have setup as a template - lets say "knoppix" for an example - Can I copy that account and user as a different name? If so, can they share the same /home or do they need a different home directory??? Will all the access and permissions copy as well?
Issue #2 - Can a directory be created that is shared across all users, write, read, and exec, that DOESN'T exist in someones home directory? Or can this only be done in ones home area?
Please explain resolution in simp terms - I went into this role kicking and scratching...
Thanks for any assistance,
Cuddles
[ps] Knoppix 3.3 v2.4.22-xfs HD Install, non-dualboot, 40gig HD.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I'll take a stab.
#1 ) First, yes you can copy a users profile and it will typically work fine as long as it doesn't contain any HARD coded file paths in any of the files rather than the tilde shortcut to home - i.e. /home/knoppix/setup.conf rather than ~/setup.conf.
First use some utility to make the user, the adduser command or the user tool in KDE.
Copy the knoppix dir contents to the created users folder, say it's name is ralph, Then as root from the /home dir issue this command:
Code:
chown -R ralph.ralph ralph/
This should allow ralph to login with the same basic setup as knoppix.
#2 ) Yes, you can make ANY folder "world readable" that is writable to anyone - as long as the media supports it. You certainly can't make a folder on the CD writable. Make a folder, say named barf, and as root change it's rights from the folders parents:
If it's a pre-existing folder with contents do this:
to recurese the folder and change the files contents attributes.
ONE TIP: Try out Midnight Commander, type mc at the term prompt . if you're familiar with the old Norton Commander back in the "good ol' days" of DOS it is much the same. You can navigate, read, edit and change attributes very easily.