--- Provisioned User ---
### A "new" user appears in the check user run with
### files in that users /u0/users directory,
### but ckuser reports as this example shows...
### The user csaxby1 was one I found on a run of the checker.
ckuser.bash csaxby1
=============================
ls -ld /u0/users/csaxby1
drwxr-xr-x 6 csaxby1 domain-users 76 Jan 27 14:11 /u0/users/csaxby1
=============================
df -hT /u0/users/csaxby1
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/ol_rhel7lamp-root xfs 145G 126G 20G 87% /
=============================
egrep -w -n csaxby1 /etc/fstab
=============================
egrep -w -n csaxby1 /etc/mtab
umount /u0/users/csaxby1; ls -ld /u0/users/csaxby1; mount /u0/users/csaxby1; ls -ld /u0/users/csaxby1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
### A directory was provisioned but the proper entry in /etc/fstab DNE.
### So what to do?
cd /usr/local/bin
vi ckthese # delete any in the file, then addthe new user.
### Run the command below and you should see output like this:
[root@harveyv bin]# ./CKUSERS-AD_file.bash ckthese
=================================
USER - csaxby1 ################
objectGUID:: BW6KSPf0lU6BJQQWivfJYA==
uid: csaxby1
msSFU30Name: csaxby1
msSFU30NisDomain: BU
uidNumber: 100952830
gidNumber: 100000
unixHomeDirectory: /u0/users/csaxby1
loginShell: /bin/bash
bnumber: B00952830
=================================
### Now this user needs the proper entries made,
### but the user directory was created in /u0/users
## So files that were created need to be saved ...
cd /u0/users
mv csaxby1 0.csaxby1
cd /admlocal
vi newuserlist.txt # delete any previous entries and add the new user
./RunNewUserAdd.bash newuserlist.txt student
Tue Jan 28 06:50:29 EST 2025
./RunNewUserAdd.bash: /admlocal/CheckNewUserList.bash newuserlist.txtdos2unix: converting file newuserlist.txt to Unix format ...
4918 curusers
1 newuserlist.txt
0 newuserlist-d.txt
1 newuserlist-u.txt
4920 total
Tue Jan 28 06:50:29 EST 2025
./RunNewUserAdd.bash: /admlocal/AddNewUsers.bash studentTue Jan 28 06:50:29 EST 2025
./RunNewUserAdd.bash SetNewUsers.bash student >> LOG/2025-01-28-1738065029-student-SetNewUsers.run 2>&1student
Check the LOGS in /admlocal/LOG for files 2025-01-28-1738065029-*
--- -- ---------------------------------------------------------------
/admlocal/mountnewusers.sh to mount the users windows share.
--- -- ---------------------------------------------------------------
/admlocal/chownnewusers.sh to check user(s) is/are valid.
--- -- ---------------------------------------------------------------
/admlocal/mountnewusers.sh; /admlocal/chownnewusers.sh; /admlocal/dfnewusers.sh
-------------------------------------------------------------------------------
Tue Jan 28 06:50:29 EST 2025
sh -x /admlocal/mountnewusers.sh
+ mount /u0/users/csaxby1
sh -x /admlocal/chownnewusers.sh
+ cd /u0/users
+ chown csaxby1:domain-users
+ ls -ld csaxby1
drwx--x--x 2 csaxby1 domain-users 0 Oct 7 15:22 csaxby1
### Now move the files that user created into a properly generated account.
cd /u0/users
cd csaxby1
ls -ltra ../0.csaxby1
mv ../0.csaxby1/* .
ls -l
total 16
-rwxr-xr-x 1 csaxby1 domain-users 10277 Oct 7 18:30 Basys_3_Master.xdc
drwx--x--x 2 csaxby1 domain-users 0 Jan 27 13:55 CS212
-rwxr-xr-x 1 csaxby1 domain-users 3925 Oct 7 18:53 top.vhd
### Whats this! More files then what were in the provisioned account!
### This often occurs. The BUShare existed but he was not reported to
### me as a new HarveyV user.
### Bit of cleanup
cd /u0/users
ls -ld 0.csaxby1
drwxr-xr-x 5 csaxby1 domain-users 64 Jan 28 06:58 0.csaxby1
rm -rf 0.csaxby1
### Now confirm this user was created correctly.
cd /admlocal/UTILS/CHECKMOUNTS/
./rmlastrun.sh
/admlocal/UTILS/CHECKMOUNTS/CkMountRelated-noemail.bash
Jan 28 2024
${uOucount} -eq ${fstabcount} ${uOucount} -eq ${mntusers}
4916 -eq 4916 4916 -eq 4916
TotalCnt = 4916
Good Run