Howto re-create a user profile / home dir for an existing user a/c

Hi there, i was hoping someone could let me know what is the correct
way/procedure to re-create a user home directory.  For instance, on a
Mac/Windows machine, i would just rename the existing user profile [home
dir], and then just log back in as the user - job done.  On
OpenSuse/Linux, it seems it does not work that way..?!:\

When i try to rename my home folder to say me.old via root, and log
back in as me, i get all kinds of errors.  Opensuse does create a new
home dir, but it appears not properly.

I guess i could just remove the account via User and Group
Management..?  Then re-create it..?

Any help on this would be much appreciated - thanks, vj


-- 
vmohan
------------------------------------------------------------------------



0
vmohan
2/16/2010 9:56:02 PM
opensuse.org.help.install 14389 articles. 0 followers. Follow

17 Replies
551 Views

Similar Articles

[PageSpeed] 29

Probably the safest way is to create a new account via Yast
Backup anything you need from your old account, then logout and in to
your new account. Delete the old account.


-- 
Box: openSUSE 11.2 | (KDE4.3.5) | M2N4-SLI | AMD 64 X2 5200+ | nVidia
8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | KDE 4.4.0  "release 223" | Intel 965
GM | Lenovo R61e | 3GB RAM
------------------------------------------------------------------------
caf4926's Profile: http://forums.opensuse.org/member.php?userid=204
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
caf4926
2/16/2010 9:56:02 PM
Cheers caf4926 - I shall give it a go...nice one!


-- 
vmohan
------------------------------------------------------------------------
vmohan's Profile: http://forums.opensuse.org/member.php?userid=16422
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
vmohan
2/16/2010 10:06:02 PM
It's an ownership thing the new directory you create (as root?) would
need to ownership changed to match the UID of the user you are creating
it for.


-- 
gogalthorp
------------------------------------------------------------------------
gogalthorp's Profile: http://forums.opensuse.org/member.php?userid=37208
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
gogalthorp
2/17/2010 1:16:01 AM
First log out from any desktop session and go to console. Then, as user
(*not as root!*), type the following :


Code:
--------------------
    cd /
  sudo mv $HOME{,.old}
  sudo mkdir $HOME
  sudo chown $(id -u):$(id -g) $HOME $HOME.old
--------------------


Your current home directory will be saved under your login name with
'.old' appended to it and you will have a new one with correct
ownership.


-- 
please_try_again
------------------------------------------------------------------------
please_try_again's Profile: http://forums.opensuse.org/member.php?userid=10877
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
please
2/17/2010 2:16:03 AM
Hello everyone,

gogalthorp - I'm just renaming my existing home dir using root, not
creating a new home folder using root.  The system is doing that for me
when I next login, albeit not properly?!:\

I did what caf4926 suggested last night via YaST, and whilst the new
account works perfectly, moving my old data back over to my new
profile/account does however have permissions/ownership issues. Trying
to change ownerships using the GUI is not that effective, one by one if
fine but mass applying just does not work properly...

please_try_again - i think you may have nailed it my friend...!!  I
will give it a go and post back this evening.  One question tho - how
would I repair my permissions/correct ownership on my existing data..?  
As I did what caf4926 suggested last night,  moved  my existing data
back over to my new profile - and now have a 'pad-lock' icon/emblem on
each file [above right of each file]. Opening files and folders is fine,
just ownership is showing my old account.  I can change ownership
manually using the GUI, but its quiet tedious, and the apply to all
subdirectiries / entries does not work properly.

Top draw everyone, thanks all cheers... vj


-- 
vmohan
------------------------------------------------------------------------
vmohan's Profile: http://forums.opensuse.org/member.php?userid=16422
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
vmohan
2/17/2010 10:56:01 AM
Maybe I didn't explain myself very well. I said backup your data, that
means whilst in that account copy all you need to a pen drive or
external HD. Create and login to new account, then copy in your backup.
I suspect you have copied everything from the old account?!

I have never tried as suggested by: @please_try_again
But I understand exactly what it is doing.
Do you still have the old account and all the data?


-- 
Box: openSUSE 11.2 | (KDE4.3.5) | M2N4-SLI | AMD 64 X2 5200+ | nVidia
8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | KDE 4.4.0  "release 223" | Intel 965
GM | Lenovo R61e | 3GB RAM
------------------------------------------------------------------------
caf4926's Profile: http://forums.opensuse.org/member.php?userid=204
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
caf4926
2/17/2010 11:06:01 AM
Hello caf4926 � what I did was, backup whatever i needed... files,
folders, config files etc. etc. whilst logged in as me, not root nor as
new user.  Moved my backed up data to a share on my machine which all
can read/write too.  

1 - Created a new account using yast, logged into my new account [which
was perfect].  

2 - Just moved my existing data from my sharepoint i created on my
machine into my new profile.

My files and folders open fine, just that now all my files have a
pad-lock symbol above, right of each icon.  When checking permissions,
it shows my old account as being the owner, which is correct I guess,
its behaving correctly as I did move data from one profile to another.

Old account and profile still intact � I left it their until I got
everything sorted ☺

Thanks again caf4926 for your help


-- 
vmohan
------------------------------------------------------------------------
vmohan's Profile: http://forums.opensuse.org/member.php?userid=16422
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
vmohan
2/17/2010 11:46:02 AM
What you could do is delete the new account and try the plan laid out by
@please_try_again
======================
Another idea came to mind also, but no going back to the old account
after this

I'm wondering. I never tried this. But if you go to the users settings
in Yast. (You must have everything backed up, but you said you have).
Delete the old account. Then rename the new account via yast, to match
exactly your old user name.


-- 
Box: openSUSE 11.2 | (KDE4.3.5) | M2N4-SLI | AMD 64 X2 5200+ | nVidia
8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | KDE 4.4.0  "release 223" | Intel 965
GM | Lenovo R61e | 3GB RAM
------------------------------------------------------------------------
caf4926's Profile: http://forums.opensuse.org/member.php?userid=204
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
caf4926
2/17/2010 12:56:03 PM
If it's about changing ownership recursively, from userA to userB, then,
a find command would do it :


Code:
--------------------
    sudo find /home/userA -user UserA -exec chown -h UserB "{}" ";"
--------------------


With the command above files and directories under /home/userA
belonging to UserA will belong to UserB. I did assume that UserA and
UserB are members of the same group and so didn't change group
ownership.


-- 
please_try_again
------------------------------------------------------------------------
please_try_again's Profile: http://forums.opensuse.org/member.php?userid=10877
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
please
2/17/2010 1:36:01 PM
please_try_again - how would i apply your command to one folder within
my new account.  For instance, a folder  called "backup" within UserB
profile - my new account.  UserA being my old profile, and owner of all
the contents within the "backup" folder - i do like to confuse :) :)

I'm presuming groups, means both accounts are part of "users"..?  I
could be wrong:shame:

I just ran you command within terminal, and owner of my backup folder
is still my old user account [UserA]...

Cheers, vj


-- 
vmohan
------------------------------------------------------------------------
vmohan's Profile: http://forums.opensuse.org/member.php?userid=16422
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
vmohan
2/17/2010 10:16:02 PM
Oh wow - i think i'v kinda messed this up now...  UserA is now the owner
of UserB's profile and UserB is now owner of UserA's profile - bloody
hell!


-- 
vmohan
------------------------------------------------------------------------
vmohan's Profile: http://forums.opensuse.org/member.php?userid=16422
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
vmohan
2/17/2010 10:36:01 PM
Alright fellas - I think iv sorted it... I typed in terminal "sudo chown
-hR UserB:users /user/UserB" -- ownership/permissions seems correct at
first glance.  Group is set to "users" / access is none for now.  I can
read/write/delete fine and no pad-lock icons on my backed up data from
old profile [UserA].

Would be be correct..?

Thanks again everyone for all your input and help thus far, cheers...vj


-- 
vmohan
------------------------------------------------------------------------
vmohan's Profile: http://forums.opensuse.org/member.php?userid=16422
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
vmohan
2/17/2010 11:16:01 PM
Sounds good to me. :)


-- 
gogalthorp
------------------------------------------------------------------------
gogalthorp's Profile: http://forums.opensuse.org/member.php?userid=37208
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
gogalthorp
2/18/2010 1:56:03 AM
Yep. I didn't mention you should also change the home directory
ownership cause I thought you would figure out yourself. ;)


-- 
please_try_again
------------------------------------------------------------------------
please_try_again's Profile: http://forums.opensuse.org/member.php?userid=10877
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
please
2/18/2010 3:06:01 AM
On Wed, 17 Feb 2010 13:36:01 GMT, please try again =
<please_try_again@no-mx.forums.opensuse.org> wrote:

>
>If it's about changing ownership recursively, from userA to userB, then,
>a find command would do it :
>
>
>Code:
>--------------------
>    sudo find /home/userA -user UserA -exec chown -h UserB "{}" ";"
>--------------------
>
>
>With the command above files and directories under /home/userA
>belonging to UserA will belong to UserB. I did assume that UserA and
>UserB are members of the same group and so didn't change group
>ownership.

Personally i would have used this:

Code
--------------------------------------------
su -c 'chown -chR  newowner[:group] .*'    // for . hidden directories =
and files
su -c 'chown -chR  newowner[:group] *.*'   // for all other directories =
and files
--------------------------------------------
0
JosephKK
2/19/2010 7:12:03 PM
JosephKK - One question tho, would code su -c 'chown -chR
newowner[:group] *.*' not apply to dot/hidden files also -- because your
using a wildcard for all files/folders..?

Cheers, vj


-- 
vmohan
------------------------------------------------------------------------
vmohan's Profile: http://forums.opensuse.org/member.php?userid=16422
View this thread: http://forums.opensuse.org/showthread.php?t=433219

0
vmohan
2/20/2010 12:06:01 PM
On Sat, 20 Feb 2010 12:06:01 GMT, vmohan =
<vmohan@no-mx.forums.opensuse.org> wrote:

>
>JosephKK - One question tho, would code su -c 'chown -chR
>newowner[:group] *.*' not apply to dot/hidden files also -- because your
>using a wildcard for all files/folders..?
>
>Cheers, vj

It often does not pick them up, that is why i gave two lines.  One =
specifically for ".*".
0
JosephKK
2/25/2010 2:37:18 AM
Reply:

Similar Artilces:

superreview requested: [Bug 233850] localstore.rdf is not created in user profile if it doesn't present in application default/profile dir : [Attachment 141242] profile dir service provider doesn't n
Benjamin Smedberg <bsmedberg@covad.net> has asked Darin Fisher <darin@meer.net> for superreview: Bug 233850: localstore.rdf is not created in user profile if it doesn't present in application default/profile dir http://bugzilla.mozilla.org/show_bug.cgi?id=233850 Attachment 141242: profile dir service provider doesn't need to check for existence of localstore file http://bugzilla.mozilla.org/attachment.cgi?id=141242&action=edit ...

superreview cancelled: [Bug 233850] localstore.rdf is not created in user profile if it doesn't present in application default/profile dir : [Attachment 141242] profile dir service provider doesn't n
Darin Fisher <darin@meer.net> has cancelled Benjamin Smedberg <bsmedberg@covad.net>'s request for superreview: Bug 233850: localstore.rdf is not created in user profile if it doesn't present in application default/profile dir http://bugzilla.mozilla.org/show_bug.cgi?id=233850 Attachment 141242: profile dir service provider doesn't need to check for existence of localstore file http://bugzilla.mozilla.org/attachment.cgi?id=141242&action=edit ...

How to store user profile information during create user?
Hi, I'm just try to store user information during create user via CreateUserWizard that add Textbox, DropDownList and RadoButtonList. How to store data form control to UserProfile (via CreateUserWizard) ? Note. I set DisableCreatedUser = true because want to proof user befor activate. (Begining ASP.net V2.0, VB, VWD 2005 Express Edition) Here is some example c# code that I have in the CreateUser event of the CreateWizard command.  I also do some stuff after this but I think this is the code you are interested in.     protected void CreateUserWizard1_CreatedUser(objec...

Roaming user profile in users home directory
Hi, hope you can help out... When a user logs in to NetWare, the %home_directory is mapped to <volume>:USER\<username> on the NetWare server. Roaming profile is enabled via a NDS user package, to store the user profile in user home directory. User profile should be copied to the local workstation upon login and copied back to the server upon logout. There are space restrictions on the user�s home directories. We found that some user�s home directory is full, but they are not getting any error when they log out. Only that the user profile, e.g., USER.DAT or items...

E-mailing Create User & Profile info AND changing Create User Wizard defaults
Hi, I'm in the final countdown on my site, built with VWD 2005 X Ed and can't seem to find a consistent response to a couple of questions.  Maybe someone out there can help?  I am very, very new at .NET 2.0 and SQL Server, so any detailed/example responses would be very appreciated.E-MAILING CUSTOMIZED CREATE USER WIZARD DATA There are dozens of complex tips here and elsewhere on how to customize the create user wizard then send the information to the Profile section or into a custom database.  While I don't exactly understand any of these posts yet, I'...

Help in Create user Profile...
  User Profile,is where we the user can modify settings about him/here,,, I just want to make a 2 user profile in one database...student and lecturer..with student they can activate their account by registering their student number and the lecturer can access their account without registering their accoount.. its is possible that their profile settings are not that same...??...

Importing existing user data to the user profile mechanism
Hi everyone, I have redesigned my site from ASP to ASP.NET. I am using the Profile class in my design and everything seems to be working well. Now I am about to go live but my problem is how do I import the existing user data to the new app. Data like display name, address, and other preferences are stored as a field in a user table in the old app and now this data is stored in Profile for each user. Is there an import utility that can help me with this? Thanks  Why don't you create your own custom profile provider to access data in your existing database. The profile da...

Manage Existing User Account creates volatile user
I have a Student User Package utilizing DLU. I have "Manage Existing User Account" checked, under User Name I have "DLU" listed, and made it a member of Administrators. On the XP workstation, I have created a "DLU" user account. If I login to NetWare as a student, it logins successfully with DLU as the local user. Once I logout and login again but as Administrator (Workstation Only), the DLU user is missing from the user account listings under My Computer | Manage | Local Users and Groups | Users, and the profile is absent from C:\Documents...

Roaming user profile in users home directory #2
Hi, hope you can help out... When a user logs in to NetWare, the %home_directory is mapped to <volume>:USER\<username> on the NetWare server. Roaming profile is enabled via a NDS user package, to store the user profile in user home directory. User profile should be copied to the local workstation upon login and copied back to the server upon logout. There are space restrictions on the user�s home directories. We found that some user�s home directory is full, but they are not getting any error when they log out. Only that the user profile, e.g., USER.DAT or items...

Single Users Profile and All Users Profiles List
I've made a discussion forum. And I have also installed simply asp.net membership. Now I want after click on user link to redirect to the page with User's info.I have simply user "John" and user "Bob" and everyone can click on those names and will see page with informations stored in Profile (Like Profile.Name, Profile.Address). I have three simply question:1. How to show profile values of other User ? Like I wrote above.2. How to list all users with for example their e-mails ? I mean: UserLogin - UserName - UserMail3. Or the easier way is to make new table with those all information an...

Need help creating a user profile page
After a user logs in the login.aspx page, the user gets automatically directed to the MyProfile.aspx page.USER ID = email address (unique identifier)In the ASPNETDB.MDF..aspnet_Users table, I've added more columns,,,such as AGE, DATE_OF_BIRTH, CITY...etc How can I grab these data (AGE, DATE_OF_BIRTH, CITY) and show them as labels on the MyProfile.aspx page?Im using the UserName(email address) as the unique identifier.Is there any way to pass the login control (username field) parameter to another page? like the way Gridviews/DataSources passes parameters between pages?Thanks for any in...

superreview denied: [Bug 233850] localstore.rdf is not created in user profile if it doesn't present in application default/profile dir : [Attachment 141987] take 2
Darin Fisher <darin@meer.net> has denied Benjamin Smedberg <bsmedberg@covad.net>'s request for superreview: Bug 233850: localstore.rdf is not created in user profile if it doesn't present in application default/profile dir http://bugzilla.mozilla.org/show_bug.cgi?id=233850 Attachment 141987: take 2 http://bugzilla.mozilla.org/attachment.cgi?id=141987&action=edit ------- Additional Comments from Darin Fisher <darin@meer.net> minusing based on ccarlen's comments. ...

superreview requested: [Bug 233850] localstore.rdf is not created in user profile if it doesn't present in application default/profile dir : [Attachment 141987] take 2
Benjamin Smedberg <bsmedberg@covad.net> has asked Darin Fisher <darin@meer.net> for superreview: Bug 233850: localstore.rdf is not created in user profile if it doesn't present in application default/profile dir http://bugzilla.mozilla.org/show_bug.cgi?id=233850 Attachment 141987: take 2 http://bugzilla.mozilla.org/attachment.cgi?id=141987&action=edit ...

superreview requested: [Bug 233850] localstore.rdf is not created in user profile if it doesn't present in application default/profile dir : [Attachment 142328] updated with (void) etc
Benjamin Smedberg <bsmedberg@covad.net> has asked Darin Fisher <darin@meer.net> for superreview: Bug 233850: localstore.rdf is not created in user profile if it doesn't present in application default/profile dir http://bugzilla.mozilla.org/show_bug.cgi?id=233850 Attachment 142328: updated with (void) etc http://bugzilla.mozilla.org/attachment.cgi?id=142328&action=edit ...

Web resources about - Howto re-create a user profile / home dir for an existing user a/c - opensuse.org.help.install

Brisbane game to re-create city before white settlement
Brett Leavy is on a mission to re-create Brisbane.

Korda hopes to re-create father and daughter Melbourne memories
The last time Jessica Korda was at Royal Melbourne Golf Club she was 18 and won an epic six-way playoff to clinch her first title on the LPGA ...

New Bacardi Ad Re-Creates Rum-and-Coke History
... to introduce a TV commercial evoking the history of the "Cuba Libre," better known as the rum and Coke cocktail, which Bacardi says was created ...

This Designer Brilliantly Re-creates Classic Ads as Single 8-Bit Images
Graphic artist Michael Myers (not to be confused with the Wayne's World guy or the killer from Halloween) was hired by Copypop to recreate images ...

We Tried to Re-Create JPMorgan’s Top Mutual Fund Returns and Just Gave Up - Bloomberg Business
The bank’s impressive mutual-fund-group performance figures come with little explanation

A Teen Who Re-Creates Celebrity Photos Says He’s Taught Others “Not To Be Afraid Of Being Different”
He pays tribute to Beyoncé, Miley Cyrus, Jennifer Lawrence, and Lady Gaga with these amazing photos.

Volunteer: Help re-create Texas history
... butter churning, soap making or other early settler skills. For some of the people served, the visits from meal delivery volunteers are the ...

Philips helps to re-create Times Square in a Moscow shopping mall
Russia and the US may not be best buds right now, but that hasn't stopped the former building a homage to one of New York's famous landmarks ...

Jason Reitman to re-create 'Reservoir Dogs' in live reading - Inside Movies - EW.com
Jason Reitman has aimed his sights at reinterpreting a new classic: Quentin Tarantino’s Reservoir Dogs. After re-creating The Breakfast Club, ...

Spelling Bee genius re-creates LeBron James celebration (Video)
A Scripps National Spelling Bee finalist won our hearts with his epic re-creation of LeBron James’ announcement that he’s taking his talents ...

Resources last updated: 12/27/2015 11:17:26 AM