Re: Changing the home directory

2025-01-29 Thread Dan
Further then the -d flag of usermod with or without -m flag, if the constraint of the formal path is not an "expensive" blue mind job you can also investigate the options you have to mount different devices on the home path, and how and when you can do that. Don't say us you are going readonly then

Re: Changing the home directory

2025-01-28 Thread Ingo Schwarze
Hi Tomas, Tomas Rippl wrote on Tue, Jan 28, 2025 at 10:52:27AM +0100: > Ingo Schwarze wrote: >> Why would you do something like that? >> Not sure whether is dangerous, but it doesn't feel useful either. >> I never heard of anybody doing something like that. > This is just part of my effort to le

Re: Changing the home directory

2025-01-28 Thread Ingo Schwarze
Hello Tomas, Tomas Rippl wrote on Tue, Jan 28, 2025 at 10:12:11AM +0100: > I tried to change the user2's home directory from /home/user2 > to /home/user2/MyWD. Why would you do something like that? Not sure whether is dangerous, but it doesn't feel useful either. I never heard of anybody doing s

Changing the home directory

2025-01-28 Thread Tomas Rippl
I tried to change the user2's home directory from /home/user2 to /home/user2/MyWD. I did this by altering the sixth field of /etc/ passwd of this user's record. However, it did not work (user2 still ends up in /home/user2 after login or when I issue su -l user2 while being logged in as user1. I als