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
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
[SOLVED] Recovery with RAID howto with users
Last edited by agkbill on 20 Jul 2010, 12:59, edited 1 time in total.
Re: Recovery with RAID howto with users
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:
-R means recursive, it will also change ownership on subfolders and files. Give the username and (optional) groupname of the new owner.
As root:
Code: Select all
chown username:groupname -R folder
Re: [SOLVED] Recovery with RAID howto with users
Thank you kiff!
Worked really great.
Before ls -l gave:
drwxr-xr-x 7 1003 users 4096 2010-01-06 22:23 christer

Worked really great.
Before ls -l gave:
drwxr-xr-x 7 1003 users 4096 2010-01-06 22:23 christer
Code: Select all
Re: [SOLVED] Recovery with RAID howto with users
Thank you kiff!
Worked really great.
Before ls -l gave:
drwxr-xr-x 7 1003 users 4096 2010-01-06 22:23 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

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/
Now I can access all the folders OK from bubba2 web interface.
Great!
Thanks.
/Christer