JSP - Johnson's Server Project
SERVER - Samba

GOAL Install Samba
Installation cd /usr/ports/net/samba3
make install clean
~~ SELECT ~~
  • With LDAP support
  • With Winbind support
  • With ACL Support
  • With Quota support
  • With MYSQL support
  • create smb.conf # cd /usr/local/etc/
    # cp -p smb.conf.default smb.conf
    edit smb.conf to change workgroup # edit smb.conf
    workgroup = BEREAN
    edit smb.conf to change name of server # edit smb.conf
    server string = %h-Terabyte Server
    (%h is a variable for the name of the Host computer that Samba is running on)
    change [homes] in smb.conf [homes]
    comment = Home directory for %u on %h
    browseable = no
    writable = yes
    path = /usr/home/%u/Docs
    valid users = %S
    change [public] in smb.conf [public]
    comment = %h Shared Public Directory
    #path = /usr/home/samba/public
    path = /mraid
    force directory mode = 0777
    force create mode = 0777
    force group = nobody
    force user = nobody
    public = yes
    writeable = yes
    read only = no
    Test smb.conf for typos # /usr/local/bin/testparm | more
    create directorycreate directories for /usr/home/samba/public
    Add user to FreeBSD/stand/sysinstall
    Add user to Samba smbpasswd -a newusername
    Fix Permissions for /usr/home/samba cd /usr/home/samba
    chmod u=rwx public (give Read, Write and eXecute permissions to the user)
    chmod g=rwx public (give Read, Write and eXecute permissions to the Group)
    chmod o=rwx public (give Read, Write and eXecute permissions to all Others)
    Create user 'Docs' directories cd /usr/home
    mkdir newusername/Docs (whatever the user name is)
    chown newusername newusername/Docs
    Edit /etc/rc.conf to start samba just below 'usbd_enable="YES" add :
    # Start up the Samba file server program using /usr/local/etc/smb.conf
    samba_enable="YES"
    .
    Installing Swat use swat as a CGI script
    add the line
    swat 901/tcp
    to /etc/services

    add the line
    swat stream tcp nowait root /usr/local/samba/bin/swat swat
    to /etc/inetd.conf

    Start a browser and go to http://localhost:901
    cfg []