I want to configure samba to produce a common area (i.e. /home/shared) as an assigned drive letter to all users. Thus, in addition to users logging into the domain and having an H: drive for their personal account, they will also get an S: drive (for example) for a common area. How do I configure this in smb.conf? Thanks. Scott
On Thu, 04 Oct 2007, Scott Ehrlich might have said:> I want to configure samba to produce a common area (i.e. /home/shared) as > an assigned drive letter to all users. Thus, in addition to users > logging into the domain and having an H: drive for their personal account, > they will also get an S: drive (for example) for a common area. > > How do I configure this in smb.conf? > > Thanks. > > Scott > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/sambaI use the logon.bat script defined in smb.conf to configure the S:\, T:\, and P:\ local drives (different drive letters for different functions). The H:\ drive is configured as the 'logon home' directory from smb.conf. Mike
Le jeudi 04 octobre 2007, Scott Ehrlich a ?crit?:> I want to configure samba to produce a common area (i.e. /home/shared) as > an assigned drive letter to all users. Thus, in addition to users > logging into the domain and having an H: drive for their personal account, > they will also get an S: drive (for example) for a common area. > > How do I configure this in smb.conf? >This is not in smb.conf per se. You will configure the share in smb.conf and setup a logon script with at least the line: net use S: \\yourserver\theshare /persistent:no (that's what I use and it works pretty well, but YMMV) The script must be in the [netlogon] share. Also, it must be DOS formatted (use unix2dos if you create the file under Unix). Then, in smb.conf, add: logon script = \path\to\yourscript.bat in the global section where \path\to\yourscript.bat is the relative path of your script from the root of the netlogon share (just forget the \path\to\ if it's at the root). -- Francis Galiegue, One2team - fg@one2team.com [ATTENTION : CHANGEMENT DE COORDONN?ES !] +33178945570, +33683877875, http://www.one2team.com 40 avenue Raymond Poincar? - 75116 PARIS
On 10/4/07, Scott Ehrlich <scott@mit.edu> wrote:> I want to configure samba to produce a common area (i.e. /home/shared) as > an assigned drive letter to all users. Thus, in addition to users > logging into the domain and having an H: drive for their personal account, > they will also get an S: drive (for example) for a common area. > > How do I configure this in smb.conf? >Create a share by adding in this: [SHARED] comment = PMS files path = /home/lucas/Unique browseable = yes #printable = no guest account = nobody guest ok = yes write ok = yes force user = lucas #force group = lucas If all of them authenticate via samba you don't need guest accoutnobody and you don't need force user = lucas. You might need force group do to make sure all people are can read write to it. On 10/4/07, Scott Ehrlich <scott@mit.edu> wrote:> I want to configure samba to produce a common area (i.e. /home/shared) as > an assigned drive letter to all users. Thus, in addition to users > logging into the domain and having an H: drive for their personal account, > they will also get an S: drive (for example) for a common area. > > How do I configure this in smb.conf? >Create a share by adding in this: [SHARED] comment = shared files path = /home/shared browseable = yes #printable = no #guest account = nobody #guest ok = yes write ok = yes #force user = lucas force group =users write list = @users Now in your startup script (netlogon) add : net use s: \\YOURSERVENAME\SHARED Then you can run a command smbclient -L localhost password: [hit Enter] --password is empty to see if it is shared. Check out: http://lucasmanual.com/mywiki/SambaDomainController