Displaying 20 results from an estimated 20000 matches similar to: "Odd preexec/root preexec behavior"
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
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,
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 Oct 30
1
Re: Samba - root preexec & login scripts
Last night at home, and on a second system today at work, I tried
putting in the sample preexec statement contained in the smb.conf man
page to check it's effect on the domain logons. Just like the preexec
for the perl script it kills domain logons. As that script is right in
the smb.conf man page I'd certainly expect that to work.
As one final shot at this I'll post my smb.conf for
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
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:
> >
> >
2020 Apr 29
3
how to use root preexec on user share with %U not as root user
Hello everybody,
I am trying to get samba 4 to make a user dir without the use of ADUC to
set the homeDirectory, but with samba-tool user create only.
I created a root preexec but the %U is filled with root and not the
username of the user.
I need to user [users] and not the old [homes] because I got a GPO for
redirection to the //server/users/%USERNAME% and I need this folder to
be created
2015 Oct 21
4
Can't get 'root preexec' to run
Hi,
On 10/21/2015 01:21 PM, Rowland Penny wrote:
> I am now beginning to think it doesn't work at all, if samba4 is
> involved in any way. I knew that it wouldn't work on a DC (probably
> because the user is DOMAIN\username and not just username), but from my
> experiment (see my earlier post) it doesn't seem to work at all, try
> your setup with '[home]' and a
2020 Apr 30
2
how to use root preexec on user share with %U not as root user
On 2020-04-30 10:12, Rowland penny via samba wrote:
> On 30/04/2020 00:25, Jelle de Jong via samba wrote:
>> Hello everybody,
>>
>> I am trying to get samba 4 to make a user dir without the use of ADUC
>> to set the homeDirectory, but with samba-tool user create only.
>>
>> I created a root preexec but the %U is filled with root and not the
>>
2015 Oct 21
1
Can't get 'root preexec' to run
On 21/10/15 13:30, Rowland Penny wrote:
> On 21/10/15 12:41, mourik jan heupink wrote:
>> Hi,
>>
>> On 10/21/2015 01:21 PM, Rowland Penny wrote:
>>> I am now beginning to think it doesn't work at all, if samba4 is
>>> involved in any way. I knew that it wouldn't work on a DC (probably
>>> because the user is DOMAIN\username and not just
2008 Feb 04
2
root preexec problem
Hi,
I'm doing an upgrade to the latest samba 3.0.28, and something's bugging me: on the old server I had this working OK:
root preexec = /usr/local/bin/ntlogon.py --user=%U --os=%m --dir=/home/samba/netlogon/ && /usr/local/bin/pdc-log.sh %U %m %a %d
On 3.0.28, I can only get the first script to run, everything after && is ignored. I have tried to put just the second
2015 Oct 21
3
Can't get 'root preexec' to run
Rowland, I apologize: I have overlooked this answer of yours before my
last post.
>> I think you may still be missing the obvious,
I was suspecting that.
>> '[homes]' *does not work* on a DC.
You mean in general or in my assumed use case?
Am 21.10.2015 um 11:27 schrieb Rowland Penny:
> On 21/10/15 10:07, Ole Traupe wrote:
>> Hi Rowland,
>>
>>
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
2000 May 18
1
root preexec & 2.0.7
I a have a problem resulting from a neat tool I developed through the use of the
"root preexec" option:
This is done in the [homes] section of smb.conf.
I launch a shell script with the user name (%u) and machine name (%m). The shell
calls a C program to check the users quota and returns a code as the percentage
of quota used.
Meanwhile, all output of the C program has been captured
2001 Nov 29
2
Samba checking for smb.conf changes
Been looking around for this. When does Samba determine when to check
for changes to the smb.conf file? Is there a certain amount of seconds set?
- Kris Jordan -
2020 Apr 30
1
how to use root preexec on user share with %U not as root user
On 2020-04-30 23:14, Rowland penny via samba wrote:
> On 30/04/2020 21:40, Jelle de Jong via samba wrote:
>>
>> First logon is I use samba-tool to add the user then I go to an
>> Windows 10 Pro domain member system and logon to the machine. The
>> \\SAMBA01\users\lgaga folder will not be there.....
> It will not be there, samba-tool doesn't have the code to
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
2015 Oct 21
3
Can't get 'root preexec' to run
Rowland, thanks for your effort, I highly appreciate it!
From what I had read before...
[home] would be an arbitrarily named share and its preexec command would
execute whenever a domain user connects to it
[homes] is a special purpose section in the smb.conf that comes into
play whenever a domain user connects to his or her home dir defined on
the DC
What MJ is telling seems to confirm
2015 Oct 21
2
Can't get 'root preexec' to run
Hi Rowland,
thank you for your effort! However, this is entirely not what I am
trying to achieve.
What I am trying to achieve is to get the "prexec" method to work.
The reason behind this is that I would like to have a zfs data set
created per user in an automatic (scripted) way. The reason behind that
is that if I do this by hand - from a domain admin account and with the
ACL
2015 Oct 15
1
Can't seem to get 'root preexec' to run
Hi,
I am trying to automatically create nested zfs data sets as home
directories. I have a script that works fine if I execute it manually as
root (auth via public key). It also creates 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 =