Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [home]

The /home directory or partition contains user-specific configuration files, caches, application data and media files.

3
votes
2answers
48 views

Persistence of home directory after deleting all partitions and reinstalling:

I was running Ubuntu Server on a mdadm RAID1 volume, and I ran into some problems so I decided to just do a clean install. I booted with Gparted, stopped the mdadm array, and ran --zero-superblock ...
0
votes
2answers
65 views

What kind of language construct is the swung dash (tilde, ~)?

The swung dash can be used in place of the home directory. Depending on the current user it has a different value. In this sense it works like a variable. Yet it is not a variable. I can't do echo $~...
0
votes
1answer
26 views

reusing home directory [closed]

I am using linux mostly for programming in python/go/C++ from vim in a shell. It always takes me sometime to set my environments right when installing a new machine. Any tips on how I can reuse an ...
0
votes
1answer
21 views

Reinstalled Ubuntu, i use separate /home partition, can't launch apps from previous install

I reinstalled Ubuntu after boot broke when updating to 18.10, since i had my home in a separate partition i thought i was not gonna lose my apps, mainly steam and it's games, but the previous apps don'...
1
vote
1answer
46 views

Number of home directories in children of /

I have to count the number of children directories of / that contain one or more home directories. For instance, if john, emily and rick have their home directories in /home/john , /home/emily and /...
0
votes
2answers
37 views

Unable to create tar with xz compression of a directory to another directory

I am trying to create a tar archive with xz compression of my home directory to another non-existent directory, but it gives me error: tar: Cowardly refusing to create an empty archive The command ...
0
votes
1answer
21 views

Why are there two home folders in my Ubuntu 18.04 installation?

I have successfully installed Ubuntu 18.04 along with Windows 10 on my computer (SSD 96GB + HDD 1TB). The SSD drive has two major partitions (excluding recovery and efi): Windows partition (...
3
votes
1answer
664 views

What's the different between with a ~ and without a ~ in a string variable in Bash? [duplicate]

I'm using a dotfile manage software, named dotdrop. Using a config file named .env, contents like: git_folder="~/code/Git". Also use a script to setup this dotfile tool before the first use of it, as ...
0
votes
0answers
11 views

How to stop permissions on data partition being changed on boot?

I have a data partition (ext4 filesystem) that I mount onto /data, with my user account (the one I use across all distros, same username, same uid and in the wheel group) and the wheel group being its ...
0
votes
0answers
97 views

Mounting NFS Directory as Home Directory under /home for Users using PAM.D and PAM_MOUNT

Currently I am trying to mount NFS folder as home folder for my users via pam.d and pam_mount. Unfortunately, when I log into my machine I get stuck in spawn.c with following message: (spawn.c:136): ...
0
votes
0answers
34 views

Where, outside of $HOME if anywhere, might account specific configs be found?

I have a most bamboozling problem. I had a Mint 18 machine with Eclipse Neon. All worked fine. I upgraded to Mint 19 and Eclipse Photon. Suddenly Eclipse is unusable. The exact issue is ...
2
votes
1answer
37 views

how to re-mount a home directory of a specific user to a partition

My system is Ubuntu and there are three users on it. Also, I have some partitions: /dev/sda1, /dev/sda2 and /dev/sdc1. For now the whole /home directory is mounted on the /dev/sda2, the whole root / ...
2
votes
1answer
86 views

sudo -u user bash works but $HOME is not changing accordingly

I'm writing a script to setup new debian install's. The problem is in this code: if [ ! -z "$USER1" ] then sudo -u "$USER1" bash <<-EOF cp "$BASHRC $HOME"/.bashrc wget https://raw....
1
vote
1answer
46 views

Get pwd/cwd with the $HOME variable

If I type pwd, I get: /home/oleg/WebstormProjects/oresoftware/r2g.example what I am looking to do is automatically generate this instead: $HOME/WebstormProjects/oresoftware/r2g.example what might ...
0
votes
2answers
107 views

How to solve $HOME/.dmrc file permission error?

I recently had a problem and here is the solution of it. After following these steps I fixed my problem, but faced another one. On Login window after I enter my password and press Enter, this message ...
-5
votes
1answer
55 views

Deleted a separate /home directory resulting various error [duplicate]

I have installed Kali Linux with the separate /home directory option. Problem is /home directory have larger space, and shortly after I wanted to merge it to my main kali partition. So since I can't ...
0
votes
3answers
56 views

Script to validate home dir

I want to write a simple Bash script which displays the path to the home directory of a user when an actual user name is used as an argument and displays user not found or something when a user name ...
0
votes
1answer
325 views

Recover encrypted /home folder in Linux Mint

I'm trying to recover my personnal folder (/home/userfloflo) from an old installation of linux mint which doesn't boot anymore. I'm trying to retrieve this folder with a linux mint live usb. When i ...
-4
votes
1answer
209 views

unix, adding users to existing directory in centos

I'm trying to add users to an existing directory but I keep getting: useradd: warning: the home directory already exists. Not copying any file from skel directory into it. I want to add users to ...
0
votes
1answer
48 views

Installing a fresh OS on an old /home

I was considering changing from Ubuntu to Kubuntu (I just think it looks pretty!)...I created a separate partition for /home when I set this up so when I install Kubuntu after removing Ubuntu how much ...
3
votes
1answer
73 views

Secure Linux to use in workplace [closed]

I was going to ask this in workplace.stackexchange.com but finally I decided to ask this question here as it's more appropriate. I'm going to a new office and we can't use our own laptops therefore I ...
0
votes
0answers
22 views

Terminal / bash - $HOME is not displayed as ~ [duplicate]

When starting Terminal (bash), my prompt is: user@pc:/mnt/home/stud/user. Executing cd ~ it changes to user@pc:~ and pwd now is /home/stud/user as in getent passwd. I soft linked /home/stud to /mnt/...
37
votes
1answer
3k views

How do Ubuntu and Debian manage $HOME for users with sudo privileges?

I have a bash script myhome.sh containing only one line: echo $HOME The script's owner is a user: $ ls -l myhome.sh -rw-rw-r-- 1 user user <date> <time> myhome.sh In Ubuntu 16.04 and ...
1
vote
1answer
93 views

Encrypted Home Directory Problems/Questions

I usually use full disk encryption but I want to create a Ubuntu server that multiple user can use as a file server (using SSHFS GUI clients) and therefore I want their home directories to be ...
0
votes
1answer
54 views

Why does usermod require root permission to change home dir?

I want to move my home dir. I have read, write and execute access to both the old and new home. Why can't I tell Linux I want my home there instead? I see usermod -m -d /newhome/username username ...
1
vote
0answers
36 views

Home folder freespace filled up by system updater. No files found

I just installed linux mint 18.3 and ran the system updater (I'm new to linux). Before the updates I had about 6.5GB of freespace on my /home partition (I partition 7.2GB at OS install for /home, 30GB ...
1
vote
1answer
32 views

How to pass multiple DB files to locate?

I want to pass multiple DB files to the locate command, like this: locate -d ~/.a_locate.db:~/.b_locate.db: -Ai file_to_find But this gives me this error: locate: can not stat () `~/.b_locate.db': ...
-1
votes
1answer
283 views

PAM Module mkhomedir with an already existing home

I did set up a PAM authentication towards LDAP. It's all working correctly but I have an issue when I have both a local user and an ldap user with the same name but different UID. I'm working on RH6 ...
2
votes
1answer
37 views

Is there a way in Linux to preserve folder size for safety

I want to install a data manipulation solution. The solution is deployed in a folder in home directory. Free space in disk is uncontrollable and can shrink at any moment (other users data). How can I ...
4
votes
2answers
441 views

Can I ssh via public key if there is no home directory on the remote system?

I currently have to ssh with user FOO then sudo to user BAR. I would like to ssh using a public key, but on the remote system there is no home directory for user FOO, so obviously no .ssh/...
2
votes
0answers
83 views

Every time I open a terminal is located in / not in home

I recently installed Fedora -- a fresh installation. I have a problem: every time I open a new urxvt or gnome terminal it starts in the root of the system instead of my home. I checked my /etc/passwd ...
0
votes
1answer
55 views

Read permission other user's home directory

I'm having some issues with users read/write permissions on home directories. I've an user who is allowed to upload data through ftp (let's say ftp_user) and this user has it's own /home/ftp_user ...
0
votes
2answers
1k views

Samba: How to prevent Samba-server from auto-providing users /home-directory as a shared-folder?

Like described here, Samba-servers on Linux provide the users /home-directory as a shared-folder automatically. How can I prevent this behavior? In the following, the directory containing the home ...
0
votes
1answer
406 views

Why permission denied from folder that is a symlink of a home's subfolder?

In my Fedora I have some additional HDD with partition mounted as /media/dilnix/data witch contains the most of my huge files sorted in folders like "Music", "Downloads", "Video" etc. Those folders ...
0
votes
1answer
95 views

Sound not working when mounting on /home

I have a Debian/Windows 10 dual boot system with a shared Data partition that I mount on /home. The problem is: if I mount anything on /home or on /home/$USERNAME, sound does not work anymore. (See ...
-1
votes
1answer
1k views

How do I find the passphrase which encrypts my home directory? [closed]

Years ago I installed Ubuntu and encrypted my home directory. I can still log in as normal, I know my password and I have access to my files. Just now, installing Lubuntu on another machine, I saw ...
0
votes
2answers
41 views

Which package wrote a specific file to ~/.config

How can I find out, which package usually creates a specific file (or folder) in the ~/.config folder? This is important, for developers and distributors, who do not want that two packages write to ...
3
votes
1answer
39 views

Is there a good reason to keep some files in $HOME/.cache when backing up?

I'm about to back up some parts of my filesystem, including my home directory. I'm looking at $HOME/.cache, and wondering what I should do with it. I know that it's safe to just delete it altogether, ...
0
votes
1answer
718 views

How to auto-mount HDD within encrypted /home partition/directory?

My machine has a secondary (NTFS-formatted) internal hard disk drive containing most of my personal files and data. I wish to auto-mount this drive under my user HOME. However, during installation of ...
0
votes
2answers
388 views

Can I userdel a user without removing their home directory?

I did the following: useradd -d /home/iauser -m -s /bin/bash -c "IA User" iauser got this error: UX: useradd: ERROR: Create home directory failed. Operation not applicable It created an entry in ...
2
votes
1answer
1k views

Is there a home directory location for overriding icons?

There are a few home directory locations that complement /usr locations. Files in these locations override their /usr counterparts. For example: ~/.local/bin complements /usr/bin ~/.local/share/...
0
votes
1answer
857 views

How to mount a xfs volume to centOS 7 ec2 instance /home directory

I created t2.medium instance and attached ebs volume to the instance Here are some useful information. sudo pvs PV VG Fmt Attr PSize PFree /dev/xvdb1 vg_home lvm2 a-- <200....
3
votes
1answer
366 views

Determining home dir of a user

I need to know how home directory for a linux user is determined. Everyone's answer would be "hey, look at /etc/passwd and find it out". But this seems not to be always correct. Look at this: $ ...
1
vote
0answers
429 views

$HOME path abbreviation in shell prompt

I changed my username using this instruction and now, in shell prompt current path, I no longer see $HOME to be abbreviated with a tilde as soon as I change directory. For example when I open gnome-...
0
votes
1answer
244 views

What is the user equivalent of the global /opt directory?

I'm wondering if anybody has agreed on a user equivalent of the global /opt directory, for third-party packages that are distributed as a tarball to be unpacked as a single directory. Examples include ...
1
vote
1answer
527 views

How can I keep a already existing home folder in SUSE

I am swiching from Ubuntu to OpenSUSE on my system. And I have two disk on my system in wich is used for home and root. And during the partion setup, the installer prefers to use my largest disk and ...
0
votes
1answer
179 views

How do I get sudo to read my ~/.gemrc file?

I'm using Debian Linux, Ruby on Rails 5 on Apache with Passenger. I crated the file ~/.gemrc gem: --no-rdoc --no-ri However, I'm running the command sudo bundle install and it doesn't seem to be ...
0
votes
0answers
25 views

How do I find the home directory from another installation on a HDD?

I first installed a Raspberry Pi 3 with Raspbian GNU/Linux 7 (wheezy) through Berryboot on a HDD. I made some scripts in the /home/pi folder. Now I reinstalled Raspbian on a USB stick instead, but I ...
1
vote
2answers
306 views

Good way to prevent student from messing program settings in /home/user

I am a teacher and I use Linux which is great! But students are curious about this "new" operating system they do not know and in GUI they tweak program settings which affects hidden files inside /...
0
votes
1answer
96 views

Why will shell automatically close for jailed user with 777 home?

Jailed a user using https://olivier.sessink.nl/jailkit/ on Centos7 sudo jk_jailuser -m -j /home/jail -v -s /bin/bash testing sudo jk_cp -v -f /home/jail /bin/bash Then made /home/jail/home/testing ...