search for: prexec

Displaying 20 results from an estimated 58 matches for "prexec".

Did you mean: preexec
2002 Oct 28
2
root prexec/postexec & login scripts
...works ok. ./netlogon.pl mrambo #This results in a good script. When I put in a root preexec like... [netlogon] comment = Network Logon Service path = /home/netlogon guest ok = yes read only = yes browseable = no printable = no write list = @adm share modes = no root prexec = /home/netlogon/netlogon.pl %U root postexec = rm -f /home/netlogon/%U.bat it fails to run. My box was running samba 2.2.3a as distributed w/RH7.3. When I inserting the root preexec statement in smb.conf the domain logons would no longer function. I received a no domain controller error messag...
2006 Aug 14
1
Connection scripts with the 'prexec' clause
Hi all, I am running Samba 3.0.20B on an AIX server with SECURITY=USER using an LDAP backend. I am looking for a way to capture the actual username(%USER_NAME%) that the client user is logged onto his individual workstation with and compare it with the user(%u) they are connecting with the share as. If they are different, I want to reject the user's connection. After doing some
2007 May 17
1
prexec change between 3.0.24 to 3.0.25
Hello, I've been testing out 3.0.25 before putting it into production and came across an issue. As a simple example.. in a share definition root preexec = echo "hey there, hi there, hello" > /tmp/hiya.txt works fine under 3.0.24 not so under 3.0.25, /tmp/hiya.txt isn't created. Cranking up the debugging and using some other similiar tests it seems to me that Samba is in
2002 Dec 18
1
max log size setting ignored
...plexity of the smb.conf file although its really not THAT complex. I'm doing the "dual personality" thing with include = /usr/local/samba/lib/%L.smb.conf and make a lot of use of %U and %G and a bit of %S and some "force user" and some "force group" and "root prexec" and "root prexec close" but REALLY NOTHING THAT complicated and EVERYTHING works perfectly except for the "max log size" setting. This used to happen when I used to build Samba with gcc on Solaris and it still happens although now I use Sun's Forte compiler. I've...
2020 Apr 10
3
Users' Home Folders - conflicting advice in WiKi
Rowland, In the Wiki page "User Home Folders", Section 2.1 "Using Windows ACLs" correctly describes how to set permissions to allow the Windows program Active Directory Users and Computers to automatically create the user's home folder. But in the next section "Creating the Home folder for a New User" 3.1 "Using Windows ACLs", the blue box states
2017 Jun 13
3
Creating home folders on file server automatically
...to that server. In the meantime I use "root preexec" in smb.conf and the following script. It creates the folder and mimics the permissions as created by the RSAT Tool. #!/bin/bash # # Create Home Folder and mimic ACLs as created by RSAT Tools # # use in smb.conf: # # [home] # # root prexec = path_to/make_home_folder.sh '%D' '%U' '%G' '%H' # # ;; %D = Domain or Workgroup of user ($1) --> "SAMDOM" # ;; %U = Username ($2) --> "kbudwi" # ;; %G = Groupname ($3) --> "SAMDOM\domain users&q...
2005 Apr 19
2
Pam mkhomedir - Permissions
I would like to set special permissions (ACL) when pam autocreates my home dirs in samba. I think i should use a script for that. My question is: how can I make pam run a bash script after it creates the homedir? Thanks Cristian
2020 Apr 10
3
Users' Home Folders - conflicting advice in WiKi
...have the code to do this and ADUC > running on Windows has no ability to do it either. > > It could be that you have pam_mkhomedir set in your PAM stack and it > is this that is creating your users home directories at login. > > Myself and Louis collaborated to write a 'root prexec' script to > create the users home directory at Samba connection. > > To the best of my knowledge, you have to use one or the other method. > > Rowland > > Actually, this is something I noticed myself a (long) while ago. I am running Samba AD members on Arch Linux and Ubu...
2017 Jun 13
0
Creating home folders on file server automatically
...quot; in smb.conf and the following > script. It creates the folder and mimics the permissions as created > by the RSAT Tool. > > #!/bin/bash > # > # Create Home Folder and mimic ACLs as created by RSAT Tools > # > # use in smb.conf: > # > # [home] > # > # root prexec = path_to/make_home_folder.sh '%D' '%U' '%G' '%H' > # > # ;; %D = Domain or Workgroup of user ($1) --> "SAMDOM" > # ;; %U = Username ($2) --> "kbudwi" > # ;; %G = Groupname ($3) --> "S...
2005 Mar 16
1
Logon logging logs
I'm looking for a simple solution to log a single entry for each login to a Samba PDC. My current attempt(s) of using a root prexec script in either the [netlogon] share definition or the [global] section are working, but not exactly as expected. In [netlogon] I have an entry: root preexec = /path/to/script/makelogonscript.pl %g %u %m %I ...where makelogonscript.pl generates a customized logon script for each user/group e...
2020 Apr 11
2
Users' Home Folders - conflicting advice in WiKi
...> It could be that you have pam_mkhomedir set in your PAM stack and it is this that is creating your users home directories at login. > No, I don't have this because I don't need domain users to log on with SSH to the server. > Myself and Louis collaborated to write a 'root prexec' script to create the users home directory at Samba connection. > > To the best of my knowledge, you have to use one or the other method. > > Rowland Just confirmed that pam_mkhomedir is not enabled, created a new user test2 using ADUC. Set the Home folder on the Profile tab to...
2004 Jul 23
2
valid users %g and %u not behaving properly...
...: [homes] path=%H/sam valid users = +%G,%U force user = %U force group = %G write list = +%U create mask = 0770 directory mask = 0770 browseable=no read only = no It worked beautifully. But the whold valid users thing isn't working on the new system. To help troubleshoot, I used "root prexec" to dump the contents of %U, %u, %G, and %g to a file. The values of these variables when connecting to the [homes] share as me: <>%U = username without domain (e.g. chris) <>%u = username with domain name and domain seperator (e.g. DOMAIN+chris) <>%G = "users&quot...
2014 May 27
2
CentOS 6.5 + Samba 4.1.6 - Variable Substitution (smb.conf)
Hello everyone. So, I come to you because I have a little problem when setting up my domain controller based on CentOS 6.5 and Samba 4.1.6. Everything works well, except for one small detail, which in my case blocking me. I would like to automatically generate the home directory of the user during the first connection (from Win or Linux), but the problem is that for some unknown reason,
2002 Dec 19
0
Generic smb.conf file
...ile although its really not THAT complex. I'm > doing the "dual personality" thing with > include = /usr/local/samba/lib/%L.smb.conf and make > a lot of use of %U and %G and a bit of %S and some > "force user" and some "force group" and "root > prexec" and "root prexec close" but REALLY NOTHING > THAT complicated and EVERYTHING works perfectly > except for the "max log size" setting. > > This used to happen when I used to build Samba with > gcc on Solaris and it still happens although now I > use Sun...
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 recommendations of the Samba wiki (inheritance of owner ri...
2017 Jun 12
3
Creating home folders on file server automatically
Hi list, We have a script we are using to create new users, and drop them into the proper OUs on our Samba AD server, using samba-tool. We have a Samba member file server (fs1) joined to the domain for hosting our file shares. On there is also where we are putting the users' home folders. I saw in the Samba Docs, and in the mailing list, that I can use
2020 Apr 10
4
Users' Home Folders - conflicting advice in WiKi
...using ssh or directly to the computer, then Samba isn't used and either you must create the users home directory, or use pam_mkhomedir to create it for you. If you connect to a users home directory via Samba, then the users home directory must exist or you need to create it via a 'root prexec' script, pam_mkhomedir will not be used. Rowland
2020 Apr 10
0
Users' Home Folders - conflicting advice in WiKi
...am aware Samba doesn't have the code to do this and ADUC running on Windows has no ability to do it either. It could be that you have pam_mkhomedir set in your PAM stack and it is this that is creating your users home directories at login. Myself and Louis collaborated to write a 'root prexec' script to create the users home directory at Samba connection. To the best of my knowledge, you have to use one or the other method. Rowland
2020 Apr 11
0
Users' Home Folders - conflicting advice in WiKi
...uld be that you have pam_mkhomedir set in your PAM stack and it is this that is creating your users home directories at > login. > No, I don't have this because I don't need domain users to log on with SSH to the server. > >> Myself and Louis collaborated to write a 'root prexec' script to create the users home directory at Samba connection. >> >> To the best of my knowledge, you have to use one or the other method. >> >> Rowland > Just confirmed that pam_mkhomedir is not enabled, created a new user test2 using ADUC. Set the Home folder on...
2020 Apr 11
0
Users' Home Folders - conflicting advice in WiKi
...to the computer, then Samba isn't used and either you must create the users home directory, or use > pam_mkhomedir to create it for you. > Yes. > If you connect to a users home directory via Samba, then the users home directory must exist or you need to create it via a 'root > prexec' script, pam_mkhomedir will not be used. The script is not required, at least in my setup. Obviously there's something different on my system compared to yours, but this has come up before - https://lists.samba.org/archive/samba/2019-October/226432.html, so it works for others as well....