Re: [ubuntu-uk] Recreating home folder?

2009-12-11 Thread Andrew Williams
On Fri, Dec 11, 2009 at 02:17:27PM +, Alex Birchall wrote:
> Hi,
> 
> For some reason (maybe a slip of the wrist?), a home folder for an
> ordinary user on my Ubuntu server has disappeared (nothing vital lost).
> The user is still there.  Can I just recreate the user's home folder, or
> should I delete the user and create another one?

cp -R /etc/skel /home/username
chown -R username.username /home/username

That'll copy the skeleton userdir format and chown it to the required 
person. If your using a different group setup (like using the "user" group 
instead of making one per user) just change the username after the . 
on chown.

-- 
Andrew Williams
w: http://tensixtyone.com/
e: andy (at) tensixtyone.com


signature.asc
Description: Digital signature
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Recreating home folder?

2009-12-11 Thread Paul Roach
You can just recreate the folder...but remember to assign the folder
to the corresponding user and group with chown


On Fri, Dec 11, 2009 at 2:17 PM, Alex Birchall  wrote:
> Hi,
>
> For some reason (maybe a slip of the wrist?), a home folder for an
> ordinary user on my Ubuntu server has disappeared (nothing vital lost).
> The user is still there.  Can I just recreate the user's home folder, or
> should I delete the user and create another one?
>
> Regards,
>
> Alex
>
> Alexander J Birchall
> Library Systems Manager
> Middlesex University
> The Sheppard Library
> The Burroughs
> London NW4 4BT
>
> Tel 0208 411 5235
>
>
>
> --
> ubuntu-uk@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
> https://wiki.ubuntu.com/UKTeam/
>

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


[ubuntu-uk] Recreating home folder?

2009-12-11 Thread Alex Birchall
Hi,

For some reason (maybe a slip of the wrist?), a home folder for an
ordinary user on my Ubuntu server has disappeared (nothing vital lost).
The user is still there.  Can I just recreate the user's home folder, or
should I delete the user and create another one?

Regards,

Alex

Alexander J Birchall
Library Systems Manager
Middlesex University
The Sheppard Library
The Burroughs
London NW4 4BT

Tel 0208 411 5235



-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/