Find the answer to your Linux question:
Results 1 to 3 of 3
On my windows 2000 system, after the share "test storage space" has been created, it is placed in My network places, Computers near me, Internal. When i open the folder ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    13

    Creating a new Share in Samba


    On my windows 2000 system, after the share "test storage space" has been created, it is placed in My network places, Computers near me, Internal. When i open the folder i get all of the contents of "/home". Can anyone tell how to get the junk of out this folder because it is supposed to be empty. I'm pretty much retarded when it comes to samba so any information would be INCREDIBLY helpful.


    SMB.CONF


    [global]
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain logons = Yes
    domain master = Yes
    local master = Yes
    os level = 65
    preferred master = Yes
    security = user
    workgroup = Capstone
    browseable = yes
    read only = no

    [homes]
    browseable = No
    comment = Home Directory for %S
    inherit acls = Yes
    read only = No
    valid users = %u administrator root
    guest ok = yes
    path = /home/%u

    [profiles]
    comment = Network Profiles Services
    create mask = 0600
    directory mask = 0700
    inherit acls = Yes
    path = %H
    read only = No
    store dos attributes = Yes
    guest ok = yes

    [groups]
    comment = All Groups
    inherit acls = Yes
    path = /home/groups
    read only = No
    guest ok = yes

    [netlogon]
    comment = Network Logon Service
    path = /var/lib/samba/netlogon
    write list = root
    guest ok = yes

    [print$]
    comment = Printer Drivers
    create mask = 0664
    directory mask = 0775
    force group = ntadmin
    inherit acls = Yes
    path = var/lib/samba/drivers
    read only = Yes
    writelist = @ntadmin root
    guest ok = yes

    [printers]
    comment = All Printers
    create mask = 0600
    inherit acls = Yes
    path = /var/tmp
    printable = Yes
    read only = Yes
    guest ok = yes

    [users]
    comment = All Users
    inherit acls = Yes
    path = /home
    read only = No
    veto files = /aquota.user/groups/shares
    guest ok = No
    browseable = No
    force user = test
    share modes = Yes
    valid users = Root Administrator test

    [Test Storage Folder]
    comment = password protected file sharing with user accounts
    inherit acls = Yes
    path = %H
    read only = No

  2. #2
    Linux Newbie
    Join Date
    May 2006
    Location
    Kansas
    Posts
    187
    Change this line:

    [Test Storage Folder]
    comment = password protected file sharing with user accounts
    inherit acls = Yes
    path = &#37;H <------------------------------HERE
    read only = No

    This makes the path to your share the /home directory for the user you connect as. Set it to the directory you want to share:

    path = /path/to/shared/dir

  3. #3
    Linux Newbie
    Join Date
    May 2006
    Location
    Kansas
    Posts
    187
    ... then restart samba.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •