LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   browse linux files from windows. (https://www.linuxquestions.org/questions/linux-networking-3/browse-linux-files-from-windows-177523/)

FLOODS 05-03-2004 07:27 PM

browse linux files from windows.
 
Got my network up and now am in the process of configuring samba and ran into a problem.
I can view the files from the XP host while using the slackware machine, but not vice versa. What I want to be able to do is browse the slack machines files (my home directory [/home/floods]) while using windows. I've tried to setup my smb.conf and it all *looks* ok to me, but I could be skipping over something. Since I can't paste it all, here are the important parts.
Code:

#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: LINUX2
  workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
  server string = SlackBox

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
  hosts allow = 192.168. 127.

And here are my share definitions.

Code:

#============================ Share Definitions ==============================
[homes]
  comment = Home Directories
  browseable = no
  writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
 [netlogon]
  comment = Network Logon Service
  path = /usr/local/samba/lib/netlogon
  guest ok = yes
  writable = no
  share modes = no

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
  comment = All Printers
  path = /var/spool/samba
  browseable = no

# Set public = yes to allow user 'guest account' to print
  guest ok = no
  writable = no
  printable = yes

# A publicly accessible directory
[public]
  comment = floods' home
  path = /home/floods/
  browseable = yes
  public = yes
  guest ok = yes
  writable = yes
  printable = no

The rest of everything is commented out.

As for samba users, I ran smbpasswd -a floods and added the same password as my windows machine uses. When I open all computers in the workgroup, it sees SlackBox (Floodsbox), but it can't browse any of the files, so best guess is something is wrong with the shares.

ranger_nemo 05-03-2004 08:57 PM

It's been awhile since I've done any Samba, but I you used to have to add a line about using encrypted passwords... Windows does, but Samba didn't by default.

Try adding...

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

...to you [global] section.

FLOODS 05-03-2004 09:11 PM

Quote:

Originally posted by ranger_nemo
It's been awhile since I've done any Samba, but I you used to have to add a line about using encrypted passwords... Windows does, but Samba didn't by default.

Try adding...

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

...to you [global] section.

That worked like a charm. I didn't have to add the smb passwd file = /etc/samba/smbpasswd, though. The file doesn't even exist in that directory on this system, but it doesn't seem like it's needed since i can browse all the files fine now.

Thanks a million!


All times are GMT -5. The time now is 02:25 AM.