search for: postexec

Displaying 20 results from an estimated 473 matches for "postexec".

2010 Jun 11
1
root postexec issue on both Samba 3.4.5 and 3.0.28
Hi, there I'm using Samba 3.4.5 and 3.0.28 on RHEL 5.2, and I noticed that on both samba servers 'root postexec' script in [netlogon] is executed automatically when logged in for around 11 minutes. This makes me crazy to track when a use is logged out. The man page smb.conf.5 says: " postexec (S) This option specifies a command to be run whenever the service is disconnected. " I d...
2009 Jan 27
1
postexec script
Hi! What we have: FreeBSD 7.1-RELEASE-p1 with samba-3.0.34,1 I want log IP addr and login of my domain users to file. I use preexec and postexec scripts: logon script = /var/db/samba/netlogon/startup.bat ## script for use in Window root preexec = /var/db/samba/netlogon/netlogon.sh %u %I root postexec = /var/db/samba/netlogon/netlogoff.sh %U preexec script work fine: #cat users_logon connect admin 10.0.0.11 But my postexec script wont...
2003 Jul 03
2
pre/postexec
...mounting some particular windows partition (from another HD at the same computer) in accordance with user during logon and UNMOUNT it during logout or closed connection? Does anybody has an idea or knows a method how to do this or he has met a similar problem? FIRST ATTEMPT: I tried to employ pre/postexec mounting partition specific for a given user. The exemplary generated share is as follows: [Win_mag] comment = Zbiory Win na Marku path = /windows/R valid users = magda read only = No browseable = Yes preexec = mount -t vfat /dev/hdf5 /windows/R postexec = umount /windows/R According to f...
2005 Apr 06
1
%U doesn't work in root postexec
Hi! I've following in my smb.conf root postexec = /bin/rm /hades/samba/netlogon/scripts/%U.bat but I get following in my logfile: [2005/04/06 13:55:39, 1] smbd/service.c:close_cnum(836) hitt-006 (10.16.69.21) closed connection to service penzrobe [2005/04/06 13:55:39, 1] smbd/service.c:close_cnum(836) hitt-006 (10.16.69.21) closed connecti...
2002 Dec 06
3
pre-/postexec in printers-section
Hi, after updating our printserver from Samba V2.0.6 to V2.2.7 I encountered the following problem. Samba does not execute the (root) pre- and postexec within the printers section. If you are using these command in another section everything works fine. Does anybody know if these command are not supported in the printers section anymore? smb.conf: [global] ... load printers = yes lpq cache time = 30 print command = lpr -r -P%p %s prin...
2002 Oct 28
2
root prexec/postexec & login scripts
...s 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 message. I could still manually map drives after clicki...
1999 Jan 25
1
Problems running apps from Samba 2.0.0 share on NT 4.0
...only = No volume = Windows Applications [wingames] comment = Windows Games path = /wingames read only = No volume = Windows Games [cdrom0] comment = KeyFontsPro for Windows and Macintosh path = /mnt/cdrom guest ok = Yes root preexec = /bin/mount /mnt/cdrom || /bin/mount /mnt/cdrom root postexec = /bin/umount /mnt/cdrom volume = CD-ROM 0 [cdrom1] comment = USENIX 1997 Annual Technical Conference and USELINUX path = /mnt/cdrom1 guest ok = Yes root preexec = /bin/mount /mnt/cdrom1 || /bin/mount /mnt/cdrom1 root postexec = /bin/umount /mnt/cdrom1 volume = USENIX_Anaheim_97 [cdrom2]...
2002 Oct 28
0
postexec umount /cdrom doesn't work
...ntry like this: ; ; /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0 ; ; The CD-ROM gets unmounted automatically after the connection to the ; ; If you don't want to use auto-mounting/unmounting make sure the CD ; is mounted on /cdrom ; preexec = /bin/mount /cdrom postexec = /bin/umount /cdrom When I open the service `cdrom' in a Windows box, /cdrom can be correctly mounted. But after I close the Explore window, waiting for /cdrom being umounted, it never umounted. I run `lsof /cdrom': COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME smbd 2161 r...
2004 Jul 09
0
Serious doc bugs
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Huh!? This is man page is really not very helpful. Does the command run before or after the disconnect? What exactly is the shell environment? Why does it run as root if there is a separate setting just for this, i.e. "root postexec"? I ran with "echo $USER > /tmp/err.txt" as the command and it spat out "root". I've tried everything I can think of to get the script to run as the user. That was mostly one or another use of "su" but none of it works. <CHEWBACCA>Dis do not make se...
2003 May 21
1
Q: Automount client's shares to Samba PDC?
...ows XP and 2k clients with shared directories my problem: i want that the shares of the Windows- clients to get mounted automatically while booting to a mountpoint of the Linux- box (the FTP- directory) until now, i have tried to solve this problem like this: i have added the commands preexec and postexec to the share [homes]: ------------------------------------------------ [homes] comment = Home Directories valid users = %S browseable = no writeable = yes create mask = 0640 directory mask = 0750 root preexec = /etc/samba/smbpreexec # ro...
2013 Mar 18
1
Slow navigation on samba share
...## # Domaenen-Bereich # [netlogon] comment = Logon Scripts path = /samba/netlogon browseable = no writeable = no [profiles] comment = NT Roaming Profiles path = /samba/profiles root preexec = /etc/samba/scripts/write_connect_log %U %m %I %S postexec profile acls = yes browseable = no force user = %U writeable = yes create mask = 0600 directory mask = 0700 read only = no hosts allow = 192.168.1.0/255.255.255.0 ######################################################################...
1999 Jan 25
2
Samba, NT, and transient network failures
...NT client free to re-establish its locks (which it does, though only as each application accesses files it had open on the Samba share, rather than attempting to re-obtain all locks on that share in one fell swoop). I've implemented this solution via the "root preexec" and "root postexec" configuration parameters in smb.conf. So I have Samba configured to call an external script with all the appropriate arguments (IP address of the client, NetBIOS name of the server, share name, username, smbd PID, "preexec" or "postexec") when a client connects or when smb...
2004 Feb 26
2
Log user log-offs
...ne know of a way to log when a user logs off using Samba as a PDC. I have Samba 3.0.2a and can log log-ons using root preexec on a share all users mount, however I do not know of a way to log log-offs. We need this data for record keeping purposes. We don't use roaming profiles, so using root postexec is not an option as shares disconnect when not in use. Thanks for any help, Brandon Turner MSC Computer Operations
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 "%L" "%U" "%G"? "%S" "%I" &quo...
2008 Oct 05
1
Cannot get shares to show up
...ve been messing with this for awhile now and cannot see any typos that would prevent these shares from showing up. I'm trying two things I've never done before so I want to make sure to point them out: 1) I am using groups in the "valid users" section 2) I am using preexec and postexec on each share Example: [Media] comment = Media(Non-kid)! path = /mnt/media1 read only = yes browsable = no valid users = @mediausers preexec = /bin/mount /mnt/media1 postexec = /bin/umount /mnt/media1 I've done nothing with the /mnt/media1 folder so I expect my next issue will be permissione...
1998 Apr 06
3
Triggering processes through Samba
Hi, I need to upload data from a barcode scanner into a Progress database on UNIX. The barcode reader is attached to a PC. We have set it up in this way that the barcode reader creates a file in a directory shared by the PC and an HP box. A simple daemon on the HP scans the directory and triggers a program to upload the data whenever it finds a file in that directory. I was wondering if
2006 Jul 23
1
[SOLVED] profile question
hello i solved my problem. i wanted a manager to be able to modify files in the users' profiles from his windows workstation. The solution i found is with adding this lige to the profiles share bloc in smb.conf : root postexec = setfacl -R -m g:"Domain Admins":rwx /share/profiles/%U regards ELH -------- Message original -------- Sujet: profile question Date: Tue, 18 Jul 2006 18:52:07 +0200 De: ?ric le h?naff <eric.le.henaff@ens.fr> Forums de discussion: gmane.network.samba.general hello, i have a profil...
1999 Jan 13
1
Secure? Samba over internet
...en successfully sync's his clock with the server, maps his home directory to drive X: and plays with his favorite M$ program until it crashes. A few minutes after connecting then he's finished, and he disconnects. The configuration for the joeshome share in smb.conf contains the line: root postexec ipfwadm -I -d accept -D $SERVER_IP 139 -V $SERVER_IP -P tcp -S %I One thing I am unsure about is the ability of this system to withstand an attempt by Joe User's remote ISP to gain access to Joe's account while he is online. If you can answer the following questions I'd love to hear fr...
2019 Dec 25
1
mounting ext usb drive
...F8 /bkup?????? ntfs-3g?? noauto,user,rw??? 0?????? 0 The following does open a share but its not really /bkup and its not writeable. Corrections are welcome. Thanks. [backup_drive] ??????? preexec = /bin/mount /bkup ??????? comment = Backup Drive ??????? path = /bkup ??????? writable = yes ??????? postexec = /bin/umount /bkup If /bkup is mounted then the above share works from Windows or Unix clients. Thing is, wanted it to only mount when actually needed. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes...
2003 Jul 31
0
Samba security hole as the workstation hangs
Hi, I probably found a minor security hole (as it may be IMHO) in my (latest) stable release of SAMBA (2.2.9a-1) Using Win98SE I am logging to Samba server. I am using root preexec and root postexec on Home share's to maintain a list of "correctly logged" users. When a Windows workstation craches, Samba finds this after some 5 long minutes. Until that time, although a new user logs into the same workstation, it STILL doesn't make a "POSTEXEC" operation on the previ...