[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Login possible only with root



I created a new user (student4) with LWAT and I notice that its home
directory HAS BEEN CREATED!
I aspected that the script was going to fail as before but it didn't.
That means the problem was "only" that WAS MISSING THE DIRECTORY TREE
"/skole/tjener/home0/".

I tried to deleted the home direcoty I created manualy for the user
studend1,2,3 and waited the script...
the script didn't recreate the home directories.
That means it doesn't check if the directory exist for each users, but
check only if new users are created.

I removed the users student1,2,3, then I created ather 3 users:
studentA,B;C and waited the script
Aug 29 22:40:01 tjener /USR/SBIN/CRON[11122]: (root) CMD
(/usr/share/lwat/scripts/createhomedir)

It created the directories as aspected
tjener:~# ls -l /skole/tjener/home0/
totale 16
drwxr-xr-x 8 student4 student4 4096 2007-08-29 22:27 student4
drwxr-xr-x 2 studentA studentA 4096 2007-08-29 22:40 studentA
drwxr-xr-x 2 studentB studentB 4096 2007-08-29 22:40 studentB
drwxr-xr-x 2 studentC studentC 4096 2007-08-29 22:40 studentC

After that I deleted the user "student4" (created few minutes ago)
with LWAT and waited the script...the HOME DIRECTORY HASN'T BEEN
DELETED!
I think the script should manage also the home directory deltion
because it can cause BIG CAOS to have home directories of not yet
existing users.

I hope that what I worte can be usefully.

Bye.



Reply to: