Sponsored Content
Full Discussion: Login script in samba
Top Forums UNIX for Advanced & Expert Users Login script in samba Post 302260769 by nitin on Friday 21st of November 2008 02:54:28 PM
Old 11-21-2008
AFAIK, domain controllers can execute login scripts. Is your Samba server a domain controller? Samba can do that, look at smb.conf. You can specify login scripts there.
And yes your login scripts can .bat files made/edited on windoze!! Smilie

HTH,
Nitin
 

10 More Discussions You Might Find Interesting

1. Cybersecurity

How to enable samba login for administrator

Hi all, I am trying to enable samba access to administrator. I have added the user, but i am not able to login as administrator. But for other users i am able to login. Can anyone help me out in fixing this. Thank You in advance. (1 Reply)
Discussion started by: kymthasneem
1 Replies

2. IP Networking

Enabling samba login for administrator

Hi all, I am trying to enable samba access to administrator. I have added the user, but i am not able to login as administrator. But for other users i am able to login. Can anyone help me out in fixing this. Thank You in advance. (2 Replies)
Discussion started by: kymthasneem
2 Replies

3. Shell Programming and Scripting

Help on a login script

I am trying to get a script together so when any user logs into the system it will display a message. After the user answers the question based on the answer they will proceed into the system or be logged out. I only want the person to get prompted once per message. Below is what I have in all... (1 Reply)
Discussion started by: gbarnes
1 Replies

4. Shell Programming and Scripting

Login Script

Can anybody help in writing a script that takes username and password and then successfully login onto windows operating system box? For example 1. I have a box A with Linux OS. 2. I have another box B with windows OS. How to login onto boxB from boxA? (3 Replies)
Discussion started by: vinna
3 Replies

5. Linux

Samba login script

Hi, I'm wondering if someone can help me. I've tried searching for my answer for a bit with no luck :( What I have done is setup SUSE as a PDC, able to get Windows client to connect to it fine no problems at all. Thing where I'm getting lost is I want to create a login script for the... (4 Replies)
Discussion started by: woofie
4 Replies

6. Linux

Samba share script

Hi everyone! I'm trying to run a script when a folder is shared and when it stop being shared. Is there something like .start_share or .stop_share scripts in Samba where I could run some commands?:confused: edit: maybe with a wrapper in smbmount but I share folders via nautilus. Any ideas? (0 Replies)
Discussion started by: funyotros
0 Replies

7. Windows & DOS: Issues & Discussions

Script to automatically map samba shares as network drive

Hopefully someone will be kind enough to help me. I have a fileserver acting as a PDC and providing samba shares to a small network. Authentication to the PDC is via LDAP (setup using ebox) The users all have real local accounts on the server. I would like a windows logon script that will:... (4 Replies)
Discussion started by: barrydocks
4 Replies

8. Shell Programming and Scripting

bash script for samba

Hello All,:confused: I want to ask if we can make a bash script that would ask us 'which folder to share and what should be the permissions,share name, valid users and necessary info from us..and make an automatic entry to the smb.conf file.:rolleyes: Thanks! (1 Reply)
Discussion started by: chirag991
1 Replies

9. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

10. Shell Programming and Scripting

Script as login shell (passing args to login shell)

Hello all, for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell. So serverA launches the ssh command to serverB which has a local user with my script as a login shell. Local script works like a charm on his own. serverB$ grep... (20 Replies)
Discussion started by: maverick72
20 Replies
SMBSPOOL(8)						    System Administration tools 					       SMBSPOOL(8)

NAME
smbspool - send a print file to an SMB printer SYNOPSIS
smbspool {job} {user} {title} {copies} {options} [filename] DESCRIPTION
This tool is part of the samba(7) suite. smbspool is a very small print spooling program that sends a print file to an SMB printer. The command-line arguments are position-dependent for compatibility with the Common UNIX Printing System, but you can use smbspool with any printing system or from a program or script. DEVICE URI smbspool specifies the destination using a Uniform Resource Identifier ("URI") with a method of "smb". This string can take a number of forms: o smb://server[:port]/printer o smb://workgroup/server[:port]/printer o smb://username:password@server[:port]/printer o smb://username:password@workgroup/server[:port]/printer smbspool tries to get the URI from the environment variable DEVICE_URI. If DEVICE_URI is not present, smbspool will use argv[0] if that starts with "smb://" or argv[1] if that is not the case. Programs using the exec(2) functions can pass the URI in argv[0], while shell scripts must set the DEVICE_URI environment variable prior to running smbspool. OPTIONS
o The job argument (argv[1]) contains the job ID number and is presently not used by smbspool. o The user argument (argv[2]) contains the print user's name and is presently not used by smbspool. o The title argument (argv[3]) contains the job title string and is passed as the remote file name when sending the print job. o The copies argument (argv[4]) contains the number of copies to be printed of the named file. If no filename is provided then this argument is not used by smbspool. o The options argument (argv[5]) contains the print options in a single string and is currently not used by smbspool. o The filename argument (argv[6]) contains the name of the file to print. If this argument is not specified then the print file is read from the standard input. VERSION
This man page is correct for version 3 of the Samba suite. SEE ALSO
smbd(8) and samba(7). AUTHOR
smbspool was written by Michael Sweet at Easy Software Products. The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy. Samba 3.5 06/18/2010 SMBSPOOL(8)
All times are GMT -4. The time now is 01:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy