hello guys , i think i erased by mistake the user (theduc) i used to install fedora , i created another user (luc) but it seems that my Home folder and my luc folder are the same .Is it normal that if i cd in my luc folder ls -l , i see everything that i see under /home in dolphin file manager , my luc folder is invisible in dolphin file manager , and if cd /home ls -l i get:
total 0
drwx-----. 1 luc luc 438 Mar 19 23:00 luc
drwx-----. 1 1000 1000 198 Mar 17 11:47 theduc
should i recreate a /home/user folder using this :
sudo mkdir /home/user
cp -a /etc/skel/* /home/user
chown -R user:user /home/user
is there any risk to erase what is in my actual home folder ? and if i recreate this user folder can i just copy paste what is in my actual home folder to the user folder ?
By default the username and the home folder are the same. Thus the user ālucā would have ā/home/lucā as the home directory.
Since you are showing 2 directories in /home, one named luc and owned by luc, and one named theduc and owned by UID of 1000 then it would seem that the data in the second directory may be intact.
What would be required is to first make certain the user ālucā is a member of the wheel group. Once that is done then a reboot to the normal system and a login would allow full recovery. To check if luc is already a member of the wheel group the command groups
as that user would be ideal. If it shows wheel then the next paragraph would not be required.
Is your user ālucā a member of the wheel group and able to use sudo?
if not then recovery will probably require using a live media boot for root privileges to make the necessary changes.
Making ālucā a member of the wheel group would be done by editing /etc/group on the installed system and making certain the wheel entry looks like this.
wheel:x:10:luc
Once that is done your user would be able to access sudo when logging in.
Recovery of the home directory would be easiest done by rebooting and logging in to the regular system.
First change ownership of /home/theduc with sudo chown -R luc:luc /home/theduc
to give ownership and access to luc
.
now it is possible to either merge the content of the 2 directories or to change the home directory for luc to the other one.
Further steps will depend upon what you wish to do from this point.
Hello Jeff and thanks a lot for your response> the groups command return luc wheel , meaning that luc seems to be part of the wheel group and i did have a look at /etc/group where i did find wheel:x:10:luc as you mentioned it .
Actually what i would like to do is to keep luc as the main user but thereās some data from theduc user that i would love to keep . So i donāt know if itās easier to merge the content of the 2 directories or choose only some data ( only files , personal data, no software ) from the Duc and copy them in luc home folder . One last thing , i configured the computer and specially the nvidia drivers with theduc user account and did struggle a lot for the system not to overwrite the nvidia driver with the nouveau driver , and i donāt want to risk to loose that set up by any chance . Sorry if i not crystal clear in my explanation as iām a newb with linux coming from Mac osx ā¦Thanks again
If you look into the function of the ārsyncā command you may find that it is relatively simple to copy the parts you want to keep between the 2 directory trees. You could use the file manager to see what is in the duc directory that you want to move then also use the file manager to copy or move those files/directories as you see fit. Or you could copy them over using the cli and rsync. There are many ways to do that, depending upon what you are comfortable with.
hey, actually i just used āsudo chown -R luc:luc /home/theducā and was able to go thru the files of theduc and copy /paste what i wanted .Thanks a lot . Now cani ask you how i can erase theduc user folder/account as i donāt need it anymore ? but already thanks a lot, again if it doesnāt put in danger that pain in the aā¦ nvidia driver configuration
Once you are certain you need nothing else from that directory the command sudo rm -rf /home/theduc
will remove the entire directory and remaining content. Verify that you have made no typos before pressing āenterā since that command will run without asking for confirmation and WILL remove everything under that path.
i did it, reboot and everything seems to be ok, thanks again. i donāt want to use too much of your time , but since last time i updated the system it messed up the nvidia driver settings , bringing back the nouveau driver , can you direct me to a tuto where i may find a way to be able to update my system while iām keeping the nvidia driver ?
Your struggle with user folders is not uncommon for new users. You may want to have a look at Linux Command. Colleagues new to linux have found it to be a reliable and useful resource.
There are many ways to install Nvidia drivers, so you need to tell us where you got the one you are using. If the Nvidia driver isnāt installed correcly, the nouveau driver will be used. This is one of the most common issues in this forum, so a search with details of your driver (where you got it, version) should get you going. If you donāt find an existing solution, please start a new thread to minimize confusion and make it easier for others with the same problem to find a solution.
Related to the nvidia driver.
Please post the output of dnf list installed \*nvidia\*
As noted just above, installing the nvidia drivers from various locations can be problematic so we need to know how it was installed and from where to resolve the stated issue.
A new thread related to nvidia is recommended.
As already noted, this really should be a new thread for the nvidia problem.
With that said, it seems you are one release behind the latest nvidia drivers. The most recent is version 550.67.
Please do a full update using sudo dnf upgrade --refresh
and wait at least 5 minutes after that completes before you reboot. If the nvidia drivers are still a problem after that then open a new thread for the nvidia issue. You may also wish to add sudo dnf install xorg-x11-drv-nvidia-cuda
for the cuda drivers needed for certain apps that use the gpu.