Samba Mapped Drives

From: Charles Kendricks (cktech_at_charter.net)
Date: 07/08/04


Date: 8 Jul 2004 07:05:22 -0700

I have a samba PDC running on RH9 kernel 2.6.4 with samba 2.2.7. I
already have the smb.conf set up to map the users home directory to
the B: drive on the client workstations. I would like to take this
one step further and use samba to create a shortcut on the client
desktop to the B: drive, so that when the users (who, by the way are
middle schoolers) log into the domain, they will be presented with an
icon on their desktop which is a shortcut to their home directory on
the samba server. I am hoping this can be accomplished with a logon
script of some kind.

My current configuration file is:

# samba configuration file
#
[global]
 
        ;basic server settings
        workgroup = TAS
        netbios name = dali
        ;server string = Samba PDC running %v
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192
SO_RCVBUF=8192
 
        ;PDC and master browser settings
        os level = 64
        preferred master = yes
        local master = yes
        domain master = yes
        domain logons = yes
 
        ;security and logging settings
        security = user
        encrypt passwords = yes
        log file = /var/log/samba/log.%m
        log level = 2
        max log size = 50
        hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0
 
        ;user profiles and home directory
        logon path = \\%N\profiles\%U
        logon script = logon.bat
 
        ;attempt to map home directory to drive H
        logon drive = B:
        logon home = \\%L\%u
 
# ==== shares ====
 
[homes]
        comment = Home Directories
        path = /home/%u
        browseable = no
        writeable = yes
 
[profiles]
        path = /home/samba/profiles
        writeable = yes
        browseable = no
        create mask = 0600
        directory mask = 0700
 
[netlogon]
        comment = Network Logon Service
        path = /home/netlogon
        read only = yes
        browseable = no
        write list = root



Relevant Pages

  • Re: Samba and SELinux
    ... Windows machine couldn't access either of my Samba shares. ... share is a subdirectory of my home directory, ... context change. ...
    (Fedora)
  • Re: Long Time Samba No Work-Need Expert Help On Samba/Networking
    ... My suspicions are that the network or Samba is not set up properly. ... # server string is the equivalent of the NT Description field ... # Only bind to the named interfaces and/or networks; ... # Another common choice is storing the profile in the user's home directory ...
    (Ubuntu)
  • Samba Mapped Drives
    ... I have a samba PDC running on RH9 kernel 2.6.4 with samba 2.2.7. ... already have the smb.conf set up to map the users home directory to ... icon on their desktop which is a shortcut to their home directory on ... My current configuration file is: ...
    (comp.os.linux.setup)
  • Help Needed configuring Samba on Webserver
    ... web server that they can post their web design projects into, ... Procedure to setup student for samba access ... Create a public_html directory under their home directory ...
    (Fedora)
  • Re: Help Needed configuring Samba on Webserver
    ... Tim Holmes wrote: ... >with Apache and Samba installed. ... >which is not a problem for a class of 5 students, ... Create a public_html directory under their home directory ...
    (Fedora)