LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2001, 07:38 AM   #1
godwin_73
LQ Newbie
 
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16

Rep: Reputation: 0
samba question


I am newbie.I want to know which script logs the netlogon details for individual user and systems.Can we edit the file ????.
I want to throw a simple message when the user logs on to the server through his window username and password.Please suggest me the best way.
I am able to run a small batch file which set the server time to the system.Its working properly.Along with this batch file I want to give a small welcome message in a small message box saying hello <user name>.when his system boots.
I am able to throw a simple message through telnet.But I want to try this option along with the batch file.
 
Old 12-17-2001, 07:51 AM   #2
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
You can run a batch file for each user by setting the logon script in smb.conf to %U.bat, then have that file call a common.bat, this way each user has their own login and you can maintain common mappings and settings in one file.

The commands in the batch file are windows commands, not linux so you can write a program in vb, c, whatever and run it from the batch file to popup a welcome splash screen. You'll have to put this in each users batch file if you want thier name displayed because you can use the username variables in your batch scripts.
 
Old 12-19-2001, 03:11 AM   #3
godwin_73
LQ Newbie
 
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16

Original Poster
Rep: Reputation: 0
how ???

thanks for the reply.I am able to use a small ".bat" file which sets the server time to window98 machines when it starts.
net time \\servername /set /yes

Those who log to the sever,the scripts sets the server time to the local machine.If you have the scripts to throw a window from the batch file please post me.
How will I send the username variable from batch file to other file.
 
Old 12-19-2001, 03:58 AM   #4
ratface
LQ Newbie
 
Registered: Dec 2001
Location: Wiltshire UK
Distribution: SuSE 7.2 / Slackware 8
Posts: 25

Rep: Reputation: 15
assuming you are using a windows client

just add

echo hello %username%

to the batch file before the net time line, if you want to run an additional program from a batch file just add

call path\program.exe

and use the %username% in the other program, you could always use 'set' in the login script to carry variables forward


Last edited by ratface; 12-19-2001 at 04:03 AM.
 
Old 12-20-2001, 11:52 PM   #5
godwin_73
LQ Newbie
 
Registered: Nov 2001
Location: chennai,India.
Distribution: linux6.2 & 7.1
Posts: 16

Original Poster
Rep: Reputation: 0
thanks guys

thanks to te_conway and ratface for you support.I am working out.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba question Ryknow215 Linux - General 3 02-23-2004 06:11 PM
Samba question Marklar Linux - Networking 30 01-02-2004 03:44 PM
A Samba Question? gsmonk Linux - Networking 2 08-20-2003 09:14 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration