Page 1 of 1

[SOLVED] Recovery with RAID howto with users

Posted: 19 Jul 2010, 13:19
by agkbill
Hi,

I had a crash with my Bubba2 (refused to boot after restart) and had to reinstall. Luckily I had a RAID configuration and recovery worked fine, thanks excito.

What I wounder is how to do with the user account.

All the previous users folders are in /home/ including /private/ the problem is that even if I create a new identical user with same password I can still not access the private folder.

Is it the way it should be? How can I fix this.

Do I have to ssh into bubba2, su and then move all content in /private/ to now loction, erase old user home folders, create new user account and copy back the data?

Will be a lot of work, about 800 Gb of data.

Any ide how to recover in the best way.

Best regards,

/Christer

Re: Recovery with RAID howto with users

Posted: 20 Jul 2010, 03:12
by Kiff
The permissions are not set to a username, but an id, so creating a new account with the same username would still be seen as a different user. The easiest approach would probably be to just transfer ownership.

As root:

Code: Select all

chown username:groupname -R folder
-R means recursive, it will also change ownership on subfolders and files. Give the username and (optional) groupname of the new owner.

Re: [SOLVED] Recovery with RAID howto with users

Posted: 20 Jul 2010, 13:02
by agkbill
Thank you kiff! :)

Worked really great.

Before ls -l gave:

drwxr-xr-x 7 1003 users 4096 2010-01-06 22:23 christer

Re: [SOLVED] Recovery with RAID howto with users

Posted: 20 Jul 2010, 13:02
by agkbill
Thank you kiff! :)

Worked really great.

Before ls -l gave:

drwxr-xr-x 7 1003 users 4096 2010-01-06 22:23 christer

Code: Select all

chown christer -R /home/christer/
drwxr-xr-x 7 christer users 4096 2010-01-06 22:23 christer

Now I can access all the folders OK from bubba2 web interface.

Great!

Thanks.

/Christer