PDA

View Full Version : [ubuntu] Windows loginscript in ubuntu client?


Asmodision
May 7th, 2008, 02:21 AM
Hi!

Have successfully made my Ubuntu client a member of our company domain and are able to login in with all kinds of users on my machine.
We are using a w2k3 server as a PDC and the last thing I want to work is that when a user logins it should run a login script localized on the windows server.

For examples: //<windows server>/netlogon/loginlinux.sh or something like that. This script would initially only contain network shares and home directories for the users.

So...how do I make samba to understand that this file exists and run it?

With regards
Mattias

superprash2003
May 7th, 2008, 12:17 PM
you could do this..
first mount the drive mount -t smbfs -o username=username,password="" //locationofshfile /local/directory
then you could run the sh file locally by typing sh /local/directory/loginlinux.sh