Samba File Server
Results 1 to 5 of 5

Thread: Samba File Server

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Posts
    3

    Samba File Server

    I am trying to set up a file server with Samba, but I simply cannot get access to any of the folders, they show up in network neighbourhood, but can't be opened. Can anyone tell me where I have gone wrong?

    Hopefully all the info you need is below...

    I need 2 users, with 3 folders

    Folder 1: company
    Folder 2: master
    Folder 3: misc

    User 1: everyone (with access to "company" and "misc")
    User 2: master (with access to "company", "master" and "misc")

    I have done the following (as root)

    #useradd everyone
    #useradd master

    #passwd everyone
    #passwd master

    #smbpasswd -a everyone
    #smbpasswd -a master

    #smbpasswd -e everyone
    #smbpasswd -e master

    #md /shares/company
    #md /shares/master
    #md /shares/misc

    #chown master /shares
    #chown master /shares/company
    #chown master /shares/master
    #chown master /shares/misc

    #chmod 666 /shares
    #chmod 666 /shares/company
    #chmod 600 /shares/master
    #chmod 666 /shares/misc

    my /etc/samba/smb.conf is as follows:

    # smb.conf is the main Samba configuration file. You find a full commented
    # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
    # samba-doc package is installed.
    # Date: 2008-06-06
    [global]
    workgroup = WORKGROUP
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare allow guests = Yes
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain logons = No
    domain master = No
    security = user
    netbios name = nastorage
    passdb backend = smbpasswd

    [company]
    comment = Company
    inherit acls = Yes
    path = /shares/company
    read only = No


    [master]
    comment = Master
    inherit acls = Yes
    path = /shares/master
    read only = No

    [misc]
    comment = Misc
    inherit acls = Yes
    path = /shares/misc
    read only = No

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    Directories in *nix need the x (execute) bit set or users won't be able to browse it. Change the 6s in your chmods to 7s
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  3. #3
    Junior Member
    Join Date
    Mar 2008
    Posts
    3
    Ah I never knew that, thought it would be something relatively simple for someone with the know how. Right that is working great now, thanks! Still one issue though... I have 414GB of free space on the drives (as shown on the "start" menu)... but my windows PC says the server has only 15.5GB free, according to YaST I have no quota's set, any ideas?

  4. #4
    Junior Member
    Join Date
    Mar 2008
    Posts
    3
    Doh, My bad, I have been used to ubuntu and until I ran "df -h" I wasn't aware SuSE had partitioned my drive and put all the space in /home and only left 20GB for /

  5. #5
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    That'll help

    And just a note, look into those chmod 777's. I think that's a bit too permissive as it means they're world writable.
    Use groups to define the correct permissions. Users can be members of multiple groups.
    Oliver's Law:
    Experience is something you don't get until just after you need it.

Similar Threads

  1. How to Create bat files....
    By cool_boy in forum General Computer Discussions
    Replies: 3
    Last Post: June 29th, 2006, 03:45 AM
  2. Autopsy of a successful intrusion
    By gore in forum Miscellaneous Security Discussions
    Replies: 11
    Last Post: June 13th, 2006, 05:06 AM
  3. Setting up an FTP server on SUSE Linux 9.1 Professional
    By gore in forum Other Tutorials Forum
    Replies: 0
    Last Post: October 11th, 2004, 08:07 PM
  4. How do Instant Message Services Work?
    By Lansing_Banda in forum Network Security Discussions
    Replies: 2
    Last Post: October 5th, 2003, 03:14 AM
  5. The Worlds Longest Thread!
    By Noble Hamlet in forum AntiOnline's General Chit Chat
    Replies: 1100
    Last Post: March 17th, 2002, 09:38 AM

Posting Permissions

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