Email Server conversion no home directory
Hi; I moved 600 email address over from a Sun Ultra 10, simple.... just edit the passwd and shadow files.... I have also build squirelmail on the system so that we have a web gateway. Now the problem is that since the converted users do not have a home directory SQmail does not function correctly.....the folders view (bar on left) do not have permissions to do any thing. To solve this propblem I need to create a home directory, I try to do this by hand by just creating there directory in the /home directory, it does not work... If I delete the user in yast and readd them it works. I dont want to do this for 600 users. what do I need todo to fix this? I did change the permissions to the home directory and nothen happend Thanks
On Friday 24 September 2004 00:45, suse-list@fresno.edu wrote:
Hi;
I moved 600 email address over from a Sun Ultra 10, simple.... just edit the passwd and shadow files....
I have also build squirelmail on the system so that we have a web gateway.
Now the problem is that since the converted users do not have a home directory SQmail does not function correctly.....the folders view (bar on left) do not have permissions to do any thing.
To solve this propblem I need to create a home directory, I try to do this by hand by just creating there directory in the /home directory, it does not work... If I delete the user in yast and readd them it works. I dont want to do this for 600 users. what do I need todo to fix this?
I did change the permissions to the home directory and nothen happend
Hmm, if there is a possibility that more than one user of those 600 are able to login simultaneously, than you have to create a home directory for each of those 600 users. A piece of cake with Linux's bash scripting. ;) man useradd will tell you how. I suppose this would be probably: U="`grep \"^$LOGIN:\" /etc/passwd | awk -F: '{print $3}'`" G="`grep \"^$LOGIN:\" /etc/passwd | awk -F: '{print $4}'`" NAME="`grep \"^$LOGIN:\" /etc/passwd | awk -F: '{print $5}'`" useradd --non-unique --create-home --uid $U --gid $G --comment "$NAME" $LOGIN Best would be to remove all those accounts you added manually to /etc/passwd and /etc/shadow, and use the useradd command /without/ the --non-unique option. Cheers, Leen
participants (2)
-
Leendert Meyer
-
suse-list@fresno.edu