Koozali.org: home of the SME Server

Login Scipt works for Admin but not for Users ?

Graham

Login Scipt works for Admin but not for Users ?
« on: March 27, 2002, 05:46:24 PM »
Hi Smithers,

I am starting to think I am going mad here !

Can anyone point me in the right direction ?

I got Login Scripts working fine if I login as Admin

just not for users ?

I have tried creating new users deleting groups addd users etc etc

Thanks !

Geoff Bennion

Re: Login Scipt works for Admin but not for Users ?
« Reply #1 on: March 27, 2002, 07:50:02 PM »
have you changed the users shell away from the sshell ?

( hint : chsh -s /bin/sh username )

Devlyn Davis

Re: Login Scipt works for Admin but not for Users ?
« Reply #2 on: March 27, 2002, 08:16:31 PM »
Check this thread, it may answer some of your questions:

http://www.e-smith.org/bboard//read.php?f=3&i=13626&t=13626

-Dev

Graham

Re: Login Scipt works for Admin but not for Users ?
« Reply #3 on: March 27, 2002, 09:56:23 PM »
Dev,

OK, I started that thread and now have all the info I need on how
to configure the script itself and what files to modify.

I have done that and it works fine - Only for Admin though !

Thanks !

Graham

Re: Login Scipt works for Admin but not for Users ?
« Reply #4 on: March 27, 2002, 09:57:45 PM »
Hi !

I havent done anything any different than last time when
it worked seamlessly !

Thanks !

gs

Re: Login Scipt works for Admin but not for Users ?
« Reply #5 on: March 27, 2002, 11:50:40 PM »
verify netlogon.bat : rw- r-- r-- admin:admin

Graham

Re: Login Scipt works for Admin but not for Users ?
« Reply #6 on: March 28, 2002, 12:18:52 AM »
Thanks - you got there seconds after me looking at chown.

Its working BUT my smb.conf has been updated again by the system.

Now I have to go away and look at custom templates !

Thanks all !

Graham

Re: Login Scipt works for Admin but not for Users ?
« Reply #7 on: March 28, 2002, 01:50:12 AM »
Instructions for custom smb.conf template

(Enables users HOME drive mapping for Netlogon in 9x/NT/2K)

1) Make 3 files with the names / content as below (11logonHome etc)
2) Make a dreictory path /etc/e-smith/templates-custom/etc/smb.conf/
3) Copy the 3 files to that directory
4) Run this command

/sbin/e-smith/ ./expand-template /etc/smb.conf

5) Check over your /etc/smb.conf to see changes !



11logonHome
-----------

{
# users logon home path
# %L substitutes for this logon servers name
# %U is username

return "" unless ($SambaDomainMaster eq "yes");

"logon home = \%L\%U\._winprofiles";

}


-----------


11logonPath
-----------

{
# Where to store roving profiles
# %L substitutes for this logon servers name
# %N substitutes for this servers netbios name
# %U is username
# WinNT/W2K uses logon path
# Win9x uses logon home

     return "" unless ($SambaDomainMaster eq "yes");

     "logon path = \%L\profiles\%U";

}


-----------


11serverString
--------------

{
# server string is the equivalent of the NT Description field

   my $server_string = db_get_prop($confref, 'smb', 'ServerString') ||
                           ' My Linux Server';

   "server string = $server_string";
}


---------------


If there is anything I havent grasped here please feel free to add
comments !

Thanks !

Devlyn Davis

Re: Login Scipt works for Admin but not for Users ?
« Reply #8 on: March 28, 2002, 04:29:51 AM »
===========================================================
OK, I started that thread and now have all the info I need on how
to configure the script itself and what files to modify.

I have done that and it works fine - Only for Admin though !
===========================================================

Doh!  Caught me not paying attention :)

Not sure why it'd only work for admin...What system are you logging in with?  Win98, 2K, XP?

Is the script not working at all or is it just not doing things like mapping home/group drives?  For example, does 'net time...' properly synch the client time with the server?  

Do other users have access to the netlogon share?  When logged in as a normal user try mapping to the netlogon share "net use x: \servername\netlogon"  

-Dev

Lloyd Keen

Re: Login Scipt works for Admin but not for Users ?
« Reply #9 on: March 28, 2002, 03:16:37 PM »
Did you edit the file under Linux? If so you may have corrupted it, try logging into your windows machine as admin and browse to the directory and re-edit the file from windows.

Graham

Re: Login Scipt works for Admin but not for Users ?
« Reply #10 on: March 28, 2002, 10:21:23 PM »
Thanks, yes good point, fell foul of that before (ie Edit in Win NOT Lin !)

Thanks all for contribs, now all is fine !

Devlyn Davis

Re: Login Scipt works for Admin but not for Users ?
« Reply #11 on: March 28, 2002, 10:27:36 PM »
Graham,

Mind if ask what was the final resolution to fix your problem?  (In case I encounter it myself in the future.)


Thanks,
-Dev

Graham

Re: Login Scipt works for Admin but not for Users ?
« Reply #12 on: March 30, 2002, 02:58:18 AM »
As gs' mentioned - somehow netlogon.bat had permissions set.

Dont know how ?

So I used MC to change them like this :-


Owner      Group
RW          R

I didn think i would need eXecute as the bat is being run on client.

Anyways that sorted it out !

Also, the mods to the custom template have worked nicely - Easy
when you know how.

Only thing I havent figured :-

In Daniel Vann Rays CP Add on you could do tests like # i f g
(if group) I would love to know what to modify manually as I cant get
that module working in 5.1.2 (was ok in 4.xx)

Will check out those .exe helpers you talked about (I guess they are
similar to Kickstart)

TTFN

Graham