-
Senior Member
registered user
?? Duplicate a user account as different name ??
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.
-
Senior Member
registered user
I still need to do what the original post states...
Anyone have ideas how this can be done? Can it be done??? Or, do I have to adduser's and then manually set them up to be the same???? Seems kind of simple to me, but then again, I am not setting up a multi-user network for a major corporation here.
Thanks again, for any assistance to this issue,
Cuddles
-
Senior Member
registered user
Ok, since nobody else bothers I'll bite... ![Wink](images/smilies/icon_wink.gif)
I'm not sure about the GUI tools but at least with on the command line and using a text editor you can accomplish what you are asking for here.
HOWEVER, I don't think either of them is a good idea. Sharing home directories
can/will cause problems if both users use the same applications at the same time since most apps store individual settings in the users home directory.
You could add a new user and then copy the old users home recursively to the new user, perhaps like this:
Code:
su
cd /home/newuser
cp -R ../olduser/* .
chown -R newuser *
exit
Note that this does not touch files or directories directly in /home/newuser whose name begins with a "." Usually that is a good thing since they often contain settings unique for that user.
Issue #2:
Giving all users write access is almost never a good idea since there are other than "real" users in the system that don't need write access to something like that (and giving them access can weaken security).
What you should do is create a group containing the users you want to give write access to the common directory, for instance by adding a line like this to /etc/group:
Code:
ducks:*:12342:hewey,dewey,lewey
(make sure that the number 12342 isn't already used in the /etc/group file, if so you need to pick another one that isn't taken)
Then you can create a shared directory for that group, you can put it almost anywhere you like:
Code:
su
cd /somewhere
mkdir shared_dir
chgrp ducks shared_dir
chmod 2775 shared_dir
exit
(assuming that /somewhere already existed and everyone or at least the ducks already had read- and execute-rights to it, write rights aren't required)
After that Donald's three nephews all have write access to /somewhere/shared_dir, including any subdirectories any of them have created there.
-
Senior Member
registered user
Windos_No_Thanks, you ALWAYS end up helping me out, don't you??? [giggle]
Cool ! Thanks, one last question, I got lost reading what I need to do to use "adduser", what would be the "normal" command for a normal user like "knoppix" ???
Thanks in advance,
Cuddles
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
Cuddles
Cool ! Thanks, one last question, I got lost reading what I need to do to use "adduser", what would be the "normal" command for a normal user like "knoppix" ???
You can use adduser to add a new user (run it as root of course). It is very simple to use, I don't think you can get it wrong so just try it.
Similar Threads
-
By Cardador in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 11-22-2004, 11:20 AM
-
By rrfish72 in forum General Support
Replies: 6
Last Post: 09-17-2004, 08:15 PM
-
By KnoppixDawg in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 07-17-2004, 08:50 PM
-
By pkoebbe in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 05-27-2004, 07:20 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
![CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED picture](/store/img/g/uj4AAOSw8hhmYQRm/s-l225/CISCO-MERAKI-MS120-24P-HW-24-PORT-GIGABIT-CLOUD-MA.jpg)
CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED
$103.74
![TP-Link 24-Port Gigabit Ethernet Unmanaged Switch Desktop/Rackmount TL-SG1024D picture](/store/img/g/rvkAAOSwZBBi5CPU/s-l225/TP-Link-24-Port-Gigabit-Ethernet-Unmanaged-Switch-.jpg)
TP-Link 24-Port Gigabit Ethernet Unmanaged Switch Desktop/Rackmount TL-SG1024D
$69.99
![New In Box BNIB Cisco SG300-10 - 10-Port Ethernet Gigabit Managed Switch S23 picture](/store/img/g/0MsAAOSwS1JmG~B5/s-l225/New-In-Box-BNIB-Cisco-SG300-10-10-Port-Ethernet-Gi.jpg)
New In Box BNIB Cisco SG300-10 - 10-Port Ethernet Gigabit Managed Switch S23
$119.99
![Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED picture](/store/img/g/kjQAAOSwNkhj0o7Y/s-l225/Fortinet-FortiSwitch-FS-124D-POE-24-Port-Gigabit-E.jpg)
Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED
$99.97
![NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter picture](/store/img/g/GtAAAOSw441l3Jx1/s-l225/NETGEAR-GS108-ProSafe-8-Port-GbE-Unmanaged-Switch-.jpg)
NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter
$14.99
![Dell X1026P E11W 24-Port PoE Smart Managed Gigabit Ethernet Switch 2X SFP picture](/store/img/g/KhoAAOSwVqZmUJTH/s-l225/Dell-X1026P-E11W-24-Port-PoE-Smart-Managed-Gigabit.jpg)
Dell X1026P E11W 24-Port PoE Smart Managed Gigabit Ethernet Switch 2X SFP
$25.00
![Dell X1052P Series 52-Port Gigabit Rack Mountable Managed Network Switch picture](/store/img/g/IjQAAOSwqrVmUJen/s-l225/Dell-X1052P-Series-52-Port-Gigabit-Rack-Mountable-.jpg)
Dell X1052P Series 52-Port Gigabit Rack Mountable Managed Network Switch
$30.00
![Cisco SG102-24 V2 24 Port Gigabit Switch - Power cord included picture](/store/img/g/CL0AAOSwPAhmhEgj/s-l225/Cisco-SG102-24-V2-24-Port-Gigabit-Switch-Power-cor.jpg)
Cisco SG102-24 V2 24 Port Gigabit Switch - Power cord included
$45.00
![Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch picture](/store/img/g/BUMAAOSwtOFjdfzi/s-l225/Loocam-Gigabit-PoE-Switch-8-Port-96W-2-Uplink-Port.jpg)
Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch
$49.99
![Dell X1018 X-Series Smart Managed Switches 16-Port Gigabit 2-Port SFP Switch picture](/store/img/g/-yUAAOSw-JVlyRj9/s-l225/Dell-X1018-X-Series-Smart-Managed-Switches-16-Port.jpg)
Dell X1018 X-Series Smart Managed Switches 16-Port Gigabit 2-Port SFP Switch
$42.00