<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.2">
</HEAD>
<BODY>
I know this was a while back, but I was just attempting to do this with the same setup. I noticed that this only works on users that have already logged into the K12LTSP server before. What about new users to the server? It doesn't put icons there. And I also made similar changes to the remove script but it doesn't seem to work. Any thoughts on those? Thanks.<BR>
<BR>
Levi<BR>
<BR>
On Sat, 2007-04-07 at 10:45 -0500, Peter Scheie wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Ah, I think I see the problem.  The push-icons-to-users-desktops script </FONT>
<FONT COLOR="#000000">gets the list of users by parsing /etc/passwd (line 41 in the script); </FONT>
<FONT COLOR="#000000">but in your case, your /etc/passwd doesn't contain any user info because </FONT>
<FONT COLOR="#000000">that's all stored in the Windows AD.  Fortunately, it sounds like you </FONT>
<FONT COLOR="#000000">can get a list of all your users by just looking at all the directories </FONT>
<FONT COLOR="#000000">in /home/domain, right?  Assuming so, try making two modifications: </FONT>
<FONT COLOR="#000000">First, comment out line 41 and replace it with this:</FONT>

<FONT COLOR="#000000">for i in $(ls /home/domain/)</FONT>

<FONT COLOR="#000000">Second, add this line after the 'do' command on line 42</FONT>

<FONT COLOR="#000000">U=/home/domain/${i}</FONT>

<FONT COLOR="#000000">So, the end result should look like this:</FONT>

<FONT COLOR="#000000">...</FONT>
<FONT COLOR="#000000"># find all of the subdirectories under /home</FONT>
<FONT COLOR="#000000">## getent passwd | cut -d: -f6 | while read U</FONT>
<FONT COLOR="#000000">for i in $(ls /home/domain/)</FONT>
<FONT COLOR="#000000">do</FONT>
<FONT COLOR="#000000">  U=/home/domain/${i}</FONT>
<FONT COLOR="#000000">         # copy new-style Desktop</FONT>
<FONT COLOR="#000000">  if [ -d "$U"/Desktop/ ]; then</FONT>
<FONT COLOR="#000000">  ...</FONT>

<FONT COLOR="#000000">and so on.  Try this and let us know what happens.</FONT>

<FONT COLOR="#000000">Petre</FONT>




<FONT COLOR="#000000">Karen Bailey wrote:</FONT>
<FONT COLOR="#000000">> Petre,</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> The home directory is on the k12ltsp server.  It is under in a folder</FONT>
<FONT COLOR="#000000">> under home with the domain name. ie. /home/domain/users home directories. </FONT>
<FONT COLOR="#000000">> Any help on this would be greatly appreciated.  Karen Bailey</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Does the user's home directory live on the k12ltsp server or on the</FONT>
<FONT COLOR="#000000">> Windows server?</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Petre</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Karen Bailey wrote:</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> We are using samba, kerberos and winbind with k12ltsp 6.0 to authenticate</FONT>
<FONT COLOR="#000000">> to a Windows 2003 active directory server.  When setting this up one of</FONT>
<FONT COLOR="#000000">> the steps is to create a folder in the home directory with the name of the</FONT>
<FONT COLOR="#000000">> domain.  The process works well for authentication but now I can't use the</FONT>
<FONT COLOR="#000000">> push icons out to desktops script because it only puts the icons in the</FONT>
<FONT COLOR="#000000">> home directory.  I have tried to edit the scripts path pointing to the</FONT>
<FONT COLOR="#000000">> domain folder but I have been unsuccessful.  Has anyone had a problem like</FONT>
<FONT COLOR="#000000">> this and if so how do you get around it?</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Karen M. Bailey</FONT>
<FONT COLOR="#000000">> Software Support Specialist</FONT>
<FONT COLOR="#000000">> Merrimack Valley School District</FONT>
<FONT COLOR="#000000">> kbailey mv k12 nh us</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Karen M. Bailey</FONT>
<FONT COLOR="#000000">> Software Support Specialist</FONT>
<FONT COLOR="#000000">> Merrimack Valley School District</FONT>
<FONT COLOR="#000000">> <A HREF="mailto:kbailey@mv.k12.nh.us">kbailey@mv.k12.nh.us</A></FONT>
<FONT COLOR="#000000">> </FONT>

<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">K12OSN mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:K12OSN@redhat.com">K12OSN@redhat.com</A></FONT>
<FONT COLOR="#000000"><A HREF="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</A></FONT>
<FONT COLOR="#000000">For more info see <<A HREF="http://www.k12os.org">http://www.k12os.org</A>></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>