LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-17-2021, 09:13 AM   #1
rapetou
LQ Newbie
 
Registered: Feb 2012
Location: Jura, France
Distribution: Debians, Xubuntu
Posts: 17

Rep: Reputation: Disabled
Question Cloning a user : strange behaviour


Hello everyone,

I've just cloned a user now, to do it I created a new user and erase all it's home, then copy the source user to the dest, I did a chown -R ...,
I'm familliar with this.

But in this case, on a Debian Bullseye I have something strange :
Logged with my new user, each time I open a terminal, it comes in the home directory of the source user, same for Libreoffice and all programs.
I checked /etc/passwd and the correct home directory is specified;

If in a terminal I just type cd, it comes in the new user home. normal.

Do you have an idea of what happend please ?
 
Old 09-17-2021, 09:40 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,101

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
check ~/.bashrc and similar files (including LO). Probably they still contain the path of the original user.
 
Old 09-17-2021, 09:52 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,702
Blog Entries: 19

Rep: Reputation: 4501Reputation: 4501Reputation: 4501Reputation: 4501Reputation: 4501Reputation: 4501Reputation: 4501Reputation: 4501Reputation: 4501Reputation: 4501Reputation: 4501
The kernel knows nothing about user names. It goes strictly by the UID. Do your two users have the same UID?
 
Old 09-17-2021, 01:19 PM   #4
rapetou
LQ Newbie
 
Registered: Feb 2012
Location: Jura, France
Distribution: Debians, Xubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hello and thanks,

Of course I checked .bashrc .profile, user id etc...

I forgot to say that I use XFCE, I think it is related to it.
 
Old 09-17-2021, 01:40 PM   #5
rapetou
LQ Newbie
 
Registered: Feb 2012
Location: Jura, France
Distribution: Debians, Xubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
I found the problem in .config/xfce4 but too many files impacted to change.

I suppose that I have to convert my user config to a "sort of template" and then create the second user with the "so called" template but I don't know how to do this at the moment.....
 
Old 09-30-2021, 01:38 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
You could read up on the uses of /etc/skel ....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Will cloning one hdd (not ssd) to another encrypted hdd work on a cloning device? hddfsck Linux - Newbie 16 09-05-2019 07:02 AM
strange gui behaviour salparadise Linux - Newbie 3 01-02-2003 10:46 AM
iFeel USB mouse strange behaviour Happosai Linux - Hardware 7 07-02-2002 10:04 PM
Opera's strange behaviour neo77777 Linux - General 5 04-03-2002 11:18 PM
Strange Behaviour mikeyt_3333 Linux - General 4 08-06-2001 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration