Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

[SOLVED] Recovery with RAID howto with users

Got problems with your B2 or B3? Share and get helped!
Post Reply
agkbill
Posts: 27
Joined: 15 Jan 2010, 13:44

[SOLVED] Recovery with RAID howto with users

Post 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
Last edited by agkbill on 20 Jul 2010, 12:59, edited 1 time in total.
Kiff
Posts: 48
Joined: 08 Feb 2010, 04:09
Location: Norway
Contact:

Re: Recovery with RAID howto with users

Post 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.
agkbill
Posts: 27
Joined: 15 Jan 2010, 13:44

Re: [SOLVED] Recovery with RAID howto with users

Post 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
agkbill
Posts: 27
Joined: 15 Jan 2010, 13:44

Re: [SOLVED] Recovery with RAID howto with users

Post 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
Post Reply