Questions tagged [home-directory]
A home directory (or "home folder" on Windows and Mac OSes) is a file system directory on a multi-user operating system containing files for a given user of the system.
156 questions
1
vote
1
answer
129
views
Are there any Linux systems where the home for root is not /root?
I am looking at a script and it contains these two lines:
HOME="$( grep ^root: /etc/passwd | awk -F ':' '{ print $6 }' )"
export HOME
This of course loads the variable named HOME with /...
0
votes
1
answer
38
views
How do you upgrade linux without harming /home directory?
I have a laptop with windows11 installed on it. Since it was giving me problems with dual boot, I installed linux and grub on an external 256GB USB hard disk. This way, I see the grub menu only when I ...
0
votes
1
answer
716
views
freeipa server home directory automount
I have installed freeipa-server on centos and enrolled an ubuntu server to it, I have a freebsd server which is our storage server(I am going to enrolled the freebsd (storage server) to this freeipa-...
0
votes
1
answer
99
views
Home directory, user database and key-based authentication
I want to share it NFS share with my users just like the home-directories (traditional way), but I don't want to create the users instead I want to get the server integrated with the github or google ...
1
vote
0
answers
1k
views
How to set up remote home folders on Ubuntu 22.04 using CIFS
I'm trying to set up remote home folders for Ubuntu 22.04 workstations. These workstations are joined to an AD domain using sssd and krb5, and users sign in using their AD credentials. I'm also using ...
1
vote
1
answer
919
views
Create shared folder as active directory would in powershell
With Active Directory I can manually create new users. Every time I do that, I use right click -> Copy on that user, then I modify some things like Name, Surname and SamAccountName. This process ...
0
votes
0
answers
62
views
Issue adding space from /home to /var with ext4 fs debian 11
My /var is full on 9.1GB and I need to increase space to 100GB from /home that has 1.4TB. When I run fdisk it keeps giving me the same default amount of space (9.1GB). Is the another way of adding ...
0
votes
0
answers
232
views
PHP NGINX not working on a Subdomain
I have a Sub Domain"
ad.example.com and I am trying to install a CMS and it get stuck at install.php with a 404 not Found error
server {
access_log /var/log/nginx/ad.example.com.access.log;
...
2
votes
2
answers
3k
views
How can I set specific directory for different users in proftp?
Currently, when user A logs in proftp, he comes at his home directory /home/A, when user B logs in proftp, he comes at his home directory /home/B. I want to let user A come at /dir1 and let user B ...
0
votes
3
answers
1k
views
Deleted my Home folder now I cant remotely connect via SSH
I accidentally deleted the Home directory with sudo rm -r ~, when I try reconnecting the ssh returns
ssh -v key.pem ec2-user@PublicIP-address
ec2-user@PublicIP-address: Permission denied (publickey,...
5
votes
3
answers
3k
views
User directory does not exist when logging in via ssh to a Synology NAS
On a Synology NAS with DSM 7.0 I have created through the Graphical UI a dedicated admin user (as recommended in Synology's setup procedure), then I have enabled ssh login and now I can ssh into the ...
0
votes
3
answers
3k
views
Prevent user from seeing list of other user's home dir
I want to prevent a user from seeing a list of home directory(of other users). By default, a user can not access other user's home dir but can find another user's home dir like below:
[opc@instance-...
0
votes
0
answers
792
views
CentOS 7 PAM / LDAP SSH/LOGIN user does not start in his home directory
On a CentOS 7 machine, users can use their LDAP credentials to connect to my servers.
The first time they do this, the pam_mkhomedir is doing its job well. The user's folder /home/jdoe is well created ...
5
votes
2
answers
6k
views
Why is the root home directory, /root not in /home? (looking for reasons other than /home is mounted on a different drive)
i know that one reason for /root not being in /home is that usually /home is mounted on a different disk and if it were to fail, we still want root to be accessible. What are some of the other reasons ...
0
votes
1
answer
1k
views
Create User active directory Bulk and home folder for user but folder Not Created
all
I am trying to create a user with Active Directory and home folder automatically using bulk files and csv but when the user is done I check the user profile it redirects every user's home folder ...
1
vote
1
answer
352
views
Openldap and nfserver, both work although /home/user cannot be created unless I log into the nfserver first with new ldapusers
I have an openldap server I set up on cent os 7. I blended it to work with all my other VMs that mount a nfs mount from a nfs server for their /home.
I just figured out that if I create a new ldap ...
1
vote
1
answer
517
views
Docker - User and SSH issue
I am creating a docker container that will host a web app. The container is an ubuntu18.04 vm with a flask app + gunicorn running. I am trying to configure ssh but something wonky is going on.
In my ...
0
votes
0
answers
111
views
Add user home directory depending hostname
Is it possible to add a list of users and change the home directory of each user depending on the host name of the server?
Thanks in advance
0
votes
1
answer
204
views
I can't access my account after unmounting my home directory and doing lvremove (centos7)
I do not have an IT background. I am working things out on my own, so I would really appreciate your help on this as I am in a panic at the moment.
I wanted to increase the size of my /home directory (...
2
votes
2
answers
3k
views
NFS server with out of memory
I have multiple machines sharing home directory via NFS share used by
6-10 users. All machines are used to run computational experiments including
the one with NFS server. Although it is very rare but ...
5
votes
1
answer
194
views
Override template homedir on FreeNAS 11.3 joined in Active Directory
I've joined a FreeNAS 11.3 in an Active Directory and everything works as expected. But one feature that I'm really missing is some kind of override on mapped home directories for users.
By default ...
0
votes
1
answer
1k
views
AWS EC2 Linux restrict SFTP user to their home directory when users connect from WinSCP
I'm working on a solution to restrict the user to the home directory or a specific directory.
I need to restrict a user for below scenario,
we have multiple Wordpress installation in webroot /var/www/...
1
vote
2
answers
4k
views
Modify new user home directory permissions with powershell
I am needing assistance with a script. What I am trying to accomplish is when new users are created in ADUC and their profile path(home folder) is created, it gives the users "Full Control". I am ...
0
votes
3
answers
6k
views
What should the home directory of a non-interactive user account be set to?
[root@Acheron ~]# systemctl status shadow
● shadow.service - Verify integrity of password and group files
Loaded: loaded (/usr/lib/systemd/system/shadow.service; static; vendor preset: disabled)
...
2
votes
0
answers
928
views
Samba 4.8.3 homedirs can only be mapped and accessed if other = rwx
Problem:
user1 can map 6 shares normally. Another share, homedir, is mapped
but gets the error message that "Windows cannot access \samba\homedir:
You do not have permission to access \samba\homedir."...
3
votes
0
answers
339
views
How to mount windows "downloads" folder on a vhdx file
I'd like to know how I can mount a vhdx image as %userprofile%\Downloads folder in windows 10.
When I use the 'disk management' tool it doesn't let me click 'ok' when I've selected the 'downloads' ...
0
votes
1
answer
564
views
Can't ssh through user with mounted via sshfs home dir
There are 2 users on machine#0: user#0 and user#1. I can mount the desired dir from user#0 on machine#0 executing:
sshfs user@hostname:/home/folder /home/folder
The thing is that /home/folder has ...
2
votes
2
answers
18k
views
Could not chdir to home directory /home/Me: No such file or directory
On a daily basis, I interact with 10s of productions servers which do not, and should not have a home directory for my personal user.
Every SSH session is met with the same error message:
Could not ...
1
vote
1
answer
1k
views
Linux Cluster with LDAP, automatically and simultaneously creating homedir on multiple machines
I'm setting up a computer cluster of (20+) machines, I have a working central ldap server for authenticating users and keeping GID and UID synced across the cluster.
One machine acts as a head node, ...
0
votes
1
answer
10k
views
How exactly does mapping a home folder via AD work?
In a 2012 R2 environment, how does mapping a home folder via Active Directory using the "Connect:" box on the profile tab work? I'm not referencing or concerned about GPO, this is only for AD mapping. ...
1
vote
0
answers
29
views
Space used by /home does not match df -h [duplicate]
I am seeing a big constant increase in the space amount taken in the /home directory
df -h says:
Filesystem Size Used Avail Use% Mounted on
/dev/md2 127G 52G 70G 43% /home
However,...
1
vote
1
answer
7k
views
How to autocreate home directories in automounted NFS directory?
I have a NFS server at nfs.example.com:/users. I have a normal server at client.example.com. When I do su - user, I want it not only to automount /users/user, but I also want to create /users/user if ...
0
votes
1
answer
2k
views
Set up nginx + php to serve php files from home directories [closed]
Here is the relevant part of my nginx.conf, which does not work for php files that are located in the home directories of the users:
location ~ ^/~(.+?)(/.*)?$ {
alias /usr/home/$1/www$2;
...
5
votes
3
answers
6k
views
sshfs file writes don't respect UID/GID mapping
I'm mounting my /home directory remotely using sshfs. Since UIDs and GIDs aren't the same on the server and client, I'm using idmap=file. Additionally, because of application requirements, I must ...
3
votes
0
answers
2k
views
SELinux stops pam_oddjob_mkhomedir from re-creating home dirs after deletion
I have a RedHat 7 server which is hooked up to LDAP and is supposed to create home folders automatically. In line with RedHat recommendation I use pam_oddjob_mkhomedir.so. Everything works fine if the ...
1
vote
1
answer
4k
views
Windows Create Domain User's Home Directory Before Login
I am trying to prepopulate a user's home directory before they log in for the first time. I would like to do this programmically. Right now, I can create a the folder, but when a user logs in, it ...
1
vote
0
answers
9k
views
Windows GPO "set user home folder" adds domain name to home folder
I set a GPO to 'Set user home folder', use H: and as path '\fileserver\root\Home'.
This works as expected, but the home folder that created is like this;
\fileserver\root\Home\johndoe.domainname\
...
0
votes
0
answers
139
views
Allow a user to read some other users' home directories - Windows
I have an user - reception with a home directory ("\nas\home") which I want to share it with another user only i.e.: john
I'm looking for a way around of it as we the way SMB home shares are treated ...
1
vote
1
answer
236
views
CentOS - Pubkey Auth doesn't work for user in /var
I've been working through a problem for the past week or so and I am running out of ideas.
I added a new user on my Centos 7 VPS for a git server, and (under the advice of several articles) placed ...
1
vote
1
answer
6k
views
How to change home directory for existing virtual ProFTPD user?
I have my AuthUserFile located at /etc/proftpd/proftpd.passwd. DefaultRoot is ~. This file currently lists a single user (username, password hash, home directory). How do I change a home directory for ...
0
votes
1
answer
35
views
WindowsNT.3.5 domain: location of homes
Context: I am working with a Samba PDC (not AD mode) which emulate a MS NT Server 3.5.
My problem is with the following line on smb.conf:
logon home = \\%L\%U
This line makes users mount a home ...
0
votes
0
answers
1k
views
Home Folder Files Intermittently missing for user
We are having a weird issue that has been ongoing for months where one of our users will have files missing from her Home Folder mapped as H from active directory not show up. The files that don't ...
1
vote
1
answer
6k
views
Change default home dir of user
I want to change the default home directory of a user from this:
User: john
Default home: /home/john
To this:
User: john
Home: /var/www/project/new-home
How could i do that?
What i've tried so ...
2
votes
2
answers
4k
views
How do I set up home folders for users automatically without roaming profiles?
I have a Windows Server 2012 VM running as my domain controller, and another Server 2012 VM instance that is my file server.
On my NAS, I used to be able to create a user, and the NAS would ...
21
votes
2
answers
3k
views
HALP! I've inherited a permissions nightmare for redirected folders/home directories
My new employer has folder redirection setup for its hundreds of users, and the person who set it up didn't really know what he was doing. As a result, the best practices for permissions on ...
2
votes
3
answers
28k
views
Unable to create Home Directory for LDAP Login
I have linked my server with LDAP for ssh login. I get the Following error while logging in using ssh.
Could not chdir to home directory /home/ldap/sharukhk: No such file or directory
shahrukh@...
4
votes
2
answers
4k
views
Set Windows share as network home for AD-joined Mac users
we've been seriously scratching our heads on this issue for the last few days. It's now time to ask other professionals on possible solutions for this.
The situation and what we're attempting to do:
...
0
votes
4
answers
5k
views
Cannot login to RHEL6 server as any user except root - Says home directory cannot be found and shell permission is denied
As the question above states, I have a RHEL 6 server that is designed for SSH access, with root unable to login through SSH by design. When I am at the server locally I can login as root, but only as ...
12
votes
1
answer
12k
views
Best practice for defining user "HOMEDRIVE" "HOMEPATH" "HOMESHARE"
Is it considered a best practice to map domain users' "HOME" environment variables to a network path? If so, why?
By "HOME" variables, I am referring to:
%HOMEDRIVE%
%HOMEPATH%
%HOMESHARE%
This ...
4
votes
2
answers
4k
views
How to automate directory creation on NFS-Server?
I created and configured a test-environment of 3 virtual machines:
A FreeIPA server which provides krb5-authentication
A NFS-Server using server 1 to secure itself
A client that automounts home ...