Computer Association of SIUE - Forums

CAOS Supported Groups => LUUCS => Topic started by: Stiffler on 2002-11-03T14:00:14-06:00 (Sunday)

Title: Samba Shares
Post by: Stiffler on 2002-11-03T14:00:14-06:00 (Sunday)
Ok, I'm using SWAT to set up Samba shares. I set up a hidden share that I want only root and my username to access it. So, I made guest access equal to no, and added root and my username to the list of  users that have read/write ability. I go to the the share from a windows XP machine and a username and password box comes up and I enter in my username, but it doesn't work, so then I try root, and that doesn't work.

Any idea on how to fix this?

Jon
Title: Re:
Post by: Stiffler on 2002-11-03T14:37:17-06:00 (Sunday)
Nevermind! I forgot to convert Unix usernames to samba usernames.

Jon
Title: Re:
Post by: Stiffler on 2002-11-06T19:07:30-06:00 (Wednesday)
How do you make shares public? I'm using Webmin and SWAT. I select map to guest on bad username. I made nobody the user for public. Nothing seems to work. A box with username and password come up, but no matter what username and password I enter, I get a message saying you are not authorized to view this folder. I have guest only turned on. I made nobody a samba user with no password. Does it need to have the same password as the unix nobody account which does have one?

Jon
Title: Re:
Post by: Stiffler on 2002-11-06T21:10:22-06:00 (Wednesday)
Here's my smb.conf file if that would help:

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2002/11/06 18:40:50

# Global parameters
[global]
   netbios name = DINGBAT
   server string = Dingbat's Linux Machine. Enjoy!
   encrypt passwords = Yes
   min passwd length = 0
   map to guest = Bad User
   null passwords = Yes
   announce version = 7.5
   announce as = NT Workstation
   unix extensions = Yes
   deadtime = 20
   socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY
   printcap name = CUPS
   character set = ISO8859-15
   os level = 100
   preferred master = False
   domain master = False
   dns proxy = No
   wins server = 146.163.5.118
   printing = cups
   delete veto files = Yes
   veto files = /*.eml/*.nws/riched20.dll/*.{*}/

[homes]
   comment = Home Directories
   valid users = %S
   read only = No
   create mask = 0640
   directory mask = 0750
   map system = Yes
   map hidden = Yes
   browseable = No
   delete readonly = Yes

[printers]
   comment = All Printers
   path = /var/tmp
   create mask = 0600
   printable = Yes
   browseable = No

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/drivers
   write list = @ntadmin root
   force group = ntadmin
   create mask = 0664
   directory mask = 0775

[Public]
   map system = yes
   wide links = no
   map hidden = yes
   preserve case = yes
   path = /drives/E/Shares/PublicShares
   force user = nobody
   comment = My public shares.
   valid users = nobody
   guest only = yes
   public = yes

The directory I need help with is Public.

Jon
Title: Re:
Post by: Peter Motyka on 2002-11-07T00:06:10-06:00 (Thursday)
First off, did you start with an empty smb.conf file?  I have never seen a file of such length generated by swat.  Perhaps you should restart this configuration with a blank file.  I suggest this because there are many settings I have never seen before in this file.  I have configured a public directory before and it only requires a few lines.

If you dont want to try the reconfigure, I suggest adding the following to your public share definition:

writeable = yes

Peter
Title: Re:
Post by: Stiffler on 2002-11-07T00:28:37-06:00 (Thursday)
I wanted a lot of stuff configured, and yes that was all done by SWAT. I click on "Advanced View". I really don't want my share to be writable.

Jon