Re: [Samba] how to run more than one logon script
Hi Thomas. I'm glad to hear that. I'll try it here. Tks On Tue, Sep 28, 2010 at 6:50 PM, Thomas Bork tomb...@web.de wrote: Am 28.09.2010 23:17, schrieb Leonardo Carneiro: Well, in theory this should work. I'll try and post here if this will work well. Tks in advance. It works, you could use many combinations: for user: logon script = %u.bat %g %m for group: logon script = %g.bat %u %m for machine: logon script = %m.bat %u %g for all: logon script = logon.bat %u %g %m For example, if you use the last possibility 'all', then in logon.bat: REM Run user specific stuff REM call %1.bat REM Run group specific stuff REM call %2.bat REM Run machine specific stuff REM call %3.bat -- der tom -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] how to run more than one logon script
Hi everyone, I'm running Samba 3.4.7 with OpenLDAP as PDC and I want to run more than one logon script per user. What i want to achieve is: Run a general logon script, that do the folder mapping of the public access folders for all users. AFTER this run a group-based logon script, to map some groups-related folders. And still after those 2 scripts, run a user-based logon script, to map some user-related folders. Why i'm trying to do this: I want to do this because i have a lot of folders that i want to map for some users that are not from the same primary group. If i create only one script per user, i'll have tons of scripts, and I'll have to edit each of then every time i'd want to map a folder to all users, not only to those guys. I'm well aware that i can specify a group or user (or other things) related script in the users settings in samba, but i want to run more than one script. Is there a specific configuration to make this work? Is there a workaround to do this? Tks in advance. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] how to run more than one logon script
Hi Pascal, Forgive me my poor english, but i didn't understood what factorize your code means. Could you explain in another way (with examples, if possible =D )? Tks in advance. On Tue, Sep 28, 2010 at 4:52 PM, Pascal Valois pascal.val...@devinci.fr wrote: run more than one logon script ? there is only one reason to do so. it's if you want to share part of login script between users and factorize your code. if you dont, then merging the script is enough, and would explain why one logon script is sufficient. Le 28/09/2010 21:49, Leonardo Carneiro a écrit : Hi everyone, I'm running Samba 3.4.7 with OpenLDAP as PDC and I want to run more than one logon script per user. What i want to achieve is: Run a general logon script, that do the folder mapping of the public access folders for all users. AFTER this run a group-based logon script, to map some groups-related folders. And still after those 2 scripts, run a user-based logon script, to map some user-related folders. Why i'm trying to do this: I want to do this because i have a lot of folders that i want to map for some users that are not from the same primary group. If i create only one script per user, i'll have tons of scripts, and I'll have to edit each of then every time i'd want to map a folder to all users, not only to those guys. I'm well aware that i can specify a group or user (or other things) related script in the users settings in samba, but i want to run more than one script. Is there a specific configuration to make this work? Is there a workaround to do this? Tks in advance. -- Pascal Valois Service Informatique Pole Universitaire Léonard de Vinci -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] how to run more than one logon script
This is more of a Windows question (i.e. google searches windows login scripts may be helpfull. You scripts could use commands like ifmember groupname http://www.eggheadcafe.com/software/aspnet/30250014/login-script-group-membership.aspx That should let you map drives based on group membership. Then you can have the same login script specified for each user, and that login script includes conditional drive mappings for the specific groups. Windows also has the call command which should let one batch file call another then return to the 1st file. http://www.computerhope.com/call.htm On 09/28/2010 03:49 PM, Leonardo Carneiro wrote: Hi everyone, I'm running Samba 3.4.7 with OpenLDAP as PDC and I want to run more than one logon script per user. What i want to achieve is: Run a general logon script, that do the folder mapping of the public access folders for all users. AFTER this run a group-based logon script, to map some groups-related folders. And still after those 2 scripts, run a user-based logon script, to map some user-related folders. Why i'm trying to do this: I want to do this because i have a lot of folders that i want to map for some users that are not from the same primary group. If i create only one script per user, i'll have tons of scripts, and I'll have to edit each of then every time i'd want to map a folder to all users, not only to those guys. I'm well aware that i can specify a group or user (or other things) related script in the users settings in samba, but i want to run more than one script. Is there a specific configuration to make this work? Is there a workaround to do this? Tks in advance. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] how to run more than one logon script
Hmm... this is interesting. I think that with the 'call' statement i can reach my goal. Make all users to run a default script, then this script does it's magic, call a group based script, and then this one also does it calls a third user-based script. Well, in theory this should work. I'll try and post here if this will work well. Tks in advance. On Tue, Sep 28, 2010 at 5:06 PM, Gaiseric Vandal gaiseric.van...@gmail.com wrote: This is more of a Windows question (i.e. google searches windows login scripts may be helpfull. You scripts could use commands like ifmember groupname http://www.eggheadcafe.com/software/aspnet/30250014/login-script-group-membership.aspx That should let you map drives based on group membership. Then you can have the same login script specified for each user, and that login script includes conditional drive mappings for the specific groups. Windows also has the call command which should let one batch file call another then return to the 1st file. http://www.computerhope.com/call.htm On 09/28/2010 03:49 PM, Leonardo Carneiro wrote: Hi everyone, I'm running Samba 3.4.7 with OpenLDAP as PDC and I want to run more than one logon script per user. What i want to achieve is: Run a general logon script, that do the folder mapping of the public access folders for all users. AFTER this run a group-based logon script, to map some groups-related folders. And still after those 2 scripts, run a user-based logon script, to map some user-related folders. Why i'm trying to do this: I want to do this because i have a lot of folders that i want to map for some users that are not from the same primary group. If i create only one script per user, i'll have tons of scripts, and I'll have to edit each of then every time i'd want to map a folder to all users, not only to those guys. I'm well aware that i can specify a group or user (or other things) related script in the users settings in samba, but i want to run more than one script. Is there a specific configuration to make this work? Is there a workaround to do this? Tks in advance. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] how to run more than one logon script
Am 28.09.2010 23:17, schrieb Leonardo Carneiro: Well, in theory this should work. I'll try and post here if this will work well. Tks in advance. It works, you could use many combinations: for user: logon script = %u.bat %g %m for group: logon script = %g.bat %u %m for machine: logon script = %m.bat %u %g for all: logon script = logon.bat %u %g %m For example, if you use the last possibility 'all', then in logon.bat: REM Run user specific stuff REM call %1.bat REM Run group specific stuff REM call %2.bat REM Run machine specific stuff REM call %3.bat -- der tom -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba