similar to: Re: Samba - root preexec & login scripts

Displaying 20 results from an estimated 6000 matches similar to: "Re: Samba - root preexec & login scripts"

2002 Oct 28
2
root prexec/postexec & login scripts
I have a perl script that I'd like to use to create windows 9x login scripts at login time but I cannot get the process to work right. I have RedHat 7.3 (actually the k12ltsp v2.1.0 which is a modified RH7.3) set up as a domain controller which is working well. Manually created login scripts run fine on the workstations at login. I'm using a netlogon script I found at
2002 Jul 16
0
local/domain master browser
I hope this isn't too confusing, but I'm confused so... We have four boxes on our network (at least that I'm primarily concerned with). A Samba v2.2.5 PDC (linuxts1), one windows 98 workstation (kmorris), and two Samba workstations (jvan v2.2.3a & mrambo v.2.2.2). We're having browse problems on the network. The server is set up to be a domain & local master, the wins
2001 Nov 29
2
Odd preexec/root preexec behavior
Running Samba 2.2.2, having troubles with preexec when it involves the path parameter: Log on to the samba server as kris, user "users". %U expands to kris, %G expands to users. [profile] path = /data/profile/%U preexec = /bin/mkdir -m 700 /data/profile/%U writable = yes create mode = 0600 directory mode = 0700 This fails to work, Samba reports that it could not
2016 Oct 30
4
Auto Create Home - shadow_copy2 and root preexec
Hi, I make use of shadow_copy2 and root preexec. The vfs root preexec is responsible to auto create home directories which initially don't exist. The script behind it is well tested and works perfectly. Unfortunaltely shadow_copy2 seems to be called before root preexec and fails due to the missing ZFS home share which causes the session to fail completely before root preexec even has a
1999 Oct 20
3
Preexec and smb.conf
Hi Steve, And thanks for your answer. Unfortunately it does not solve my problem. What I?m trying to do is to create two dirs using preexec in the same service. It works well as long as I?m only creating one directory, what I can?t figure out is how to create the second directory withing the same service. Eg. How would I continue after the last "fi" in the script to check for the second
2004 Oct 13
1
root preexec script runs twice
Hi. I'm tesing Samba 3.0.7-a on Debian Sarge with Debian kernel 2.6.8. I am working on auto-creation of logon scripts, & am using a root preexec on the netlogon share for this. In testing I have passed the user ID to the script, and have used echo to test output. The netlogon service parameters and other info are below. The output from the script occurs twice in the output file,
1999 Oct 19
2
Preexec and multiple commands
Hi, I am trying to create two directories using the preexec command but I must be missing something very simple. I just can?t figure out the syntax. How would I continue this so that I could create dir2? preexec = if [ ! -e /home/%U/dir1] then /bin/mkdir /home/%U/dir1; fi Regards Robert ----------------------------------------------------------
2015 May 18
2
preexec and msdfs proxy
On 18/05/15 07:36, Daniel M?ller wrote: > Msdfs proxy is pointing to another instance of samba servers, it passes > through. > I think running preexec there on the other instance will do the trick. > > Greetings > Daniel > > > EDV Daniel M?ller > > Leitung EDV > Tropenklinik Paul-Lechler-Krankenhaus > Paul-Lechler-Str. 24 > 72076 T?bingen > Tel.:
2004 Jul 31
1
failure running an at job from a root preexec
Hi folks, I'm having a problem queuing an 'at' job from a root preexec. I have a shell script which queries LDAP for per-user quota information and sets the local filesystem quotas accordingly. This runs, and runs fine, out of the root preexec on our users home share. But we bin running a server with broken quotas for a while, and had to turn quotas off. We're ready to try
2002 Jul 25
2
need help with preexec
Hi all I wanted to send a message to users when they are mapping, to migrate to different samba server I am assuming preexec will do this, users are w2k clients, i would like w2k clients to get a message, like a popup windows box with message once they map to thier unix home directory how would i do that, does preexec will help me here thanks
2015 May 28
2
preexec and msdfs proxy
One more time: root preexec does: run a command or script if the user hit the share. Now with msdfs proxy it need to be run on the linked host that carries the share. So you are better to set root preexec on the share of the linked host. I think there is no other way. Server1 [sharepointtoserver2] msdfs root=yes msdfs proxy =\server2\shareonserver2 Server2 [shareonserver2] Root
2015 May 16
2
preexec and msdfs proxy
Hi, I was wondering if someone had any thoughts as to why "preexec" doesn't fire when "msdfs proxy" is used? Thank you, Greg Enlow -- Greg Enlow grenlow at hk.mailbox.de On 13 May 2015, at 11:18, Greg Enlow wrote: ok ok ... Names have been changed to protect the inoccent. This installation is being used to mitigate a server migration by providing read-only access
2004 May 12
2
preexec script problem
hi all i'm running into a little problem when using preexec scripts for the creation of dir's on my samba server.... script --- #! /bin/sh name=`getent passwd | grep %U | awk -F: '{print $5}'` mkdir /samba/test/"$name" --- snip of smb.conf --- [test] path = /samba/test preexec = /root/script browseable = Yes writeable = Yes
2005 Jan 17
1
preexec
hello, in first sorry for my poor english i use this script to test if a user is already connected. #!/bin/bash resultat=$(/usr/local/samba/bin/net status sessions |grep $1 | awk '{print$2}') if [ "X${resultat}" == X ]; then exit 0 else exit 1 fi in the smb.conf i add these lines : [home] root preexec = /usr/local/samba/bin/check-session %u root preexec close = yes
2015 May 12
2
preexec and msdfs proxy
On 12/05/15 20:27, Greg Enlow wrote: > To the powers the might be, > > it seems that the "(root) preexec" function does not work when used with "msdfs proxy". Is that just "my" problem, an error or by design? > If it is by design, I would be curious to know why. > If it is an error, can it be addressed fairly quickly? > If it is none of the above,
2015 Oct 21
1
Can't get 'root preexec' to run
Maybe I finally figured it out. I found that sentence "For example, the [test] and [homes] sections are unique disk shares; they contain options that map to specific directories on the Samba server." here: https://www.samba.org/samba/docs/using_samba/ch06.html Does that mean that this "preexec" in the [homes] section is not invoked if the user is accessing his or her home
2001 Nov 01
1
preexec and netlogon scripts
I would like to know whether under battle conditions (lots of users trying to log in simultaneously at the start of a lesson) I can rely on a client's preexec script completing its output operations before the client gets its login batch file. I am a school network mamager with about 1000 teenage boy users of a new (to all of us) Linux-Samba server. (SuSE6.4 and Samba 2.0.10) I have pre- and
2020 Feb 19
2
preexec with win 10
Sorry for the english :) Good morning, i've a little network with samba 4.2 on centos 6, NT style domain and win7 client. I've a root preexec and root postexec for tracking logon and logoff to the share. root preexec = /usr/bin/log_access.php "%L" "%U" "%G"? "%S" "%I" "%m" ON root postexec = /usr/bin/log_access.php
2015 Oct 20
5
Can't get 'root preexec' to run
Looks like my nfsv4 kerberos and root access problem. In that case, root didnt have a kerberos ticket, and was not allowed to access the needed folder. I think this is a bit the same. Creating the users and profiles shares from ADUC is working fine for me but not scripted from user root. Greetz, Louis > -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at
2018 Jul 25
1
smb.conf root preexec ?
> Subject: > Re: [Samba] Samba AD domain member and home directory creation > From: > Denis Cardon <dcardon at tranquil.it> > Date: > 09/02/2017 19:07 > To: > Dario Lesca <d.lesca at solinos.it>, Samba List <samba at lists.samba.org> > > Hi Dario, > > > On a Centos 7 minimal fresh install I have follow this howto: > > > >