[SOLVED] Recovery with RAID howto with users

Got problems with your Bubba Two? Share and get helped!

[SOLVED] Recovery with RAID howto with users

Postby agkbill » 19 Jul 2010, 19:19

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, 18:59, edited 1 time in total.
agkbill
 
Posts: 12
Joined: 15 Jan 2010, 20:44

Re: Recovery with RAID howto with users

Postby Kiff » 20 Jul 2010, 09:12

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.
Kiff
 
Posts: 34
Joined: 08 Feb 2010, 11:09
Location: Norway

Re: [SOLVED] Recovery with RAID howto with users

Postby agkbill » 20 Jul 2010, 19:02

Thank you kiff! :)

Worked really great.

Before ls -l gave:

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

[code][/code]
agkbill
 
Posts: 12
Joined: 15 Jan 2010, 20:44

Re: [SOLVED] Recovery with RAID howto with users

Postby agkbill » 20 Jul 2010, 19:02

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
agkbill
 
Posts: 12
Joined: 15 Jan 2010, 20:44


Return to Bubba Two Support

Who is online

Users browsing this forum: No registered users and 2 guests