Skip to content

Commit a2b241b

Browse files
committed
Sets default home directory for new users
Updates the user creation command to always set the home directory to /home/sof for new users, ensuring consistency in user environments. Signed-off-by: Christopher Turner <christopher.g.turner@intel.com>
1 parent 055270f commit a2b241b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/sudo-cwd.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ exec_as_cwd_uid()
4949
getent group "$cwd_guid" ||
5050
sudo groupadd -g "$cwd_guid" 'cwd_group'
5151

52-
sudo useradd -m -u "$cwd_uid" -g "$cwd_guid" "$cwd_user"
52+
# Always set home directory to /home/sof for the new user
53+
sudo useradd -m -u "$cwd_uid" -g "$cwd_guid" -d /home/sof "$cwd_user"
5354

5455
local current_user; current_user="$(id -un)"
5556

0 commit comments

Comments
 (0)