search for: preexec

Displaying 20 results from an estimated 966 matches for "preexec".

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 Th...
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...
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 directory and create it if it does not...
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...
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...
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
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 Oct 22
3
Can't get 'root preexec' to run
The next interesting question for me is: If I put '\\server\%username%' into ADUC Windows part (or \\server\username explicitly, for that matter), Samba on 'Ok/Apply' registers the attempt to access a non-existing share and applies the [homes] section (executes 'root preexec'). I tested that. However, the user doing this is the domain admin. So Samba would look that user up and create a new share named like the *domain admin* user - and link it to the local home of the domain admin user (if not specified otherwise). That is not what we want. If I put '/hom...
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.: 07071/206-463, Fax: 07071/206-499 > eMail: mueller at tropenk...
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, then what informati...
2015 May 28
0
preexec and msdfs proxy
Good Morning and thank you for your input. I had and still do understand what both preexec and root preexec do. I had also and still do understand the paths you had explained. I, however, had also already explained on 18 May 2015 15:31:55 CEST why your first solution was _not_ a viable option for us (server2 == NETAPP under warranty). I had also already explained on 21 May 2015 22:41:...
2015 Oct 15
6
Can't get 'root preexec' to run
...eates a short log file in the same dir. However, this section in my smb.conf (on the DC) doesn't seem to execute (no data set created, no log file) on user logon (on a member server): [homes] comment = User Home Directories browseable = no writable = yes root preexec = /usr/local/samba/scripts/createzfshome.sh %U What might be the reason? Is this conflicting with rfc2307 use? My DC's Samba version is 4.2.2 (on CentOS 6.7), my Samba member server (where the logon happens; either via ssh or with FreeNX terminal software) is Version 3.6.23. Is Samba 3 a p...
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, leading me to believe that my script is being run twice...
1999 Apr 15
0
[RETRY] Help with preexec (fwd)
Having received no responses, I will try again. I can't seem to get preexec to work as stated in my earlier email given below. Any help would be most appreciated. I am using samba-2.0.3-19990228 in combination with RH 5.2 with kernel-2.2.1. Thanks, Carey ---------- Forwarded message ---------- Date: Tue, 13 Apr 1999 11:35:03 -0500 (CDT) From: Carey F. Cox <carey@ta...
2015 Oct 20
5
Can't get 'root preexec' to run
...t not scripted from user root. Greetz, Louis > -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Ole Traupe > Verzonden: dinsdag 20 oktober 2015 16:50 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Can't get 'root preexec' to run > > > > Am 20.10.2015 um 11:01 schrieb L.P.H. van Belle: > > You tried the pam module mkhomedir ? > > > > And have your tried : > > root preexec = "/usr/local/samba/scripts/createzfshome.sh %U" > > or > > root preexec = /usr/l...
2015 Oct 21
1
Can't get 'root preexec' to run
...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 dir that is _configured_ on the DC ("known" by the DC), but only if the home dir is actually _located/shared_ there under \\dc\homes? Seems logical now. :-/ So I could put my preexec part under [netl...
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...
2015 May 18
0
preexec and msdfs proxy
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.: 07071/206-463, Fax: 07071/206-499 eMail: mueller at tropenklinik.de Internet: www.tropenklinik.de -----Urspr?nglic...
2015 May 18
0
preexec and msdfs proxy
...the msdfs is pointing is a netapp. Though we theoretically can access the shell on it then begin to mess around there, we would really like to avoid that. Warranty and such make it a bit of a legal issue. That is the reason we went with a separate instance in the first place and now wonder why the preexec doesn't fire. There is nothing in tmp of the msdfs box. Like I asked before, is this by design? If not what can we do to get around playing with underwear of our netapp? Thanks! Sent from my iPhone > On 18 May 2015, at 10:19, Rowland Penny <rowlandpenny at googlemail.com> wrote:...
2015 Oct 20
0
Can't get 'root preexec' to run
You tried the pam module mkhomedir ? And have your tried : root preexec = "/usr/local/samba/scripts/createzfshome.sh %U" or root preexec = /usr/local/samba/scripts/createzfshome.sh "%U" Is the homedir on a NFS mounted dir? Exports correctly set? Greetz, Louis > -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at li...